The igmp-snooping group-limit command sets the maximum number of multicast entries that an interface can learn.
The undo igmp-snooping group-limit command cancels the limit on the number of multicast entries that an interface can learn.
By default, the number of multicast entries that an interface can learn is not limited.
igmp-snooping group-limit group-limit vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
undo igmp-snooping group-limit group-limit vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>
undo igmp-snooping group-limit vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> }
Parameter |
Description |
Value |
---|---|---|
group-limit |
Specifies the maximum number of multicast groups that an interface can learn. |
The value is an integer and the value range depends on the product model:
|
vlan vlan-id1 [ to vlan-id2 ] |
Specifies the ID of a VLAN. vlan-id1 and vlan-id2 identify a range of VLAN IDs. |
The values of vlan-id1 and vlan-id2 are integers that range from 1 to 4094. |
all |
Cancels the limit on the number of multicast groups that interfaces in all VLANs can learn. |
- |
MultiGE interface view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view
Usage Scenario
You can use the igmp-snooping group-limit command to limit the number of multicast programs that a user can request. This configuration limits the multicast data traffic volume on the interface.
Prerequisites
IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.
Configuration Impact
During the configuration, if the number of multicast entries on the interface already exceeds the configured threshold, the number of multicast entries on the interface does not change and the interface cannot learn new multicast entries.
Precautions
The configuration takes effect only after you run the igmp-snooping enable (VLAN view) command to enable IGMP snooping in the VLAN.
# Configure GE0/0/1 to learn a maximum of 10 IGMP snooping entries in VLAN 10, and IGMP snooping is enabled globally and in VLAN 10.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] igmp-snooping group-limit 10 vlan 10
# Configure GE0/0/1 to learn a maximum of 50 IGMP snooping entries in VLANs 20 to 30, and IGMP snooping is enabled globally and in these VLANs.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] igmp-snooping group-limit 50 vlan 20 to 30