Configuring Bgp Peer-Policy 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 .
This example shows how to configure a BGP peer-session template and apply it to a BGP peer:
switch# config t
switch(config)# router bgp 65536
switch(config-router)# template peer-session BaseSession
switch(config-router-stmp)# timers 30 90
switch(config-router-stmp)# exit
switch(config-router)# neighbor 192.168.1.2 remote-as 65536
switch(config-router-neighbor)# inherit peer-session BaseSession
switch(config-router-neighbor)# description Peer Router A
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor)# copy running-config startup-config

Configuring BGP Peer-Policy Templates

You can configure a peer-policy template to define attributes for a particular address family. You assign
a preference to each peer-policy template and these templates are inherited in the order specified, for up
to five peer-policy templates in a neighbor address family.
Cisco NX-OS evaluates multiple peer policies for an address family using the preference value. The
lowest preference value is evaluated first. Any attributes configured for the neighbor take priority over
any attributes inherited by that neighbor from a BGP template.
Peer-policy templates can configure address family-specific attributes such as AS-path filter lists, prefix
lists, route reflection, and soft reconfiguration.
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).
When editing a template, you can use the no form of a command at either the peer or template level to
Note
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.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
11-16
10-10).
config t
router bgp autonomous-system-number
template peer-policy template-name
Add appropriate attributes to the policy template.
exit
neighbor ip-address remote-as as-number
address-family {ipv4 | ipv6} {multicast | unicast}
inherit peer-policy template-name preference
show bgp peer-policy template-name
copy running-config startup-config
Chapter 11
Configuring Advanced BGP
"Enabling the BGP Feature" section on
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents