Configuring MSDP Globally
It is strongly recommended that you use the
connect-source loopback command when configuring the MSDP peers. If you do not use the
connect-source loopback command, the device uses the IP address of the outgoing interface. You should also
make sure the IP address of the connect-source loopback is the source IP address used
by the PIM-RP, and the BGP device. Devices that run MSDP usually also run BGP.
- Enter global configuration mode.
- Enter loopback interface configuration mode.
The loopback interface is used as the source interface for sessions with the peer.
- Enter the IP address to be used as the source address for peer sessions.
- Exit to global configuration mode.
- Enable MSDP.
- Configure MSDP peers.
By default, the device uses the subnet address configured on the physical interface where you configure the neighbor as the source address for sessions with the neighbor.
The following example configures a loopback interface, enables MSDP, and configures a neighbor as an MSDP peer using the loopback interface as the source interface and address.
device# configure terminal device(config)# interface loopback 1 device(config-lbif-1)# ip address 10.9.9.9/32 device(config-lbif-1)# exit device(config)# router msdp device(config-msdp-router)# msdp-peer 205.216.162.1 connect-source loopback 1