You can configure a different BGP ASN per Tier-0 VRF gateway and per BGP neighbor.
BGP Autonomous System Number (ASN) per Tier-0 VRF Gateway
Tier-0 VRF gateways can have a different ASN other than the default/parent Tier-0 gateway local Autonomous System (AS). A separate ASN is important for Service Providers and multi-tenant topologies where end-customers provide their own BGP ASN.
- When the parent Tier-0 gateway ASN changes, all child Tier-0 VRF gateways that inherit the ASN from the parent will change, causing all neighbors to flap.
- When the child Tier-0 VRF gateway has its own ASN different from the parent Tier-0 gateway:
- If the parent Tier-0 gateway ASN is changed, the ASN of the child Tier-0 VRF gateway will not change, and no flap should occur.
- If the child Tier-0 VRF gateway ASN is changed, all neighbors of that VRF will flap regardless of whether the neighbor has a local AS set. The parent Tier-0 gateway connections in other VRFs will not flap.
- Any change to the ASN for the neighbor local AS causes that connection to flap. No other neighbors should be affected.
BGP Per Neighbor ASN Override on Outgoing BGP Updates
NSX 4.1.0 provides BGP mechanisms for seamless ASN migration.
When an ISP acquires a network that belongs to a different autonomous system (AS), its BGP peers must be moved to the acquiring ISP's AS. This can be complicated and time consuming. Starting with NSX 4.1.0, with the BGP mechanisms, you can configure BGP neighbors in Tier-0 gateways and Tier-0 VRF gateways with a different local ASN than the gateway's ASN. Using a local ASN permits the routing devices in an acquired network to appear to belong to the former AS (Local AS).
BGP neighbors can be configured to have their ASN replaced in outgoing updates. Outgoing BGP updates use AS Path prepending. It can be used to influence the best path algorithm by making it longer or shorter, as well as to enable routers to migrate to new ASNs without having to upgrade all the peers simultaneously.
For more information, see RFC7795.
Let’s take an example based on merging two ISPs to one ASN of ISP A:
- Default Prepend: By default, AS Path prepends all received BGP updates with the old ASN while advertising it to other BGP speakers (A').
A route received on CE-A from CE-B will have an AS PATH 64500 64510 64496.
- No Prepend: The local router will not prepend the old ASN to the incoming advertisement from that peer. AS Path will be prepended only with router's local AS.
A route received on CE-A from CE-B will have an AS PATH 64500 64496.
- No Prepend Replace AS: Local routes will be advertised with the old ASN instead of the router's local AS, and they will appear to be running with the old ASN.
A route received on CE-B from CE-A will have an ASPATH 64510 64499.