296
Use
undo peer public-as-only
to restore the default.
Syntax
In BGP IPv4 unicast instance view/BGP-VPN IPv4 unicast instance view:
peer
{
group-name
|
ip-address
}
public-as-only
undo
peer
{
group-name
|
ip-address
}
public-as-only
In BGP IPv6 unicast instance view:
peer
{
group-name
|
ipv6-address
}
public-as-only
undo peer
{
group-name
|
ipv6-address
}
public-as-only
In BGP-VPN IPv6 unicast instance view:
peer
{
group-name
|
ipv6-address
}
public-as-only
undo peer
{
group-name
|
ipv6-address
}
public-as-only
Default
BGP updates sent to an EBGP peer or peer group can carry both public and private AS numbers.
Views
BGP IPv4 unicast instance view, BGP-VPN IPv4 unicast instance view, BGP IPv6 unicast instance view,
BGP-VPN IPv6 unicast instance view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.
ipv6-address
: Specifies a peer by its IPv6 address. The peer must have been created.
Usage guidelines
Private AS numbers are typically used in test networks, and need not be transmitted in public networks.
The range of private AS numbers is from 64512 to 65535.
After you execute the command, you can get the following results:
•
If the AS_PATH attribute of a BGP update carries only private AS numbers, the device removes the
AS numbers before sending the update to the EBGP peer or peer group.
•
If the AS_PATH attribute carries both public and private AS numbers, the command does not take
effect. The device sends the BGP update to the EBGP peer or peer group without removing the
private AS numbers.
•
If the AS_PATH attribute carries AS numbers of the peer or peer group, the command does not take
effect. The device sends the BGP update to the peer or peer group without removing the private AS
numbers.
This command is only applicable to an EBGP peer or peer group.
Examples
# In BGP IPv4 unicast instance view, remove private AS numbers in BGP updates sent to EBGP peer
group
test
.