MSDP Configuration Example 597
The PIM-SM network implements OSPF to provide unicast routes and establish MSDP
peers between SwitchC and SwitchD. Meanwhile, the Loopback10 interfaces of
SwitchC and SwitchD play the roles of C-BSR and C-RP.
Network diagram
Figure173 Network diagram for Anycast RP configura tion
Configuration procedure
1Configure interface IP addresses and unicast routing protocol on the switches.
In the PIM-SM domain, configure the interface IP addresses on the switches and
interconnect the switches through OSPF. Configure the IP address and mask of each
interface according to Figure 173. The details are omitted here.
2Enable multicast and configure PIM-SM.
aEnable multicast on SwitchC and enable PIM-SM on all interfaces. The
configuration procedures on other switches are similar to that on SwitchC. The
details are omitted here.
[SwitchC] multicast routing-enable
[SwitchC] interface vlan-interface 100
[SwitchC-Vlan-interface100] pim sm
[SwitchC-Vlan-interface100] interface vlan-interface 200
[SwitchC-Vlan-interface200] pim sm
[SwitchC-Vlan-interface200] interface vlan-interface 110
[SwitchC-Vlan-interface110] pim sm
[SwitchC-Vlan-interface110] quit
bConfigure the same Loopback10 interface address on SwitchC and SwitchD and
configure the locations of C-BSR and C-RP. The configuration procedure on
SwitchD is similar to that on SwitchC. The details are omitted here.
[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 10
[SwitchC-pim] c-rp loopback 10
[SwitchC-pim] quit
SwitchC
SwitchD
Loopback0
1.1.1.1/8
Loopback0
2.2.2.2/8
PIM-SM
SwitchF
S1
S2
S3
Loopback10
10.1.1.1/8
Loopback10
10.1.1.1/8
M
S
DPpee
r
users
users
users
Vlan-interfa ce 100
Vlan-interface 100
Vlan-interface 100
Vlan-interfa ce 101
Vlan-interfa ce 110
Vlan-interface 120
192.16 8.1.1/24
192.168.1.2/2 4
192.168.3.2/24
Vlan-interface 101
192.168.3.1/24
Vlan-interface 200
10.110.2.1/8
10.110.1.1/8
10.110.4.1/8
10.110.3.1/8