Configuring Bgp Peer Templates - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring Advanced BGP
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m .
Command
Step 10
show bgp peer-policy template-name
Example:
switch(config-router-neighbor-af)# show
bgp peer-policy BasePolicy
Step 11
copy running-config startup-config
Example:
switch(config-router-neighbor-af)# copy
running-config startup-config
Use the show bgp neighbor command to see the template applied. See the Cisco Nexus 7000 Series
NX-OS Unicast Routing Command Reference for details on all commands available in the template.
This example shows how to configure a BGP peer-session template and apply it to a BGP peer:
This example shows how to configure a BGP peer-policy template and apply it to a BGP peer:
switch# config t
switch(config)# router bgp 65536
switch(config-router)# template peer-session BasePolicy
switch(config-router-ptmp)# maximum-prefix 20
switch(config-router-ptmp)# exit
switch(config-router)# neighbor 192.168.1.1 remote-as 65536
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# inherit peer-policy BasePolicy
switch(config-router-neighbor-af)# copy running-config startup-config

Configuring BGP Peer Templates

You can configure BGP peer templates to combine session and policy attributes in one reusable
configuration block. Peer templates can also inherit peer-session or peer-policy templates. Any attributes
configured for the neighbor take priority over any attributes inherited by that neighbor from a BGP
template. You configure only one peer template for a neighbor, but that peer template can inherit
peer-session and peer-policy templates.
Peer templates support session and address family attributes, such as eBGP multihop time-to-live,
maximum prefix, next-hop self, and timers.
BEFORE YOU BEGIN
Ensure that you have enabled the BGP feature (see the
page
Ensure that you are in the correct VDC (or use the switchto vdc command).
Note
When editing a template, you can use the no form of a command at either the peer or template level to
explicitly override a setting in a template. You must use the default form of the command to reset that
attribute to the default state.
SUMMARY STEPS
1.
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
11-18
10-10).
config t
Chapter 11
Purpose
(Optional) Displays the peer-policy template.
(Optional) Saves this configuration change.
"Enabling the BGP Feature" section on
Configuring Advanced BGP
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents