BGP Next Hop Unchanged

Similar documents
BGP Event-Based VPN Import

BGP Support for Next-Hop Address Tracking

BGP Support for the L2VPN Address Family

BGP mvpn BGP safi IPv4

MPLS VPN Inter-AS Option AB

ibgp Multipath Load Sharing

MPLS: Layer 3 VPNs: Inter-AS and CSC Configuration Guide, Cisco IOS Release 15SY

MPLS VPN over mgre. Finding Feature Information. Last Updated: November 1, 2012

MPLS LDP Autoconfiguration

CPU Thresholding Notification

Configuring Scalable Hub-and-Spoke MPLS VPNs

BGP Event-Based VPN Import

MPLS VPN--Inter-AS Option AB

BGP Graceful Shutdown

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

MPLS VPN Multipath Support for Inter-AS VPNs

BGP Diverse Path Using a Diverse-Path Route Reflector

BGP Dynamic Neighbors

BGP Cost Community. Prerequisites for the BGP Cost Community Feature

MPLS VPN Inter-AS with ASBRs Exchanging VPN-IPv4 Addresses

Remote Access MPLS-VPNs

MPLS VPN--Show Running VRF

MPLS VPN Inter-AS IPv4 BGP Label Distribution

Configuring BGP: RT Constrained Route Distribution

Sun RPC ALG Support for Firewall and NAT

BGP-MVPN SAFI 129 IPv6

MPLS VPN Carrier Supporting Carrier Using LDP and an IGP

MPLS VPN Route Target Rewrite

Configuring Internal BGP Features

Expires Timer Reset on Receiving or Sending SIP 183 Message

BGP-VPN Distinguisher Attribute

SIP RFC 2782 Compliance with DNS SRV Queries

Configuring Multicast VPN Inter-AS Support

Configuring Route Maps to Control the Distribution of MPLS Labels Between Routers in an MPLS VPN

IPv6 Routing: IS-IS Support for IPv6

BGP Support for Next-Hop Address Tracking

BGP Policy Accounting Output Interface Accounting

Configuring Data Export for Flexible NetFlow with Flow Exporters

BGP Best External. Finding Feature Information

Configuring NetFlow BGP Next Hop Support for Accounting and Analysis

OSPF Support for Multi-VRF on CE Routers

Suppress BGP Advertisement for Inactive Routes

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution

MPLS VPN Carrier Supporting Carrier IPv4 BGP Label Distribution

AToM Graceful Restart

Implementing Static Routes for IPv6

IPv6 Multicast Listener Discovery Protocol

Implementing IS-IS for IPv6

Multicast only Fast Re-Route

Logging to Local Nonvolatile Storage (ATA Disk)

Flexible NetFlow Full Flow support

Configuring COPS for RSVP

Encrypted Vendor-Specific Attributes

Connecting to a Service Provider Using External BGP

Multi-VRF Support. Finding Feature Information. Prerequisites for Multi-VRF Support

Implementing RIP for IPv6

Configuring Cisco IOS IP SLAs DNS Operations

MPLS Layer 3 VPNs Configuration Guide, Cisco IOS Release 12.4T

Using the Multicast Routing Monitor

PPPoE Client DDR Idle-Timer

Add Path Support in EIGRP

BGP AS-Override Split-Horizon

CAC for IPv6 Flows. Finding Feature Information. Prerequisites for CAC for IPv6 Flows. Restrictions for CAC for IPv6 Flows

Using Flexible NetFlow Top N Talkers to Analyze Network Traffic

Contextual Configuration Diff Utility

Configuring MAC Authentication Bypass

BGP Support for the L2VPN Address Family

Implementing Multicast Service Reflection

Netflow v9 for IPv6. Finding Feature Information. Prerequisites for Netflow v9 for IPv6. Information About Netflow v9 for IPv6

MPLS VPN Carrier Supporting Carrier Using LDP and an IGP

EIGRP Support for Route Map Filtering

IS-IS Inbound Filtering

BGP Named Community Lists

Configuring a BGP Route Server

