Configuring MSDP Globally

To configure Multicast Source Discovery Protocol (MSDP) you must enable MSDP and configure the MSDP peers.
Note: The PIM Sparse Rendezvous Point (RP) can also be an MSDP peer.

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.

  1. Enter global configuration mode.
    device# configure terminal
  2. Enter loopback interface configuration mode.
    device(config)# interface loopback 1
    The loopback interface is used as the source interface for sessions with the peer.
  3. Enter the IP address to be used as the source address for peer sessions.
    device(config-lbif-1)# ip address 10.9.9.9/32
  4. Exit to global configuration mode.
    device(config-lbif-1)# exit
  5. Enable MSDP.
    device(config)# router msdp
  6. Configure MSDP peers.
    device(config-msdp-router)# msdp-peer 205.216.162.1 connect-source loopback 1
    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.
  7. Configure MSDP peer and specify that the interface loopback 1 and the TCP AO keychain chain1 are to be used for sessions with the peer.
    Note: Change in TCP-AO keychain used by MSDP neighbor may cause the existing sessions to flap. Similarly, by removing or replacing the existing keychain configured in MSDP neighbor can also cause the sessions to flap.
    device(config-msdp-router)# msdp-peer 205.216.162.1 connect-source loopback 1 ao chain1
    Clear the MSDP peer session for the keychain configuration to take effect.

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