R3303-HP HSR6800 Routers IP Multicast Command Reference
16
Default
No multicast group filter is configured on an interface. Namely a host can join any valid multicast group.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view
Default command level
2: System level
Parameters
acl-number: Specifies a basic or advanced ACL number in the range of 2000 to 3999. A host can only
join the multicast groups that match the permit statement in the specified ACL. The source address or
address range specified in the advanced ACL rule matches the multicast source address or addresses
specified in IGMPv3 reports, rather than the source address in the IP packets. The system assumes that an
IGMPv1 or IGMPv2 report or an IGMPv3 IS_EX and TO_EX report that does not carry a multicast source
address carries a multicast source address of 0.0.0.0.
vlan vlan-list: Specifies one or multiple VLANs. You can provide up to 10 VLAN lists. For each list, you
can specify an individual VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to
end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The value range of a VLAN
ID is 1 to 4094.
Usage guidelines
If you do not specify any VLAN when using this command in Layer 2 Ethernet interface view or Layer 2
aggregate interface view, the command takes effect for all VLANs that the interface belongs to. If you
specify one or more VLANs, the command takes effect for the specified VLANs that the interface belongs
to.
If you do not specify any VLAN when using this command in port group view, the command takes effect
on all the ports in this group. If you specify one or more VLANs, the command takes effect only on those
ports in this group that belong to the specified VLANs.
If the specified ACL does not exist or the ACL rule is null, all multicast groups are filtered out.
You can configure different ACL rules for a port in different VLANs. For a given VLAN, a newly
configured ACL rule overrides the existing one.
Examples
# Apply ACL 2000 as a multicast group filter so that the hosts on GigabitEthernet 2/0/1 in VLAN 2 can
j o i n 2 2 5 .1.1.1 o n l y.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 225.1.1.1 0
[Sysname-acl-basic-2000] quit
[Sysname] interface gigabitethernet 2/0/1
[Sysname-gigabitethernet2/0/1] igmp-snooping group-policy 2000 vlan 2
Related commands
group-policy