Administrator Guide

Layer 3 Routing Commands 1304
User Guidelines
Neighbor session and policy parameters can be configured once in a peer
template and inherited by multiple neighbors, eliminating the need to
configure the same parameters for each neighbor. Parameters are inherited
from the peer template specified and from any templates it inherits from. A
neighbor can inherit directly from only one peer template.
Command History
Introduced in version 6.2.0.1 firmware.
Updated 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.2.2 remote-as 65001
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-id ] | autodetect
interface vlan vlan-id } local-as as-number no-prepend replace-as no
neighbor { ip-address | ipv6-address [ interface interface-id ] | autodetect
interface interface-id } local-as
interface-id—A routing interface identifier (VLAN interface).
ip-address The neighbor’s IPv4 address.