Reference Guide

2 Enter a local-as number for the peer, and the AS values not prepended to announcements from the neighbors in ROUTER-
NEIGHBOR mode (1 to 4294967295).
local-as as number [no prepend]
3 Return to ROUTER-BGP mode.
exit
4 Enter a template name to assign to the peer-groups in ROUTER-BGP mode (up to 16 characters).
template template-name
5 Enter a local-as number for the peer in ROUTER-TEMPLATE mode.
local-as as number [no prepend]
6 Add a remote AS in ROUTER-TEMPLATE mode (1 to 65535 for 2 bytes, 1 to 4294967295 for 4 bytes).
remote-as as-number
Allow external routes from neighbor
OS10(config)# router bgp 10
OS10(conf-router-bgp-10)# neighbor 32.1.1.2
OS10(conf-router-neighbor)# local-as 50
OS10(conf-router-neighbor)# exit
OS10(conf-router-bgp-10)# template bgppg1
OS10(conf-router-template)# fall-over
OS10(conf-router-template)# local-as 400
OS10(conf-router-template)# remote-as 102
Local AS number disabled
OS10(config)# router bgp 102
OS10(conf-router-bgp-102)# neighbor 32.1.1.2
OS10(conf-router-neighbor)# no local-as 100
AS number limit
Sets the number of times an AS number occurs in an AS path. The allow-as parameter permits a BGP speaker to allow the AS number
for a congured number of times in the updates received from the peer.
The AS-PATH loop is detected if the local AS number is present more than the number of times in the command.
1 Enter the neighbor IP address to use the AS path in ROUTER-BGP mode.
neighbor ip address
2 Enter Address Family mode in ROUTER-NEIGHBOR mode.
address-family {[ipv4 | ipv6] [unicast])
3 Allow the neighbor IP address to use the AS path the specied number of times in ROUTER-BGP-NEIGHBOR-AF mode (1 to 10).
allowas-in number
Congure AS number appearance
OS10(config)# router bgp 10
OS10(conf-router-bgp-10)# neighbor 1.1.1.2
OS10(conf-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-bgp-neighbor-af)# allowas-in 5
View AS numbers in AS paths
OS10# show running-configuration bgp
!
router bgp 101
no fast-external-fallover
!
address-family ipv4 unicast
dampening
!
274
Layer 3