Administrator Guide

Layer 3 Routing Commands 1292
Syntax
neighbor { ip-address | ipv6-address [ interface interface-id ] | autodetect
interface vlan vlan-id } allowas-in count
no neighbor { ip-address | ipv6-address [ interface interface-id ] | autodetect
interface interface-id } allowas-in
interface-idA routing interface identifier beginning with the VLAN
keyword.
ip-addressThe neighbor’s IPv4 address.
ipv6-address [ interface interface-id ] The neighbor’s IPv6 address. If
the neighbor’s IPv6 address is a link local address, the local interface must
also be specified.
autodetect interface interface-id The VLAN routing interface on which
the neighbor’s link local IPv6 address is auto detected. Use the vlan
keyword and a VLAN identifier.
allowas-in count The maximum number of occurrences of the local
ASN allowed in the AS_PATH attribute received in the prefix updates. The
allowed range is <1-10>.
Default Configuration
The router does not accept prefixes with the local ASN is part of the
AS_PATH attribute.
Command Mode
BGP Router Configuration mode, IPv4 Address Family Configuration mode
User Guidelines
A neighbor can inherit this configuration from a peer template.
Command History
Introduced in version 6.3.0.1 firmware.
Example
console(config)# router bgp 65000
console(config-router)# neighbor 172.20.1.2 remote-as 65001
console(config-router)# neighbor 172.20.1.2 allowas-in 1