- Cisco BGP Overview
- BGP 4
- Configuring a Basic BGP Network
- BGP 4 Soft Configuration
- BGP Support for 4-byte ASN
- Connecting to a Service Provider Using External BGP
- BGP Prefix-Based Outbound Route Filtering
- BGP Route-Map Continue
- BGP Route-Map Continue Support for Outbound Policy
- Removing Private AS Numbers from the AS Path in BGP
- Configuring BGP Neighbor Session Options
- BGP Neighbor Policy
- BGP Dynamic Neighbors
- BGP Support for Next-Hop Address Tracking
- BGP Restart Neighbor Session After Max-Prefix Limit Reached
- BGP Support for Dual AS Configuration for Network AS Migrations
- Configuring Internal BGP Features
- BGP VPLS Auto Discovery Support on Route Reflector
- BGP FlowSpec Route-reflector Support
- BGP Support for BFD
- IPv6 Routing: Multiprotocol BGP Extensions for IPv6
- IPv6 Multicast Address Family Support for Multiprotocol BGP
- IPv6 Routing: Multiprotocol BGP Link-Local Address Peering
- IPv6 NSF and Graceful Restart for MP-BGP IPv6 Address Family
- BGP NSF Awareness
- BGP Graceful Restart per Neighbor
- Configuring Multiprotocol BGP (MP-BGP) Support for CLNS
- BGP Link Bandwidth
- iBGP Multipath Load Sharing
- BGP Multipath Load Sharing for Both eBGP and iBGP in an MPLS-VPN
- Loadsharing IP Packets Over More Than Six Parallel Paths
- BGP Policy Accounting
- BGP Policy Accounting Output Interface Accounting
- BGP Cost Community
- Regex Engine Performance Enhancement
- BGP Support for IP Prefix Import from Global Table into a VRF Table
- BGP Support for IP Prefix Export from a VRF Table into the Global Table
- BGP per Neighbor SoO Configuration
- BGP Next Hop Unchanged
- Per-VRF Assignment of BGP Router ID
- BGP Event-Based VPN Import
- BGP Support for the L2VPN Address Family
- Detecting and Mitigating a BGP Slow Peer
- Configuring BGP: RT Constrained Route Distribution
- Configuring BGP Consistency Checker
- BGP—Origin AS Validation
- BGP Support for NSR with SSO
- BGP NSR Auto Sense
- BGP NSR Support for iBGP Peers
- BGP Graceful Shutdown
- BGP — mVPN BGP sAFI 129 - IPv4
- BGP-MVPN SAFI 129 IPv6
- BGP Attribute Filter and Enhanced Attribute Error Handling
- BGP Additional Paths
- BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard
- BGP—Selective Route Download
- BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- BGP MIB Support
- BGP 4 MIB Support for per-Peer Received Routes
- BGP PIC Edge for IP and MPLS-VPN
- BGP IPv6 PIC Edge and Core for IP/MPLS
- BGP Unified MPLS iBGP Client
- Cisco-BGP-MIBv2
- BGP Diverse Path Using a Diverse-Path Route Reflector
- BGP-VRF-Aware Conditional Advertisement
- BGP—Support for iBGP Local-AS
- IOS-XE IBGP local-as dual-as
- VPLS BGP Signaling
- BGP NSR Support for MPLS VPNv4 and VPNv6 Inter-AS Option B
- L3VPN iBGP PE-CE
- eiBGP Multipath for Non-VRF Interfaces (IPv4/IPv6)
- BGP-RTC for Legacy PE
- BGP PBB EVPN Route Reflector Support
- BGP Monitoring Protocol
- VRF Aware BGP Translate-Update
- BGP Support for MTR
- BGP Accumulated IGP
- Finding Feature Information
- Restrictions for Support for iBGP Local-AS
- Information About Support for iBGP Local-AS
- Support for iBGP Local-AS
- Benefits of iBGP Local-AS
- How to Configure iBGP Local-AS
- Configuring iBGP Local-AS
- Configuration Examples for iBGP Local-AS
- Example: Configuring iBGP Local-AS
- Additional References for Support for iBGP Local-AS
- Feature Information for BGP—Support for iBGP Local-AS
BGP—Support for iBGP Local-AS
Prior to the BGP—Support for iBGP Local-AS feature, the neighbor local-as command was used on a BGP neighbor to change the AS negotiated for an eBGP neighbor and to modify the AS_PATH sent or received. The neighbor local-as command can now be used to do the same on an iBGP session. AS negotiation creates an iBGP session and we enable sending iBGP attributes (LOCAL_PREF, ORIGINATOR_ID, and CLUSTER_LIST) over it, and accept this attributes when received from this session. This functionality is useful when merging two autonomous systems into one.
- Finding Feature Information
- Restrictions for Support for iBGP Local-AS
- Information About Support for iBGP Local-AS
- Support for iBGP Local-AS
- Benefits of iBGP Local-AS
- How to Configure iBGP Local-AS
- Configuring iBGP Local-AS
- Configuration Examples for iBGP Local-AS
- Example: Configuring iBGP Local-AS
- Additional References for Support for iBGP Local-AS
- Feature Information for BGP—Support for iBGP Local-AS
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and 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.
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.
Restrictions for Support for iBGP Local-AS
-
This feature is not supported for a peer that belongs to a confederation.
-
Nonlocal-AS iBGP neighbors that are in a single AS are put into a separate update group from iBGP neighbors that are configured with the iBGP Local-AS feature.
-
Two iBGP neighbors that are in two different autonomous systems and that are configured with the same iBGP Local-AS number are put into separate update groups.
Information About Support for iBGP Local-AS
Support for iBGP Local-AS
Prior to the Support for iBGP Local-AS feature, when a peer (or peer group) was configured with the neighbor local-as command and the neighbor remote-as command that specified the same AS number, the session would be negotiated as an iBGP session (the two negotiated ASes would be the same). However, updates were propagated as in an eBGP session (LOCAL_PREF, ORIGINATOR_ID and CLUSTER_LIST were not propagated), and could cause errors if they were received via this session. Thus, iBGP local-AS was not fully supported.
The Support for iBGP Local-AS feature causes to propagate all those iBGP attributes. Additionally, as in any iBGP session, no ASes are prepended in AS_PATH when advertising routes to an iBGP local-as session.
The figure below illustrates a scenario where this feature is being used to facilitate the merging of two autonomous systems. The route reflector (R3) and R4 belong to AS 1000; R1 and R6 belong to AS 3000. The RR is configured with neighbor local-as 3000 and neighbor remote-as 3000 commands. Even though the routers belong to two different autonomous systems, attributes like the LOCAL_PREF are preserved in the updates from R6 to R4 and R1 (as show in the figure), and also in the updates from R4 to R1 and R6 (not shown in the figure).
Benefits of iBGP Local-AS
This feature is used when merging two ISPs that have different autonomous system numbers. It is desirable to preserve attributes that are considered internal (LOCAL_PREF, ORIGINATOR_ID, CLUSTER_ID, and CLUSTER_LIST) in the routes that are being passed to a different autonomous system. Configuring this feature causes these iBGP attributes in the advertised routes to be passed on to the second AS rather than dropped.
How to Configure iBGP Local-AS
Configuring iBGP Local-AS
Configure the iBGP Local-AS feature on a BGP speaker when you want iBGP attributes to be preserved in updates to a neighbor or peer group in another AS. This configuration is typically performed on a route reflector, but not exclusively on it. In a route reflector you can optionally configure changing iBGP attributes sent to a neighbor via the command allow-policy (this command is not exclusive for this feature and can be used on any RR).
1.
enable
2.
configure
terminal
3.
ipv6
unicast-routing
4.
router
bgp
autonomous-system-number
5.
neighbor peer-group-name peer-group
6.
neighbor {ip-address | ipv6-address} peer-group peer-group-name
7.
neighbor {ip-address
| ipv6-address | peer-group} remote-as as-number
8.
neighbor {ip-address
| ipv6-address | peer-group}
local-as as-number
9.
neighbor {ip-address
| ipv6-address | peer-group}
route-reflector-client
10.
address-family
vpnv4
11.
neighbor {ip-address
| ipv6-address | peer-group}
allow-policy
12.
exit
13.
address-family
vpnv6
14.
neighbor {ip-address
| ipv6-address | peer-group}
allow-policy
15.
end
16.
show ip bgp vpnv4 all neighbors
{ip-address
| ipv6-address}
policy
17.
show ip bgp vpnv4 all update-group update-group
18.
show ip bgp vpnv4 all neighbors
{ip-address
| ipv6-address}
DETAILED STEPS
Configuration Examples for iBGP Local-AS
Example: Configuring iBGP Local-AS
The example configures a route reflector (RR) in AS 4000 to treat BGP sessions with the peer group rr-client-2 in AS 2500 as iBGP sessions. That is, iBGP attributes (LOCAL_PREF, ORIGINATOR_ID, CLUSTER_ID, and CLUSTER_LIST) will not be dropped from routes in advertisements to and from the peer group; the attributes will be passed unmodified. AS 2500 will be prepended to the AS_PATH attribute in routes to and from the peer group.
Additionally, the neighbor allow-policy command configures that the network administrator can configure iBGP policies on the RR. That is, an outbound route map can be configured to change attributes that are sent to the downstream peers. In this example, the feature is applied to VPNv4 and VPNv6 address families.
router bgp 4000 neighbor rr-client-2 peer-group neighbor 192.168.1.1 peer-group rr-client-2 neighbor 192.168.4.1 peer-group rr-client-2 neighbor rr-client-2 remote-as 2500 neighbor rr-client-2 local-as 2500 neighbor rr-client-2 route-reflector-client address-family vpnv4 neighbor rr-client-2 allow-policy ! address-family vpnv6 neighbor rr-client-2 allow-policy
Additional References for Support for iBGP Local-AS
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
BGP commands |
|
Migration of autonomous systems |
“BGP Support for Dual AS Configuration for Network AS Migrations” module in the IP Routing: BGP Configuration Guide, Cisco IOS XE Release 3S |
Technical Assistance
Description | Link |
---|---|
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. |
Feature Information for BGP—Support for iBGP Local-AS
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.
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.
Feature Name |
Releases |
Feature Information |
---|---|---|
BGP—Support for iBGP Local-AS |
15.3(2)S 15.3(3)M |
Prior to the BGP—Support for Local-AS feature, the neighbor local-as command was used on a route reflector to customize AS_PATH attributes for routes received from an eBGP neighbor. The neighbor local-as command can now be used to enable the sending of the iBGP attributes (LOCAL_PREF, ORIGINATOR_ID, CLUSTER_ID, and CLUSTER_LIST) over an iBGP local-AS session. This functionality is useful when merging two autonomous systems, when it is advantageous to keep the iBGP attributes in routes. Prior to the BGP—Support for iBGP Local-AS feature, the RR should not have been configured to change iBGP attributes. With the introduction of this feature, the RR can be configured to change iBGP attributes, providing more flexibility. The following commands introduced or modified: neighbor allow-policy, neighbor local-as, show ip bgp vpnv4. |