neighbor allowas-in

Syntax

neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} allowas-in <NUMBER>

no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} allowas-in <NUMBER>

Description

Specifies the number of times that the AS path of a received route may contain the AS number of the recipient BGP speaker and still be accepted. When this configuration is applied for a peer-group, all the neighbors that are part of the peer-group will inherit this feature.

The no form of this command restores the default state, which is to reject as a loop any route where the path contains the speaker AS number.

Command context

config-router

Parameters

<IP-ADDRESS>

Specifies an IP address.

<PEER-GROUP-NAME>

Specifies a peer group.

<NUMBER>

Value of allowas-in. Range: 1-10.

Authority

Administrators

Examples

switch(config-router)# neighbor 1.1.1.1 allowas-in 5
switch(config-router)# no neighbor 1.1.1.1 allowas-in
switch(config-router)# neighbor PG allowas-in 5
switch(config-router)# no neighbor PG allowas-in