Configuring BGP AS number substitution
When CEs at different sites have the same AS number, configure the BGP AS number substitution function to avoid route loss. If the AS_PATH attribute of a route contains the AS number of the specified CE, the PE replaces the AS number with its own AS number before advertising the route to that CE.
To configure BGP AS number substitution:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view. | bgp as-number | N/A |
3. Enter BGP-VPN instance view. | ip vpn-instance vpn-instance-name | N/A |
4. Configure a BGP peer or peer group. | peer { group-name | ip-address } as-number as-number | N/A |
5. Enable the BGP AS number substitution function. | peer { ip-address | group-name } substitute-as | By default, BGP AS number substitution is disabled. For more information about this command, see Layer 3—IP Routing Command Reference. |