Administrator Guide

Layer 3 Routing Commands 1296
console(config-router)# template peer AGGR
console(config-rtr-tmp)# timers 3 9
console(config-rtr-tmp)# address-family ipv4
console(config-rtr-tmp-af)# send-community
console(config-rtr-tmp-af)# route-map RM4-IN in
console(config-rtr-tmp-af)# route-map RM4-OUT out
console(config-rtr-tmp-af)# exit
console(config-rtr-tmp)# exit
console(config-router)# neighbor 172.20.1.2 inherit peer AGGR
console(config-router)# neighbor 172.20.2.2 inherit peer AGGR
neighbor local-as
Use the neighbor local-as command to configure BGP to advertise the local-
as instead of the router’s own AS in the routes advertised to the neighbor.
Syntax
neighbor {
ip-address
|
ipv6-address
[ interface
interface-name
] |
autodetect
interface vlan
vlan-id
}
local-as
as-number
no-prepend replace-as
no neighbor {
ip-address
|
ipv6-address
[ interface
interface-name
] |
autodetect
interface
interface-id
}
local-as
ip-address
The neighbors 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.
local-as
as-number
The AS number to advertise as the local AS in the
AS PATH sent to the neighbor.
no-prepend
The local-as is not prepended in the AS PATH received in
the updates from this neighbor.
replace-as
— Replace the router’s own AS with the local-as in the AS
PATH sent to the neighbor.
Default Configuration
No local-as is configured for any peer.
2CSNXXX_SWUM204.book Page 1296 Monday, January 25, 2016 1:25 PM