The as-number command configures an AS number for a VPN instance.
The undo as-number command restores the default setting.
By default, a VPN instance uses the AS number of BGP.
Parameter | Description | Value |
---|---|---|
as-number-plain | Integral AS number | The value is an integer ranging from 1 to 4294967295. |
as-number-dot | AS number in dotted notation | The value is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. |
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.
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
A VPN instance configured with an AS number cannot be configured with BGP confederation. Conversely, a VPN instance configured with BGP confederation cannot be configured with an AS number.
The AS number configured in the BGP-VPN instance view cannot be the same as the AS number configured in the BGP view.