l User-side interfaces and the VLANs that the interfaces belong to
Procedure
Step 1 Create multicast VLANs 2 and 3 and enable IGMP snooping in the multicast VLANs.
<SwitchA> system-view
[SwitchA] igmp-snooping enable
[SwitchA] vlan 2
[SwitchA-vlan2] igmp-snooping enable
[SwitchA-vlan2] multicast-vlan enable
[SwitchA-vlan2] quit
[SwitchA] vlan 3
[SwitchA-vlan3] igmp-snooping enable
[SwitchA-vlan3] multicast-vlan enable
[SwitchA-vlan3] quit
Step 2 Create user VLAN 10.
[SwitchA] vlan batch 10
Step 3 Bind the user VLAN to multicast VLANs on GE1/0/1 and GE1/0/2.
[SwitchA] interface gigabitethernet1/0/1
[SwitchA-GigabitEthernet1/0/1] l2-multicast-bind vlan 10 mvlan 2
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet1/0/2
[SwitchA-GigabitEthernet1/0/2] l2-multicast-bind vlan 10 mvlan 3
[SwitchA-GigabitEthernet1/0/2] quit
Step 4 Add GE1/0/0 to the multicast VLANs, and add GE1/0/1 and GE1/0/2 to the user VLAN.
# Add GE1/0/0 to multicast VLANs 2 and 3 as a trunk interface.
[SwitchA] interface gigabitethernet1/0/0
[SwitchA-GigabitEthernet1/0/0] port link-type trunk
[SwitchA-GigabitEthernet1/0/0] port trunk allow-pass vlan 2 3 
[SwitchA-GigabitEthernet1/0/0] quit
# Add GE1/0/1 and GE1/0/2 to VLAN 10 as hybrid interfaces.
[SwitchA] interface gigabitethernet1/0/1
[SwitchA-GigabitEthernet1/0/1] port hybrid pvid vlan 10
[SwitchA-GigabitEthernet1/0/1] port hybrid untagged vlan 10 
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet1/0/2
[SwitchA-GigabitEthernet1/0/2] port hybrid pvid vlan 10
[SwitchA-GigabitEthernet1/0/2] port hybrid untagged vlan 10 
[SwitchA-GigabitEthernet1/0/2] quit
Step 5 Verify the configuration.
Run the display l2-multicast-bind [ mvlan vlan-id ] command on the Switch A to view binding
between user VLANs and multicast VLANs.
<SwitchA> display l2-multicast-bind vlan 10
 -------------------------------------------------------------------            
 Port                          Startvlan        Endvlan        Mvlan            
 -------------------------------------------------------------------            
 GigabitEthernet1/0/1                 10             --            2            
 GigabitEthernet1/0/2                 10             --            3            
 -------------------------------------------------------------------            
 Total Table(s) : 2
----End
Quidway S7700 Smart Routing Switch
Configuration Guide - Multicast 3 Multicast VLAN Replication Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
66