neighbor ebgp-multihop
Syntax
neighbor {<IP-ADDR> | <PEER-GROUP-NAME>} ebgp-multihop <HOP-COUNT>
no neighbor {<IP-ADDRESS> | <PEER-GROUP-NAME>} ebgp-multihop <HOP-COUNT>
Description
Enables BGP to establish a session with external peers residing on networks that are not directly connected. By default, BGP can only establish sessions with external BGP peers that are directly connected.
The neighbor connection must be reset using
clear bgp
to allow this configuration to take effect.
The
no
form of this command disables the peer ebgp-multihop feature.
Command context
config-bgp
Parameters
<IP-ADDR>
Specifies an IP address.
<PEER-GROUP-NAME>
Specifies a peer group.
ebgp-multihop <HOP-COUNT>
Specifies the maximum number of hops to reach the peer.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Enabling BGP to establish connection with external peers residing on networks that are not directly connected:
switch(config-bgp)# neighbor 1.1.1.1 ebgp-multihop 5 switch(config-bgp)# no neighbor 1.1.1.1 ebgp-multihop
Disabling BGP to establish connection with external peers residing on networks that are not directly connected:
switch(config-bgp)# neighbor pg ebgp-multihop 5 switch(config-bgp)# no neighbor pg ebgp-multihop