External BGP peering sessions are configured to allow BGP peers from different autonomous systems to exchange routing updates. By design, a BGP routing process expects eBGP peers to be directly connected. When the neighbor is not directly connected, then we can enable eBGP Multihop function to allow the session to be established.

In this example, BGP is configured to allow connections to or from neighbor 192.168.1.1, which resides on a network that is not directly connected.

admin@XorPlus# set protocols bgp neighbor 192.168.1.1 remote-as external
admin@XorPlus# set protocols bgp neighbor 192.168.1.1 ebgp-multihop maximum-hop 5
admin@XorPlus# commit