H3C Technologies H3C S3100 Series Switches User Manual
Page 253

Operation Manual – Multicast
H3C S3100-52P Ethernet Switch
Chapter 2 IGMP Snooping Configuration
2-16
[SwitchA] multicast routing-enable
[SwitchA] vlan 20
[SwitchA-vlan20] interface Vlan-interface 20
[SwitchA-Vlan-interface20] ip address 168.10.1.1 255.255.255.0
[SwitchA-Vlan-interface20] pim dm
[SwitchA-Vlan-interface20] quit
# Configure multicast VLAN 10.
[SwitchA] vlan 10
[SwitchA-vlan10] quit
# Configure VLAN 2.
[SwitchA] vlan 2
[SwitchA-vlan2] quit
[SwitchA] interface Ethernet 1/0/5
[SwitchA-Ethernet1/0/5] port hybrid vlan 2
# Configure VLAN 3.
[SwitchA] vlan 3
[SwitchA-vlan3] quit
[SwitchA] interface Ethernet 1/0/6
[SwitchA-Ethernet1/0/6] port hybrid vlan 3
# Define Ethernet1/0/10 as a hybrid port, add the port to VLAN 2, VLAN 3, and VLAN
10, and configure the port to include VLAN tags in its outbound packets of VLAN 2,
VLAN 3, and VLAN 10.
[SwitchA] interface Ethernet 1/0/10
[SwitchA-Ethernet1/0/10] port link-type hybrid
[SwitchA-Ethernet1/0/10] port hybrid vlan 2 3 10 tagged
[SwitchA-Ethernet1/0/10] quit
# Enable PIM DM and IGMP on VLAN 10.
[SwitchA] interface Vlan-interface 10
[SwitchA-Vlan-interface10] pim dm
[SwitchA-Vlan-interface10] igmp enable
2) Configure Switch B:
# Enable the IGMP Snooping feature on Switch B.
[SwitchB] igmp-snooping enable
# Configure VLAN 10 as a multicast VLAN and enable the IGMP Snooping feature on it.
[SwitchB] vlan 10
[SwitchB-vlan10] service-type multicast
[SwitchB-vlan10] igmp-snooping enable