R3303-HP HSR6800 Routers IP Multicast Configuration Guide
36
Configuration procedure
1. Configure Router A:
# Enable IP multicast routing.
<RouterA> system-view
[RouterA] multicast routing-enable
# Create VLAN 20 and assign GigabitEthernet 2/0/2 to this VLAN.
[RouterA] vlan 20
[RouterA-vlan20] port gigabitethernet 2/0/2
[RouterA-vlan20] quit
# Configure an IP address for VLAN-interface 20 and enable PIM-DM.
[RouterA] interface vlan-interface 20
[RouterA-Vlan-interface20] ip address 1.1.1.2 24
[RouterA-Vlan-interface20] pim dm
[RouterA-Vlan-interface20] quit
# Create VLAN 10. Configure GigabitEthernet 2/0/1 as a hybrid port and to permit packets from
VLAN 10 to pass and tag the packets when forwarding them.
[RouterA] vlan 10
[RouterA-vlan10] quit
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] port link-type hybrid
[RouterA-GigabitEthernet2/0/1] port hybrid vlan 10 tagged
# Configure an IP address for VLAN-interface 10 and enable IGMP and PIM-DM.
[RouterA] interface vlan-interface 10
[RouterA-Vlan-interface10] ip address 10.110.1.1 24
[RouterA-Vlan-interface10] igmp enable
[RouterA-Vlan-interface10] pim dm
[RouterA-Vlan-interface10] quit
2. Configure Router B:
# Enable IGMP snooping globally.
<RouterB> system-view
[RouterB] igmp-snooping
[RouterB-igmp-snooping] quit
# Create VLAN 10, assign GigabitEthernet 2/0/1 to VLAN 10, and enable IGMP snooping in this
VLAN.
[RouterB] vlan 10
[RouterB-vlan10] port gigabitethernet 2/0/1
[RouterB-vlan10] igmp-snooping enable
[RouterB-vlan10] quit
# Create VLAN 2 and enable IGMP snooping in the VLAN.
[RouterB] vlan 2
[RouterB-vlan2] igmp-snooping enable
[RouterB-vlan2] quit
# Create VLAN 3 and enable IGMP snooping in the VLAN in the same way. (Details not shown.)
# Create VLAN 4 and enable IGMP snooping in the VLAN in the same way. (Details not shown.)