Configuring Prefix Peering - Cisco Nexus 3000 Series Configuration Manual

Nx-os unicast routing configuration guide, nx-os release 5.0(3)u1(1)
Hide thumbs Also See for Nexus 3000 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 3 k - d o c f e e d b a c k @ c i s c o . c o m
Command
Step 10
neighbor ip-address remote-as as-number
Example:
switch(config-router)# neighbor
192.168.1.2 remote-as 65536
switch(config-router-neighbor)#
Step 11
inherit peer template-name
Example:
switch(config-router-neighbor)# inherit
peer BasePeer
Step 12
timers keepalive hold
Example:
switch(config-router-neighbor)# timers
60 120
Step 13
show bgp peer-template template-name
Example:
switch(config-router-neighbor-af)# show
bgp peer-template BasePeer
Step 14
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 3000 Series
Command Reference,, for details on all commands available in the template.
This example shows how to configure a BGP peer template and apply it to a BGP peer:
switch# configure terminal
switch(config)# router bgp 65536
switch(config-router)# template peer BasePeer
switch(config-router-neighbor)# inherit peer-session BaseSession
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# inherit peer-policy BasePolicy 1
switch(config-router-neighbor-af)# exit
switch(config-router-neighbor)# exit
switch(config-router)# neighbor 192.168.1.2 remote-as 65536
switch(config-router-neighbor)# inherit peer BasePeer
switch(config-router-neighbor)# copy running-config startup-config

Configuring Prefix Peering

BGP supports the definition of a set of peers using a prefix for both IPv4. This feature allows you to not
have to add each neighbor to the configuration.
When defining a prefix peering, you must specify the remote AS number with the prefix. BGP accepts
any peer that connects from that prefix and autonomous system if the prefix peering does not exceed the
configured maximum peers allowed.
When a BGP peer that is part of a prefix peering disconnects, Cisco NX-OS holds its peer structures for
a defined prefix peer timeout value. An established peer can reset and reconnect without danger of being
blocked because other peers have consumed all slots for that prefix peering.
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
6-18
Chapter 6
Purpose
Places the router in neighbor configuration mode for
BGP routing and configures the neighbor IP address.
Inherits the peer template.
(Optional) Adds the BGP timer values to this neighbor.
These values override the timer values in the peer
template and the peer-session template.
(Optional) Displays the peer template.
(Optional) Saves this configuration change.
Configuring Advanced BGP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents