The peer as-number command creates a peer and configures an AS number for a specified peer.
The undo peer as-number command deletes the AS number of a specified peer.
By default, no BGP peer is configured, and no AS number is specified for a peer.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
as-number |
Specifies a destination AS number. |
For an integral AS number, the value is an integer ranging from 1 to 4294967295. For an AS number in dotted notation, the value is in the format of x.y, where x and y are integers ranging from 1 to 65535 and from 0 to 65535, respectively. |
Usage Scenario
The peer as-number command is used to create a BGP peer.
Precautions
If a peer does not join any peer group or the peer group to which a peer belongs is not configured with an AS number, deleting the AS number of the peer will reset the peer relationship.
If a peer in a peer group is not configured with an AS number, deleting the AS number of the peer group will interrupt the connection on the peer. The AS number for external session group cannot be the same as the local AS number. If you run the undo peer ipv6-address command, all configurations related to the peer are deleted. Therefore, exercise caution when running this command.