16
Examples
# Specify to allow GigabitEthernet 1/0/1 in VLAN 2 to join up to 10 multicast groups.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] igmp-snooping group-limit 10 vlan 2
igmp-snooping group-policy
Syntax
igmp-snooping group-policy
acl-number
[
vlan
vlan-list
]
undo igmp-snooping group-policy
[
vlan
vlan-list
]
View
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
acl-number
: Specifies a basic or advanced ACL number, in the range of 2000 to 3999. 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.
Description
Use
igmp-snooping group-policy
to configure a multicast group filter on the current port, namely, to
control the multicast groups that the hosts on the port can join.
Use
undo igmp-snooping group-policy
to remove a multicast group filter.
By default, no multicast group filter is configured on an interface. Namely, a host can join any valid
multicast group.
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 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.
Related commands:
group-policy
.
Examples
# Apply ACL 2000 as a multicast group filter so that hosts on GigabitEthernet 1/0/1 in VLAN 2 can join
225.1.1.1 only.
<Sysname> system-view