Configuring PIM-SM plus IGMP plus IGMP Snooping 149
[SwitchA-Vlan-interface100] igmp enable
[SwitchA-Vlan-interface100] pim sm
[SwitchA-Vlan-interface100] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim sm
[SwitchA-Vlan-interface101] quit
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] pim sm
nIt is necessary to enable IGMP only on interfaces with multicast receivers attached.
The default IGMP version is IGMPv2.
The configuration on Switch B and Switch C is similar to that on Switch A. The
configuration on Switch D and Switch E is also similar to that on Switch A except
that it is not necessary to enable IGMP on the corresponding interfaces on these
two switches.
# Configure the group range to be advertised in C-RP-Adv messages and
configure a C-BSR and a C-RP on VLAN-interface 105 of Switch D.
<SwitchD> system-view
[SwitchD] acl number 2005
[SwitchD-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255
[SwitchD-acl-basic-2005] quit
[SwitchD] pim
[SwitchD-pim] c-bsr vlan-interface 105 24 2
[SwitchD-pim] c-rp vlan-interface 105 group-policy 2005 priority 2
[SwitchD-pim] quit
# Configure the group range to be advertised in C-RP-Adv messages and
configure a C-BSR and a C-RP on VLAN-interface 102 of Switch E.
<SwitchE> system-view
[SwitchE] acl number 2005
[SwitchE-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255
[SwitchE-acl-basic-2005] quit
[SwitchE] pim
[SwitchE-pim] c-bsr vlan-interface 102 24 1
[SwitchE-pim] c-rp vlan-interface 102 group-policy 2005 priority 1
[SwitchE-pim] quit
# On Switch F, enable IGMP Snooping globally and in VLAN 100.
<SwitchF> system-view
[SwitchF] igmp-snooping enable
Enable IGMP-Snooping ok.
[SwitchF] vlan 100
[SwitchF-vlan100] igmp-snooping enable
[SwitchF-vlan100] quit
Verifying the configuration
Check the reception of multicast stream for multicast group 225.1.1.1 on Host A
and Host C and verify the configurations made on the switches.