Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

To allow BGP route updates from peers with the same AS number as the current system AS; run the command set protocol bgp evpn neighbor allowas-in. This configuration is needed when different BGP peers reside in different locations that cannot be directly connected but they both use the same AS number.

The parameter (1-10) configures the amount of accepted occurrences of the system AS number in AS path.

The parameter origin configures BGP to only accept routes originated with the same AS number as the system.

Run the command delete protocol bgp evpn neighbor allowas-in to remove this configuration.


Command Syntax

set protocol bgp [vrf <text>] [l2vpn] evpn neighbor <bgp-peer> allowas-in (<1-10>|origin)

delete protocol bgp [vrf <text>] [l2vpn] evpn neighbor <bgp-peer> allowas-in (<1-10>|origin)


Parameter

Parameter

Description

vrf <text>

Specifies the name of the VRF.

l2vpn

Specifies whether the command applies to layer 2 EVPN.

allowas-in (<1-10>|origin)

Value (1-10) specifies the number of occurrences of AS in AS path, origin configures BGP to only accept routes originated with the same AS number as that of the system.


Example

  • Configure BGP to accept route updates from peer peer1 in VRF BLUE, for layer 2 EVPN and accept routes originated with the same AS number as the system.
admin@Xorplus# set protocol bgp vrf BLUE l2vpn evpn neighbor peer1 allowas-in origin
admin@Xorplus# commit
  • No labels