Cisco Cisco IOS Software Release 12.0(24)S
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
19
Cisco IOS Release: Multiple Releases (see the Feature History table)
Configuring Peer Policy Template Inheritance with the neighbor inherit
peer-policy Command
peer-policy Command
This task configures a router to send a peer policy template to a neighbor to inherit with the neighbor
inherit peer-policy command. Use the following steps to send a peer policy template configuration to a
neighbor to inherit:
inherit peer-policy command. Use the following steps to send a peer policy template configuration to a
neighbor to inherit:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
router bgp as-number
4.
neighbor ip-address remote-as as-number
5.
address-family {ipv4 | ipv6 | vpnv4 [multicast | unicast | vrf vrf-name]}
6.
neighbor ip-address inherit peer-policy policy-template-name
7.
exit
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure
terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
router bgp
as-number
Example:
Router(config)# router bgp 101
Enters router configuration mode and creates a BGP routing
process.
process.
Step 4
neighbor
ip-address remote-as as-number
Example:
Router(config-router)# neighbor 10.0.0.1
remote-as 202
Configures a peering session with the specified neighbor.
•
The explicit remote-as statement is required for the
neighbor inherit statement in Step 5 to work. If a
peering is not configured, the specified neighbor in
Step 5 will not accept the session template.
neighbor inherit statement in Step 5 to work. If a
peering is not configured, the specified neighbor in
Step 5 will not accept the session template.
Step 5
address-family
{ipv4 | ipv6 |vpnv4 [multicast |
unicast
| vrf vrf-name]}
Example:
Router(config-router)# address-family ipv4
unicast
Enter address family configuration mode to configure a
neighbor to accept address family-specific command
configurations.
neighbor to accept address family-specific command
configurations.