set protocols bgp neighbor evpn allowas-in

To allow BGP route updates from peers with the same AS number as the current system AS; run the command set protocol bgp neighbor evpn 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. Parameter vrf is optional and if not specified then the command will affect the default VRF.

The parameter value <1-10> configures the number of accepted occurrences of the current system AS number in AS path.

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

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


Command Syntax

set protocols bgp [vrf <vrf-name>] {neighbor <ip>| peer-group <peer-group> |interface <interface>} evpn allowas-in {<1-10> | origin}

delete protocols bgp [vrf <vrf-name>] {neighbor <ip>| peer-group <peer-group> |interface <interface>} evpn allowas-in {<1-10> | origin}


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies the name of the VRF. The value is a string.

neighbor <ip>Specifies the IPv4/IPv6 address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an L3 interface for BGP connection. The value could be a VLAN interface name, loopback interface name, routed interface or sub-interface name.

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 BGP EVPN route updates from peer 3.3.3.3 in VRF BLUE and also the accepted routes originated with the same AS number as the system.
admin@Xorplus# set protocols bgp vrf BLUE neighbor 3.3.3.3 evpn allowas-in origin
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.