IP Routing: ODR Configuration Guide, Cisco IOS Release 15M&T

Configuring Data Export for Flexible NetFlow with Flow Exporters

Configuring the Physical Subscriber Line for RADIUS Access and Accounting

BGP Enhanced Route Refresh

MPLS VPN Explicit Null Label Support with BGP. BGP IPv4 Label Session

Information About IPv6 Multicast Address Family Support for. Multiprotocol BGP. Finding Feature Information

NAT Routemaps Outside-to-Inside Support

Application Firewall-Instant Message Traffic Enforcement

BGP Enforce the First Autonomous System Path

BGP Additional Paths. Finding Feature Information. Information About BGP Additional Paths. Problem That Additional Paths Can Solve

Configuring MPLS Multi-VRF (VRF-lite)

DHCP Server Port-Based Address Allocation

IGMP Static Group Range Support

RSVP Interface-Based Receiver Proxy

EIGRP Route Tag Enhancements

IPv6 Neighbor Discovery

BGP Support for IP Prefix Export from a VRF Table into the Global Table

Firewall Stateful Inspection of ICMP

Configuring Secure Shell

MPLS LDP Graceful Restart

HTTP 1.1 Web Server and Client

Role-Based CLI Access

QoS: Child Service Policy for Priority Class

BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard

IEEE 802.1ah on Provider Backbone Bridges

Transcription:

BGP Next Hop Unchanged Last Updated: September 8, 2011 In an external BGP (ebgp) session, by default, the router changes the next hop attribute of a BGP route (to its own address) when the router sends out a route. The BGP Next Hop Unchanged feature allows BGP to send an update to an ebgp multihop peer with the next hop attribute unchanged. Finding Feature Information, page 1 Information About BGP Next Hop Unchanged, page 1 How to Configure BGP Next Hop Unchanged, page 2 Configuration Example for BGP Next Hop Unchanged, page 4 Additional References, page 5 Feature Information for BGP Next Hop Unchanged, page 5 Finding Feature Information Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Information About BGP Next Hop Unchanged BGP Next Hop Unchanged, page 1 BGP Next Hop Unchanged In an external BGP (ebgp) session, by default, the router changes the next hop attribute of a BGP route (to its own address) when the router sends out a route. If the BGP Next Hop Unchanged feature is configured, BGP will send routes to an ebgp multihop peer without modifying the next hop attribute. The next hop attribute is unchanged. Americas Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA 95134-1706 USA

How to Configure BGP Next Hop Unchanged BGP Next Hop Unchanged Note There is an exception to the default behavior of the router changing the next hop attribute of a BGP route when the router sends out a route. When the next hop is in the same subnet as the peering address of the ebgp peer, the next hop is not modified. This is referred to as third party next-hop. The BGP Next Hop Unchanged feature provides flexibility when designing and migrating networks. It can be used only between ebgp peers configured as multihop. It can be used in a variety of scenarios between two autonomous systems. One scenario is when multiple autonomous systems are connected that share the same IGP, or at least the routers have another way to reach each other s next hops (which is why the next hop can remain unchanged). A common use of this feature is to configure Multiprotocol Label Switching (MPLS) inter-as with multihop MP-eBGP for VPNv4 between RRs. Another common use of this feature is a VPNv4 inter-as Option C configuration, as defined in RFC4364, Section 10. In this configuration, VPNv4 routes are passed among autonomous systems between RR of different autonomous systems. The RRs are several hops apart, and have neighbor next-hop unchanged configured. PEs of different autonomous systems establish an LSP between them (via a common IGP or by advertising the next-hops--that lead to the PEs--via labeled routes among the ASBRs--routes from different autonomous systems separated by one hop). PEs are able to reach the next hops of the PEs in another AS via the LSPs, and can therefore install the VPNv4 routes in the VRF RIB. Restriction The BGP Next Hop Unchanged feature can be configured only between multihop ebgp peers. The following error message will be displayed if you try to configure this feature for a directly connected neighbor: %BGP: Can propagate the nexthop only to multi-hop EBGP neighbor How to Configure BGP Next Hop Unchanged Configuring the BGP Next Hop Unchanged for an ebgp Peer, page 3 2

