Usage Scenario
During network transfer or service identification, a device needs to be simulated as multiple BGP devices logically. In this case, you can run the as-number command to configure an AS number for each VPN instance.
After the
as-number command is used:
- BGP peer relationships in the VPN instance are established by using the configured AS number.
- The configured AS number is used to generate the aggregator attribute during route aggregation.
- When advertising routes to an external border gateway protocol (EBGP) peer, the local device carries the AS number configured in the VPN instance.
Prerequisites
If a BGP peer or a BGP peer group is configured in the VPN instance, you need to delete the configuration of the BGP peer or peer group before configuring or deleting an AS number.
Precautions
If a VPN instance has been configured with an independent AS number, no confederation can be configured. When configuring a confederation, you cannot configure an independent AS number for a VPN instance.
The independent AS number configured in the VPN instance view cannot be the same as the AS number configured in the BGP view.
This command cannot be configured in the BGP YANG management mode. To configure an independent AS number for the VPN instance IPv6 address family, run the
as-number ipv6 ipv6-as command in the BGP-VPN instance view.