Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
6-15
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 6 Configuring Advanced BGP
Configuring Advanced BGP
2. router bgp autonomous-system-number
3. template peer-policy template-name
4. advertise-active-only
5. maximum-prefix number
6. exit
7. neighbor ip-address remote-as as-number
8. address-family ipv4 {multicast | unicast}
9. inherit peer-policy template-name preference
10. (Optional) show bgp peer-policy template-name
11. (Optional) copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
router bgp autonomous-system-number
Example:
switch(config)# router bgp 65536
switch(config-router)#
Enables BGP and assigns the autonomous system
number to the local BGP speaker.
Step 3
template peer-policy template-name
Example:
switch(config-router)# template
peer-policy BasePolicy
switch(config-router-ptmp)#
Creates a peer-policy template.
Step 4
advertise-active-only
Example:
switch(config-router-ptmp)#
advertise-active-only
(Optional) Advertises only active routes to the peer.
Step 5
maximum-prefix number
Example:
switch(config-router-ptmp)#
maximum-prefix 20
(Optional) Sets the maximum number of prefixes
allowed from this peer.
Step 6
exit
Example:
switch(config-router-ptmp)# exit
switch(config-router)#
Exits peer-policy template configuration mode.
Step 7
neighbor ip-address remote-as as-number
Example:
switch(config-router)# neighbor
192.168.1.2 remote-as 65536
switch(config-router-neighbor)#
Places the router in neighbor configuration mode for
BGP routing and configures the neighbor IP address.