A SERVICE OF

logo

Configuring Anycast RP Application 161
Configure OSPF for interconnection between the switches. The detailed
configuration steps are omitted here.
Enabling IP multicast routing and enabling PIM-SM on each interface
# Enable multicast routing on Switch C, and enable PIM-SM on each interface.
<SwitchC> system-view
[SwitchC] multicast routing-enable
[SwitchC] interface vlan-interface 103
[SwitchC-Vlan-interface103] pim sm
[SwitchC-Vlan-interface103] quit
[SwitchC] interface vlan-interface 100
[SwitchC-Vlan-interface100] pim sm
[SwitchC-Vlan-interface100] quit
[SwitchC] interface Vlan-interface 101
[SwitchC-Vlan-interface101] pim sm
[SwitchC-Vlan-interface101] quit
The configuration on Switch A, Switch B, Switch D, Switch E, Switch F, and Switch
G is similar to the configuration on Switch C. The specific configuration steps are
omitted here.
Configuring the IP addresses of interface Loopback 1, Loopback 10, C-BSR,
and C-RP
# Configure different Loopback 1 addresses and identical Loopback 10 address on
Switch C and Switch F, configure a C-BSR on each Loopback 1 and configure a
C-RP on each Loopback 10.
[SwitchC] interface loopback 1
[SwitchC-LoopBack1] ip address 3.3.3.3 255.255.255.255
[SwitchC-LoopBack1] pim sm
[SwitchC-LoopBack1] quit
[SwitchC] interface loopback 10
[SwitchC-LoopBack10] ip address 10.1.1.1 255.255.255.255
[SwitchC-LoopBack10] pim sm
[SwitchC-LoopBack10] quit
[SwitchC] pim
[SwitchC-pim] c-bsr loopback 1 24
[SwitchC-pim] c-rp loopback 10
[SwitchC-pim] quit
The configuration on Switch F is similar to the configuration on Switch C.
# View the PIM routing information on Switch C.
[SwitchC] display pim routing-table
PIM-SM Routing Table
Total 1 (S,G) entries, 0 (*,G) entry, 0 (*,*,RP) entry
(10.110.5.100, 225.1.1.1)
Protocol 0x20: PIMSM, Flag 0x80004: SPT
Uptime: 00:00:08, Timeout in 203 sec
Upstream interface: Vlan-interface1, RPF neighbor: NULL
Downstream interface list: NULL
Matched 1 (S,G) entries, 0 (*,G) entry, 0 (*,*,RP) entry