Cisco NX-OS IOS BGP (Advanced) Comparison
Cisco NX-OS IOS BGP (Advanced) Comparison
Objective
This tech note outlines the main differences in advanced Border Gateway Protocol (BGP) support between
Cisco® NX-OS Software and Cisco IOS® Software. Sample configurations are included for Cisco NX-OS
and Cisco IOS Software for some common features to demonstrate the similarities and differences. Please
refer to the NX-OS documentation on Cisco.com for a complete list of supported features.
BGP Overview
BGPv4 is a standard exterior routing protocol defined in RFC 4271, commonly used to exchange network
reachability information between autonomous systems. This document discusses route reflectors,
confederations, peer templates, route-map policies and the prefix-list (route-filtering) feature.
In Cisco NX-OS:
• When configuring route reflectors, the route-reflector-client command is assigned per neighbor
under the neighbor-specific address family.
• When configuring confederations, the confederation is configured under the autonomous system
without the leading bgp keyword.
• Cisco NX-OS uses a peer template instead of a peer group to reuse common BGP policies.
• Multiple policy templates can be applied to a single neighbor. Cisco IOS Software allows only one
policy template per neighbor.
• Cisco NX-OS does not require a manual reset for a neighbor when its routing policy is modified.
Cisco IOS Software requires a hard or soft reset depending on the neighbor capabilities exchanged.
The following list provides some additional facts about Cisco NX-OS that should be helpful when designing,
configuring, and maintaining an advanced BGP network configuration.
• Peer and session templates define neighbor attributes such as security passwords, timers, and
transport options.
• Peer templates and session templates have identical configuration capabilities with one exception:
peer templates can configure address families.
• Peer and session templates are inherited by a neighbor through the BGP neighbor configuration
mode.
• Only one peer template and session template can be inherited by a single BGP neighbor.
• Peer templates can inherit session templates.
• Session templates can inherit other session templates.
• Policy templates define address-family policies for inbound or outbound polices, including
default-route origination, filter lists, route-map polices, prefix lists, etc.
• Multiple policy templates can be assigned per neighbor. Policy templates are executed in order based
on the configured sequence number.
• Policy templates are inherited by a neighbor through the neighbor and address-family configuration
mode.
1
Cisco_NX-OS/IOS_BGP_(Advanced)_Comparison
• Route-map polices can configure BGP attributes such as as-path, community lists, community
attributes, dampening, local preference, metric type, origin, and weight.
• Route-map polices can be applied per neighbor for inbound and outbound routing policies.
Configuration Comparison
The following sample code shows the configuration similarities and differences between the Cisco NX-OS
and Cisco IOS Software CLIs. The configurations are very similar with the exception of the hierarchy used in
Cisco NX-OS.
no auto-summary route-reflector-client
Configuring Confederations
router bgp router bgp 65534
2
Cisco_NX-OS/IOS_BGP_(Advanced)_Comparison
send-community
no synchronization
default-originate
network 192.168.11.1 mask 255.255.255.255
neighbor 192.168.10.2 remote-as 20
neighbor 192.168.10.2 remote-as 20
address-family ipv4 unicast
neighbor 192.168.10.2 inherit peer-policy
EBGP-Policy inherit peer-policy EBGP-Policy 10
no auto-summary
Configuring an Outbound Neighbor Route-Map Policy
route-map EBGP-Policy permit 10 route-map EBGP-Policy permit 10
3
Cisco_NX-OS/IOS_BGP_(Advanced)_Comparison
router bgp 10
router bgp 10
no synchronization
neighbor 192.168.10.2 remote-as 20
neighbor 192.168.10.2 remote-as 20
address-family ipv4 unicast
neighbor 192.168.10.2 prefix-list EBGP-Policy out
prefix-list EBGP-Policy out
no auto-summary
The following table compares some useful show commands for verifying and troubleshooting a BGP
network configuration.
4
Cisco_NX-OS/IOS_BGP_(Advanced)_Comparison
5
Cisco_NX-OS/IOS_BGP_(Advanced)_Comparison