This section provides an example for configuring Layer 2 multicast entry limit in a VLAN scenario.
On the network shown in Figure 1, IPTV services are deployed on the VLAN network, and a CE is connected to the upper layer network through a PE and finally accesses the IPTV server. The CE is downlinked to a residential network VLAN 100.
To save link bandwidth on the VLAN network, configure Layer 2 multicast entry limit on the CE as required after fully evaluating the network capability.
The configuration roadmap is as follows:
Configure VLAN 100 on the CE so that downstream subscribers can receive multicast data.
Enable IGMP snooping globally and in the VLAN to implement on-demand multicast data distribution in the VLAN and reduce bandwidth consumption at both the user side and network side.
Configure Layer 2 multicast entry limit for VLAN 100 and for GE 0/1/1 to control the multicast group numbers.
To complete the configuration, you need the following data:
VLAN ID of the residential network attached to the CE: 100
Maximum numbers of Layer 2 multicast entries
# Configure VLAN 100 on the CE.
<HUAWEI> system-view [~HUAWEI] sysname CE [*HUAWEI] commit [~CE] interface gigabitethernet 0/1/1 [~CE-GigabitEthernet0/1/1] portswitch [*CE-GigabitEthernet0/1/1] undo shutdown [*CE-GigabitEthernet0/1/1] quit [*CE] vlan 100 [*CE-vlan100] port gigabitethernet 0/1/1 [*CE-vlan100] quit [*CE] commit
# Enable IGMP snooping globally on the CE.
[~CE] igmp-snooping enable [*CE] commit
# Enable IGMP snooping in VLAN 100.
[~CE] vlan 100 [~CE-vlan100] igmp-snooping enable [*CE-vlan100] quit [*CE] commit
# Configure the CE.
[~CE] l2-multicast limit max-entry 10 vlan 100 [*CE] commit
# Configure Layer 2 multicast entry limit for VLAN 100 on GE 0/1/1 of the CE.
[~CE] interface gigabitethernet 0/1/1 [~CE-GigabitEthernet0/1/1] l2-multicast limit max-entry 10 vlan 100 [*CE-GigabitEthernet0/1/1] quit [*CE] commit
After completing the configurations, run the display l2-multicast limit command on the CE. The command output shows Layer 2 multicast entry limit configurations.
[~CE] display l2-multicast limit L2-multicast limit information ------------------------------------------------------------------------------ ConfigEntries CurrentEntries ------------------------------------------------------------------------------ VLAN 100 limit information: ------------------------------------------------------------------------------ 10 0 interface GigabitEthernet0/1/1 VLAN 100 limit information: ------------------------------------------------------------------------------ 10 0