5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1065
no neighbor ip-address inherit peer template-name
Parameters
ip-address
The IP address of a neighbor whose configuration parameters are
inherited from the peer template.
autodetect interface
interface-name
The routing interface on which the neighbor’s link local IPv6 address is
auto-detected.
template-name
The name of the peer template whose peer configuration parameters
are to be inherited by this neighbor.
Default
The default is No Peer Configuration Parameters are inherited.
Command Mode
IPv4 VRF Address Family Config
Example
The following shows an example of the command.
(Routing)(ConFig)#router bgp 65000
(Routing)(Config-router)#neighbor 172.20.1.2 remote-as 65001
(Routing)(Config-router)#neighbor 172.29.2.2 remote-as 65001
(Routing)(Config-router)#template peer AGGR
(Routing)(Config-rtr-tmp)#timers 3 9
(Routing)(Config-rtr-tmp)#address-family ipv4
(Routing)(Config-rtr-tmp-af)#send-community
(Routing)(Config-rtr-tmp-af)#route-map RM4-IN in
(Routing)(Config-rtr-tmp-af)#route-map RM4-OUT out
(Routing)(Config-rtr-tmp-af)#exit
(Routing)(ConFig-rtr-tmp)#exit
(Routing)(Config-router)#neighbor 172.20.1.2 inherit peer AGGR
(Routing)(Config-router)#neighbor 172.20.2.2 inherit peer AGGR
11-62 neighbor local-as (BGP Router Config)
To configure BGP to advertise the local-as instead of the router's own AS in the routes advertised to the
neighbor, use the
neighbor local-as
command in Router Configuration mode. This command is only
allowed on the external BGP neighbors. A neighbor can inherit this configuration from a peer template.
neighbor {ip-address | ipv6-address [interface interface-name] | autodetect interface interface-
name} local-as as-number no-prepend replace-as