Page 1
BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x First Published: 2017-07-14 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883...
Page 2
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks . Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company.
Command BGP Multi-Instance and Multi-AS Configure Multiple BGP Instances for a Specific Autonomous System BGP Routing Domain Confederation Configure Routing Domain Confederation for BGP BGP Additional Paths BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 4
Configure BGP Cost Community Configure BGP Community and Extended-Community Advertisements Redistribute iBGP Routes into IGP Redistribute IGPs to BGP Update Groups Monitor BGP Update Groups L3VPN iBGP PE-CE BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 5
Resilient Per-CE Label Allocation Mode Configure Resilient Per-CE Label Allocation Mode Under VRF Address Family Configure Resilient Per-CE Label Allocation Mode Using Route-Policy BGP VRF Dynamic Route Leaking BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 6
BGP Error Handling and Attribute Filtering Syslog Messages BGP-RIB Feedback Mechanism for Update Generation Use-defined Martian Check EVPN Virtual Private Wire Service (VPWS) C H A P T E R 3 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 7
Configuring EVPN-VPWS: Example BGP-based VPWS Autodiscovery C H A P T E R 4 Configuring VPWS with BGP Autodiscovery and Signaling VPWS with BGP Autodiscovery and BGP Signaling BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 8
Contents BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x viii...
What's New in Cisco Product Documentation. To receive new and revised Cisco technical content directly to your desktop, you can subscribe to the What's New in Cisco Product Documentation RSS feed. RSS feeds are a free service.
Page 10
Preface Obtaining Documentation and Submitting a Service Request BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Table 2: BGP Features Added or Modified in IOS XR Release 6.2.x Feature Description Changed in Release Where Documented DMZ Link Bandwidth The feature was introduced. Release 6.2.2 DMZ Link Bandwidth Over EBGP Peer, on page 87 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 12
New and Changed BGP Features New and Changed BGP Features BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Keepalive packets are sent to ensure that the connection is alive between the BGP peers and notification packets are sent in response to error or special conditions. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
12. address-family { ipv4 | ipv6 } unicast 13. route-policy route-policy-name { in | out } 14. commit DETAILED STEPS Step 1 configure Step 2 route-policy route-policy-name BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 15
To see a list of all the possible keywords and arguments for this command, use the CLI help (?). Step 9 exit Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Exits the current configuration mode. Step 10 neighbor ip-address Example: RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 16
(destination in static) then set next-hop 10.1.0.1 else drop endif end-policy route-policy set_next_hop_agg_v6 set next-hop 2003::121 end-policy route-policy set_next_hop_static_v6 if (destination in static) then set next-hop 2011::121 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Perform this task to set the default local preference value for BGP paths. SUMMARY STEPS 1. configure 2. router bgp as-number 3. bgp default local-preference value 4. commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RP0/CPU0:router(config)# router bgp 120 Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 3 default-metric value BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.168.40.24 Places the router in neighbor configuration mode for BGP routing and configures the neighbor IP address as a BGP peer. Step 4 remote-as as-number BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
(AS) and not among all paths. BGP Best Path Algorithm, on page 130 provides additional conceptual details. Perform this task to change the default BGP best-path calculation behavior. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 22
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath med confed Enables BGP software to compare MED values for paths learned from confederation peers. Step 6 bgp bestpath as-path ignore Example: RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath as-path ignore BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
IP routing table. Perform this task to specify the use of administrative distances that can be used to prefer one class of route over another. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Perform this task to set the administrative distance on an external Border Gateway Protocol (eBGP) route to that of a locally sourced BGP route, causing it to be less preferred than an Interior Gateway Protocol (IGP) route. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 25
{ ip-address / prefix-length | ip-address mask } backdoor Example: RP/0/RP0/CPU0:router(config-bgp-af)# network 172.20.0.0/16 Configures the local router to originate and advertise the specified network. Step 5 commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Although BGP treats network 160.10.0.0 as a local entry, it does not advertise network 160.10.0.0 as it normally would advertise a local entry. Configure Aggregate Addresses Perform this task to create aggregate entries in a BGP routing table. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 27
• The summary-only keyword filters all more specific routes from updates. • The route-policy route-policy-name keyword and argument specify the route policy used to set the attributes of the aggregate route. Step 5 commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
• Mechanism to achieve higher prefix scale (especially on a RR) by having different instances carrying different BGP tables. • Improved BGP convergence under certain scenarios. • All BGP functionalities including NSR are supported for all the instances. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RSP0/CPU0:router(config-bgp)# bgp router-id 10.0.0.0 Configures a fixed router ID for the BGP-speaking router (BGP instance). You must manually configure unique router ID for each BGP Note instance. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RP0/CPU0:router# router bgp 120 Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 3 bgp confederation identifier as-number BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 32
666. The internal division of the autonomous system into multiple autonomous systems is not known to the peers external to the confederation. router bgp 701 address-family ipv4 unicast neighbor 172.16.232.56 remote-as 666 exit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Consequently, an NSR switchover results in inconsistent BGP tables. • The discard extra paths configuration cannot co-exist with the soft reconfig configuration. Perform this task to configure BGP maximum-prefix discard extra paths. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 36
Configures discard extra paths to discard extra paths when the maximum prefix limit is exceeded. Step 6 commit The following example shows how to configure discard extra paths feature for the IPv4 address family: RP/0/RSP0/CPU0:router# configure RP/0/RSP0/CPU0:router(config)# router bgp 10 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
If the best path is an eBGP path, then best–external path calculation is not required. The procedure to determine the best–external path is as follows: 1 Determine the best path from the entire set of paths available for a prefix. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 3 Do one of the following • address-family { vpnv4 unicast | vpnv6 unicast } • vrfvrf-name{ipv4 unicast|ipv6 unicast} BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Multipath Load Sharing Reference, on page 141 provides additional details. Configure iBGP Multipath Load Sharing Perform this task to configure the iBGP Multipath Load Sharing: BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 41
Multipath Loadsharing Configuration: Example The following is a sample configuration where 30 paths are used for loadsharing: router bgp 100 address-family ipv4 multicast maximum-paths ibgp 30 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
‘black hole’ where BGP advertises routes to neighbors that BGP does not install in its global routing table and forwarding table. Perform this task to apply a routing policy to routes being installed into the routing table. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 44
In the following example, for an eBGP neighbor, if all routes should be accepted and advertised with no modifications, a simple pass-all policy is configured: RP/0/RP0/CPU0:router(config)# route-policy pass-all RP/0/RP0/CPU0:router(config-rpl)# pass RP/0/RP0/CPU0:router(config-rpl)# end-policy RP/0/RP0/CPU0:router(config)# commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
After specifying the neighbor group name using the neighbor group command, you can assign options to the neighbor group. All commands that can be configured under a specified neighbor group can be configured under a neighbor. Note BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 46
To see a list of all the possible keywords and arguments for this command, use the CLI help (?). Step 4 exit Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Exits the current configuration mode. Step 5 neighbor-group name Example: RP/0/RP0/CPU0:router(config-bgp)# neighbor-group nbr-grp-A BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 47
Step 12 use neighbor-group group-name Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# use neighbor-group nbr-grp-A (Optional) Specifies that the BGP neighbor inherit configuration from the specified neighbor group. Step 13 remote-as as-number BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Disable BGP Neighbor Perform this task to administratively shut down a neighbor session without removing the configuration. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
REFRESH request to the neighbor if the neighbor has advertised the ROUTE_REFRESH capability. To determine whether the neighbor has advertised the ROUTE_REFRESH capability, use the show bgp neighbors command. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
If an outbound soft reset is triggered, BGP resends all routes for the address family to the given neighbors. To determine whether the neighbor has advertised the ROUTE_REFRESH capability, use the show bgp neighbors command. SUMMARY STEPS 1. show bgp neighbors BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
In this model, an iBGP peer is configured to be a route reflector responsible for passing iBGP learned routes to a set of iBGP neighbors. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The bgp cluster-id command is used to configure the cluster ID when the cluster has more than one route reflector. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 55
{ ipv4 | ipv6 } unicast Example: RP/0/RP0/CPU0:router(config-nbr)# address-family ipv4 unicast Specifies either an IPv4 or IPv6 address family unicast and enters address family configuration submode. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The BGP Attribute Filter checks integrity of BGP updates in BGP update messages and optimizes reaction when detecting invalid attributes. BGP Update message contains a list of mandatory and optional attributes. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 58
Specifies a single or a range of attribute codes and an associated action. The allowed actions are: • Treat-as-withdraw— Considers the update message for withdrawal. The associated IPv4-unicast or MP_REACH NLRIs, if present, are withdrawn from the neighbor's Adj-RIB-In. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
BGP receives multiple paths to the same destination and it uses the best-path algorithm to decide which is the best path to install in RIB. To enable users to determine an exit point after partial comparison, the cost BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 62
• neighbor ip-address remote-as as-number • route-policy route-policy-name { in | out } 8. commit 9. show bgp ip-address DETAILED STEPS Step 1 configure Step 2 route-policy name BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
5. address-family{ipv4 {labeled-unicast | unicast | mdt | | mvpn | rt-filter | tunnel} | ipv6 {labeled-unicast | mvpn | unicast}} 6. Use one of these commands: • send-community-ebgp • send-extended-community-ebgp 7. commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 65
IPv4 address family mode supports these sub modes: • labeled-unicast • mdt • mvpn • rt-filter • tunnel • unicast Step 6 Use one of these commands: • send-community-ebgp BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RP0/CPU0:router(config)# router bgp 120 Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 3 bgp redistribute-internal BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The BGP Update Groups feature contains an algorithm that dynamically calculates and optimizes update groups of neighbors that share outbound policies and can share the update messages. The BGP Update Groups BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
L3VPN iBGP PE-CE can be enabled on the neighbor, neighbor-group, or session-group. To configure L3VPN iBGP PE-CE, follow these steps: Before You Begin The CE must be an internal BGP peer. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 71
The following example shows how to configure L3VPN iBGP PE-CE: R1(config-bgp-vrf-nbr)#neighbor 10.10.10.1 ? . . . internal-vpn-client Preserve iBGP CE neighbor path in ATTR_SET across VPN core . . . BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
This task applies flow-tag to a specified interface. The packets are matched based on the flow-tag assigned to the source address of the incoming packets. Note You will not be able to enable both QPPB and flow tag feature simultaneously on an interface. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 74
RP/0/RSP0/CPU0:ASR9K-0#show running-config class-map type traffic flowMatch36 Thu Feb 12 01:52:04.838 UTC class-map type traffic match-any flowMatch36 match flow-tag 36 end-class-map BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RP/0/RP0/CPU0:router(config)# router bgp 120 Specifies the autonomous system number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 3 neighbor ip-address BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
BGP NSR back on if it has been disabled. Disable BGP Nonstop Routing Perform this task to disable BGP Nonstop Routing (NSR): SUMMARY STEPS 1. configure 2. router bgp as-number 3. nsr disable 4. commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
• The route is an interior gateway protocol (iGP) route redistributed into border gateway protocol (BGP). The value assigned to the AiGP attribute is the value of iGP next hop to the route or as set by a route-policy. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 79
Specifies the BGP AS number and enters the BGP configuration mode, allowing you to configure the BGP routing process. Step 6 address-family {ipv4 | ipv6} unicast Example: RP/0/RP0/CPU0:router(config-bgp)# address-family ipv4 unicast BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
VRFs. Note BGP Accept Own is supported only for VPNv4 and VPNv6 address families in neighbor configuration mode. Perform this task to configure BGP Accept Own: BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 81
Specifies the address family as VPNv4 or VPNv6 and enters neighbor address family configuration mode. Step 7 accept-own [inheritance-disable] Example: RP/0/RP0/CPU0:router(config-bgp-nbr-af)#accept-own Enables handling of self-originated VPN routes containing Accept_Own community. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 82
5 InterAS-RR1 attaches RT2 to prefix X on the inbound and ACCEPT_OWN community on the outbound and advertises prefix X to IntraAS-RR31. 6 IntraAS-RR31 advertises X to PE11. 7 PE11 installs X in Service VRF as (RD2:X,RT1, RT2, ACCEPT_OWN). BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Note IGPs do not use BGP LS data from remote peers. BGP does not download the received BGP LS data to any other component on the router. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Configures the remote AS for the CE neighbor. Step 5 address-family link-state link-state Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# address-family link-state link-state Distributes BGP link-state information to the specified neighbor. Step 6 commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
A permanent network is used to define a set of prefixes as permanent, that is, there is only one BGP advertisement or withdrawal in upstream BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
When eiBGP is applied, eBGP or iBGP load balancing cannot be configured; however, eBGP and iBGP load balancing can coexist. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Multiprotocol Interior BGP (MP-iBGP) session (either IPv4 or VPNv4), the remote PE automatically does load balancing if the maximum-paths command is enabled. Unequal cost recursive load balancing happens across maximum eight paths only. Note BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
When eiBGP is applied, eBGP or iBGP load balancing cannot be configured; however, eBGP and iBGP load balancing can coexist. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
This extended community is meant for load balancing over multi-paths. However, Cisco IOS-XR enables advertising of the DMZ link bandwidth to an eBGP peer, or receiving the DMZ link bandwidth by an eBGP peer. This feature also gives the user the option to send the bandwidth unchanged, or take the accumulated bandwidth over all the egress links and advertise that to the upstream eBGP peer.
Step 5 exit ip-address Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# exit Exits the neighbor configuration mode and enters into BGP configuration mode. Step 6 neighbor ip-address BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 99
Advertised to update-groups (with more than one peer): Advertised to peers (in unique update groups): 20.0.0.1 11.1.0.2 from 11.1.0.2 (11.1.0.2) Origin incomplete, metric 20, localpref 100, valid, external, best, group-best BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Perform this task to configure Resource Public Key Infrastructure (RPKI) cache-server parameters. Configure the RPKI cache-server parameters in rpki-server configuration mode. Use the rpki server command in router BGP configuration mode to enter into the rpki-server configuration mode BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 101
Example: RP/0/RP0/CPU0:router(config-bgp)#rpki server 10.2.3.4 Enters rpki-server configuration mode and enables configuration of RPKI cache parameters. Step 4 Use one of these commands: • transport ssh port port_number BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 102
Configures the time BGP waits to keep routes from a cache after the cache session drops. Set purge time in seconds. Range for the purge time is 30 to 360 seconds. Step 9 Use one of these commands. • refresh-time time • refresh-time off BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
2. router bgp as-number 3. Use one of these commands. • rpki origin-as validation disable • rpki origin-as validation time {off | prefix_validation_time 4. origin-as validity signal ibgp 5. commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 104
RP/0/RP0/CPU0:router(config-bgp)#rpki origin-as validity signal ibgp Enables the iBGP signaling of validity state through an extended-community. This can also be configured in global address family submode. Step 5 commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
"invalid" paths from that specific neighbor or neighbor address family to be considered as bestpath candidates. The neighbor must be an eBGP neighbor. This configuration takes effect only when the rpki bestpath use origin-as validity configuration is enabled. Step 5 commit BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Perform this task to configure resilient per-ce label allocation mode using a route-policy. SUMMARY STEPS 1. configure 2. route-policypolicy-name 3. set label-mode per-ce 4. Do one of the following: • end • commit DETAILED STEPS Step 1 configure BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 109
◦ Entering cancel leaves the router in the current configuration session without exiting or committing the configuration changes. • Use the commit command to save the configuration changes to the running configuration file and remain within the configuration session. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
VRF to default VRF. Before You Begin A route-policy is mandatory for configuring dynamic route leaking. Use the route-policy route-policy-name command in global configuration mode to configure a route-policy. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 111
PE. However, the paths are still advertised to the CEs. • export to default-vrf—configures import from non-default-VRF to default VRF. The paths imported from the default-VRF are advertised to other PEs. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Define Virtual Routing and Forwarding Tables in Provider Edge Routers Perform this task to define the VPN routing and forwarding (VRF) tables in the provider edge (PE) routers. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 113
(Optional) Provides finer control over what gets imported into a VRF. This import filter discards prefixes that do not match the specified policy-name argument. Step 6 import route-target [ as-number : nn | ip-address : nn ] BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RD setup, where the non-best multipath will be installed if the best multipath is invalid to be installed in RIB. Perform this task to configure the RD. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 115
RD generation. Having a single router ID also helps in checkpointing RD information for BGP graceful restart, because it is expected to be stable across reboots. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The PE-PE, PE-route reflector (RR) iBGP sessions are defined to all PE and RR routers that participate in the VPNs configured in the PE router. Perform this task to configure PE-PE iBGP sessions and to configure global VPN options on a PE. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 117
RP/0/RP0/CPU0:router(config-bgp)# address-family vpvn4 unicast Enters VPN address family configuration mode. Step 4 exit Example: RP/0/RP0/CPU0:router(config-bgp-af)# exit Exits the current configuration mode. Step 5 neighbor ip-address Example: RP/0/RP0/CPU0:router(config-bgp)# neighbor 172.16.1.1 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 118
Allows iBGP sessions to use the primary IP address from a specific interface as the local address when forming an iBGP session with a neighbor. Step 12 address-family vpnv4 unicast Example: RP/0/RP0/CPU0:router(config-bgp-nbr)# address-family vpvn4 unicast Enters VPN neighbor address family configuration mode. Step 13 route-policy route-policy-name in BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Specifies a routing policy for an outbound route. The policy can be used to filter routes or modify route attributes. Step 15 commit Configure BGP as PE-CE Protocol Perform this task to configure BGP on the PE and establish PE-CE communication using BGP. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 120
BGP routing process. Example: RP/0/RP0/CPU0:router(config)# router bgp 120 Step 3 vrf vrf-name Enables BGP routing for a particular VRF on the PE router. Example: RP/0/RP0/CPU0:router(config-bgp)# vrf vrf_pe_2 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 121
The PE advertises only one label for the aggregate. Because component prefixes could have different next hops to CEs, an additional lookup has to be performed during data forwarding. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 122
PE router. If the prefix is looped back to the site-of-origin 234:111 same site, the PE detects this and does not send the update to the BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Therefore, the global internet routes are not programmed in the hardware of the LOW-FIB scale line card. • MPLS labels are programmed on both the HIGH-FIB scale and LOW-FIB scale line cards. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 125
In the per-CE mode, the VPN-label is assigned per CE. The VPN-label lookup on the core facing line card (LOW-FIB scale line card) results in the next-hop to the HIGH-FIB line card, which is connected to the CE. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
: 1018789 (49 %) (Prefix Count: 1018789) ipmcroute (0 %) (Prefix Count: 0) Information about Implementing BGP To implement BGP, you need to understand the following concepts: BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The following default limits are used if the user does not configure the maximum number of prefixes for the address family: ◦ 512K (524,288) prefixes for IPv4 unicast ◦ 128K (131,072) prefixes for IPv6 unicast ◦ 512K (524,288) prefixes for VPNv4 unicast BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
BGP Attributes and Operators This table summarizes the BGP attributes and operators per attach points. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 130
— extcommunity cost — set additive local-preference is, ge, le, eq is, eg, ge, le setset +set - next-hop origin source — suppress-route — suppress-route weight — BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 131
— origin — source — clear-policy as-path — is-local length neighbor-is originates-from passes-through unique-length as-path-length is, ge, le, eq — as-path-unique-length is, ge, le, eq — BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 132
— is, eg, ge, le — next-hop — origin — source — debug destination — default originate — set + set - rib-has-route — BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 133
— matches-any matches-every matches-within local-preference is, ge, le, eq is, eg, ge, le set + set - BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 134
Implementing BGP Information about Implementing BGP Attach Point Attribute Match next-hop set peer address origin route-aggregated route-aggregated source — weight — BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 135
— matches-any matches-every matches-within local-preference is, ge, le, eq is, eg, ge, le BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 136
+ set - set max-unreachable set igp-cost next-hop set self origin path-type — — route-aggregated route-aggregated — source — unsuppress-route — unsuppress-route vpn-distinguisher — neighbor-orf orf-prefix BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 139
This table summarizes which operations are valid and where they are valid. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
BGP routers typically receive multiple paths to the same destination. The BGP best-path algorithm determines the best path to install in the IP routing table and to use for forwarding traffic. This section describes the Cisco IOS XR software implementation of BGP best-path algorithm, as specified in Section 9.1 of the Internet Engineering Task Force (IETF) Network Working Group draft-ietf-idr-bgp4-24.txt document.
Page 141
• If the AS path starts with an AS_SEQUENCE, then the neighbor AS is the first AS number in the sequence, and the MED is compared with other paths that have the same neighbor AS. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Each path is compared with the best-so-far, and if it is better, it becomes the new best-so-far and is compared with the next path in the group. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Update Groups feature introduces an algorithm that dynamically calculates BGP update group membership based on outbound routing policies. This feature does not require any configuration by the network operator. Update group-based message generation occurs automatically and independently. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
• Next hop becomes unconnected • Next hop becomes a local address • Next hop becomes a nonlocal address Note Reachability and recursed metric events trigger a best-path recalculation. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 145
If the nexthop policy is not configured and neither the IPv6 neighbor interface nor the IPv6 update source interface is configured, the next hop is the IPv4 mapped IPv6 address. Scoped IPv4/VPNv4 Table Walk BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
RIB. The out keyword displays debug information about next-hop notifications sent to the RIB. BGP Nonstop Routing Reference BGP NSR provides nonstop routing during the following events: BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 147
• NSR statistics display using show commands • XML schema support • Auditing mechanisms to verify state synchronization between active and standby instances • CLI commands to enable and disable NSR BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Figure 3: Simple BGP Model with a Route Reflector, on page 139 , Router B is configured as a route reflector. When the route reflector receives routes advertised from BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 149
(nonclient peers). A route reflector reflects routes between these two groups. The route reflector and its client peers form a cluster. The nonclient peers must be fully meshed with each other, but the BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 150
A route reflector can be configured to have other route reflectors in a client group or nonclient group. In a simple configuration, the backbone could be divided into many clusters. Each route BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Even if the criteria are met and multiple paths are considered multipaths, the BGP speaking router designates one of the multipaths as the best path and advertises this best path to its neighbors. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The service provider that uses the segment of the backbone network is called the customer carrier. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
An IPv6 unicast address is an identifier for a single interface, on a single node. A packet that is sent to a unicast address is delivered to the interface identified by that address. Cisco IOS XR software supports the following IPv6 unicast address types: •...
The BGP UPDATE message error handling changes BGP behavior in handling error UPDATE messages to avoid session reset. Based on the approach described in IETF IDR I-D:draft-ietf-idr-error-handling, the Cisco IOS XR BGP UPDATE Message Error handling implementation classifies BGP update errors into various categories based on factors such as, severity, likelihood of occurrence of UPDATE errors, or type of attributes.
FIB, before BGP sends out updates to neighbors, use the update wait-install command in router address-family IPv4 or router address-family VPNv4 configuration mode. The show bgp, show bgp neighbors, BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The architecture for EVPN VPWS is that the PEs run Multi-Protocol BGP in control-plane. The following image describes the EVPN-VPWS configuration: • The VPWS service on PE1 requires the following three elements to be specified at configuration time: BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
3. l2vpn 4. xconnect group group-name 5. p2p xconnect-name 6. interface type interface-path-id 7. neighbor evpn evi vpn-idtarget ac-id source ac-id 8. Use the commit or end command. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 160
RP/0/RP0/CPU0:router(config-l2vpn-xc-p2p)# interface TenGigE0/1/0/2 Specifies the interface type and instance. Step 7 neighbor evpn evi vpn-idtarget ac-id source ac-id Example: RP/0/RP0/CPU0:router(config-l2vpn-xc-p2p)# neighbor evpn evi 100 target 12 source 10 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
The following example shows how to configure EVPN-VPWS service. RP/0/RP0/CPU0:router# configure RP/0/RP0/CPU0:router(config)# l2vpn RP/0/RP0/CPU0:router(config-l2vpn)# xconnect group evpn-vpws RP/0/RP0/CPU0:router(config-l2vpn-xc)# p2p evpn1 RP/0/RP0/CPU0:router(config-l2vpn-xc-p2p)# interface TenGigE0/1/0/12 RP/0/RP0/CPU0:router(config-l2vpn-xc-p2p)# neighbor evpn evi 100 target 12 source 10 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 162
EVPN Virtual Private Wire Service (VPWS) Configuring EVPN-VPWS: Example BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Configuring VPWS with BGP Autodiscovery and Signaling, page 153 • VPWS with BGP Autodiscovery and BGP Signaling, page 156 Configuring VPWS with BGP Autodiscovery and Signaling Perform this task to configure BGP-based autodiscovery and signaling. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 164
Enters configuration mode for the named xconnect group. Step 4 mp2mp vpws-domain name Example: RP/0/RP0/CPU0:router(config-l2vpn-xc)# mp2mp mp1 Enters configuration mode for the named vpws domain. Step 5 vpn-id vpn-id BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 165
Enables BGP signaling, and enters the BGP signaling configuration submode where BGP signaling parameters are configured. Step 11 ce-id { number} Example: RP/0/RP0/CPU0:router(config-l2vpn-xc-mp2mp-ad-sig)# ce-id 10 Specifies the local Customer Edge Identifier. Step 12 Use the commit or end command. BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...
Page 167
Group gr1, XC mp1.1:2, state is up; Interworking none Local CE ID: 1, Remote CE ID: 2, Discovery State: Advertised AC: GigabitEthernet0/1/0/1.1, state is up Type VLAN; Num Ranges: 1 BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x...