The peer connect-interface command specifies a source interface from which BGP packets are sent, and a source address used for initiating a connection.
The undo peer connect-interface command restores the default setting.
By default, the outbound interface of a BGP packet serves as the source interface of a BGP packet.
Parameter | Description | Value |
---|---|---|
peer-address |
Specifies the address of a remote MSDP peer. |
The address is in dotted decimal notation. |
interface-type interface-number |
Specifies the type and number of an interface. The local router uses the primary address of the interface as the source IP address to set up a TCP connection with the remote MSDP peer. |
- |
Usage Scenario
To set up an MSDP peer relationship and a TCP connection between peers, run the peer connect-interface command.
Running the peer connect-interface command is the prerequisites for you to run other peer commands.Prerequisites
The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.
Configuration Impact
You can run the peer peer-address connect-interface port-type port-number command repeatedly to configure multiple MSDP peers for the local router.
You can specify the same interface for different parameter peer-address. That is, you can specify the same local interface for different remote peers.Precautions
When configuring a static reverse path forwarding (RPF) peer, you must first run the peer connect-interface command to set the remote end as an MSDP peer and then the static-rpf-peer command to set the MSDP peer as a static RPF peer.
Running the undo peer peer-address command deletes all the configurations related to a specified peer.