Configuring the BGP Next Hop Unchanged for an ebgp Peer How to Configure BGP Next Hop Unchanged Configuring the BGP Next Hop Unchanged for an ebgp Peer SUMMARY STEPS 1. enable 2. configure terminal 3. router bgp as-number 4. address-family {ipv4 [unicast] vpnv4 [unicast]} 5. neighbor ip-address remote-as as-number 6. neighbor ip-address activate 7. neighbor ip-address ebgp-multihop ttl 8. neighbor ip-address next-hop-unchanged 9. end 10. show ip bgp DETAILED STEPS Step 1 Step 2 Command or Action enable Router> enable configure terminal Purpose Enables privileged EXEC mode. Enter your password if prompted. Enters global configuration mode. Step 3 Router# configure terminal router bgp as-number Enters router configuration mode, and creates a BGP routing process. Step 4 Router(config)# router bgp 65535 address-family {ipv4 [unicast] vpnv4 [unicast]} Enters address family configuration mode to configure BGP peers to accept address family specific configurations. Router(config-router-af)# address-family vpnv4 3

Configuration Example for BGP Next Hop Unchanged Configuring the BGP Next Hop Unchanged for an ebgp Peer Step 5 Command or Action neighbor ip-address remote-as as-number Purpose Adds an entry to the BGP neighbor table. Step 6 remote-as 65600 neighbor ip-address activate Enables the exchange of information with the peer. Step 7 Step 8 Step 9 activate neighbor ip-address ebgp-multihop ttl ebgp-multihop 255 neighbor ip-address next-hop-unchanged next-hop-unchanged end Router(config-router-af)# end Configures the local router to accept and initiate connections to external peers that reside on networks that are not directly connected. Configures the router to send BGP updates to the specified ebgp peer without modifying the next hop attribute. Exits address family configuration mode, and enters privileged EXEC mode. Step 10 show ip bgp Router# show ip bgp (Optional) Displays entries in the BGP routing table. The output will indicate if the neighbor next-hopunchanged command has been configured for the selected address. Configuration Example for BGP Next Hop Unchanged Example BGP Next Hop Unchanged for an ebgp Peer, page 5 4

Example BGP Next Hop Unchanged for an ebgp Peer Additional References Example BGP Next Hop Unchanged for an ebgp Peer The following example configures a multihop ebgp peer at 10.0.0.100 in a remote AS. When the local router sends updates to that peer, it will send them without modifying the next hop attribute. router bgp 65535 address-family ipv4 neighbor 10.0.0.100 remote-as 65600 neighbor 10.0.0.100 activate neighbor 10.0.0.100 ebgp-multihop 255 neighbor 10.0.0.100 next-hop-unchanged end Additional References Related Documents Related Topic Cisco IOS commands BGP commands BGP configuration tasks MPLS configuration tasks BGP Outbound Route Map on Route Reflector to Set IP Next Hop for ibgp Peer Document Title Cisco IOS Master Commands List, All Releases Cisco IOS IP Routing: BGP Command Reference IP Routing: BGP Configuration Guide MPLS Configuration Guide "Configuring Internal BGP Features" Technical Assistance Description The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. Link http://www.cisco.com/cisco/web/support/ index.html Feature Information for BGP Next Hop Unchanged The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. 5

Example BGP Next Hop Unchanged for an ebgp Peer Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Table 1 Feature Information for BGP Next Hop Unchanged Feature Name Releases Feature Configuration Information BGP Next Hop Unchanged 12.0(22)S 12.0(16)ST 12.2 12.2(14)S 15.0(1)S The BGP Next Hop Unchanged feature allows BGP to send an update to an ebgp multihop peer with the next hop attribute unchanged. The following command was added by this feature: neighbor next-hop-unchanged. Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at 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. (1005R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. 2011 Cisco Systems, Inc. All rights reserved. 6