5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1064
Parameters
ip-address
The IP address of a neighbor whose configuration parameters are
inherited from the peer template.
ipv6-address
The neighbor's IPv6 address.
interface interface-name
(Optional) If the neighbor's IPv6 address is a link local address, the local
interface must be specified.
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
BGP Router 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.20.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)#neighdor 172.20.1.2 inherit peer AGGR
(Routing)(Config-router)#neighdor 172.29.2.2 inherit peer AGGR
11-61 neighbor inherit peer (IPv4 Address Family Config)
To configure a BGP peer to inherit peer configuration parameters from a peer template, use the neighbor
inherit peer command in Router Configuration mode. Neighbor session and policy parameters can be
configured once in a peertemplate 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 neighbo r can inherit directly from only one peer template.
Use the
no
command in Router Configuration mode to remove the inheritance.
neighbor {ip-address | autodetect interface interface-name inherit peer template-name