neighbor ebgp-multihop
Syntax
neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} ebgp-multihop <HOP-COUNT>
no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} ebgp-multihop <HOP-COUNT>
Description
This command enables BGP to establish connection with external peers residing on networks that are not directly connected.
By default, external BGP peers must be directly connected. If external BGP peers are not connected directly, then this command is enabled to initiate the connection with that external peer. If the command is disabled and external BGP peers are indirectly connected, then BGP peer session will not be established.
The neighbor connection must be reset using
clear bgp
<NEIGHBOR-IP-ADDRESS>
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-ADDRESS>
Specifies an IP address.
<PEER-GROUP-NAME>
Specifies a peer group.
<HOP-COUNT>
Specifies the hop count value.
Authority
Administrators
Examples
switch(config-bgp)# neighbor 1.1.1.1 ebgp-multihop 5 switch(config-bgp)# no neighbor 1.1.1.1 ebgp-multihop
switch(config-bgp)# neighbor pg ebgp-multihop 5 switch(config-bgp)# no neighbor pg ebgp-multihop