set protocols bgp neighbor ebgp-multihop


The set protocols bgp neighbor ebgp-multihop command 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 delete protocols  bgp neighbor ebgp-multihop command disables the peer ebgp-multihop feature.


Command Syntax

set protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group>} ebgp-multihop [maximum-hop <HOP-COUNT>]

delete protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group>ebgp-multihop [maximum-hop <HOP-COUNT>]


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <ip>Specifies the IPv4/IPv6 address of a peer.
peer-group <peer-group>Specifies a peer group.
maximum-hop <HOP-COUNT>Optional. Specifies the maximum number of hops to reach the peer. The value is an integer that ranges from 1 to 255.


Example
• This example enables BGP to establish connection with external peers residing on networks that are not directly connected:

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 ebgp-multihop maximum-hop 5

admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.