set protocols bgp neighbor allowas-in


The set protocols bgp neighbor allowas-in command specifies the number of times that the AS path of a received route can contain the AS number of the recipient BGP speaker and still be accepted. When this configuration is applied to a peer-group, all the neighbors that are part of the peer-group inherit this setting.
The delete protocols  bgp neighbor allowas-in command restores the default setting, which is to reject as a loop any route where the path contains the speaker AS number.


Command Syntax

set protocols bgp [vrf <vrf-name>{neighbor <ip>peer-group <peer-group> |interface <interface>}  {ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicastallowas-in {<LIMIT>|origin}

delete protocols bgp [vrf <vrf-name>{neighbor <ip>peer-group <peer-group> |interface <interface>} {ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicastallowas-in {<LIMIT>|origin}


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>].

{ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicast}Specifies the type of the address family.
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 {<LIMIT>|origin}

<LIMIT>: Specifies the number of times that the AS path of a received route can contain the AS number of the recipient BGP. Range: 1 to 10.

origin: The parameter origin configures BGP to only accept routes originated with the same AS number as the system. This command is only allowed for eBGP peers.


Example
• This example specifies the number of times that the AS path of a received route can contain the AS number of the recipient BGP speaker and still be accepted. 

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 ipv4-unicast allowas-in 5
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.