neighbor ebgp-multihop
Syntax
neighbor { | } ebgp-multihop 没有neighbor { | } ebgp-multihop
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 usingclear bgp
to allow this configuration to take effect.
The没有
form of this command disables the peer ebgp-multihop feature.
Command context
config-bgp
Parameters
-
-
Specifies an IP address.
-
-
Specifies a peer group.
-
ebgp-multihop
-
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 5switch(config-bgp)#没有邻居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 5switch(config-bgp)#没有neighbor pg ebgp-multihop