Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Enter BGP IPv4 unicast
instance view or BGP-VPN
IPv4 unicast instance view.
ipv4-family [ unicast ] N/A
4. Configure BGP to remove
private AS numbers from the
AS_PATH attribute of updates
sent to an EBGP peer or peer
group.
peer { group-name | ip-address }
public-as-only
By default, this feature is not
configured.
This command is only applicable to
EBGP peers or peer groups.
To remove private AS numbers from updates sent to an EBGP peer or peer group (IPv6):
Ste
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ip vpn-instance
vpn-instance-name
N/A
3. Enter BGP IPv6 unicast
instance view or BGP-VPN
IPv6 unicast instance view.
ipv6-family [ unicast ] N/A
4. Configure BGP to remove
private AS numbers from the
AS_PATH attribute of updates
sent to an EBGP peer or peer
group.
peer { group-name |
ipv6-address } public-as-only
By default, this feature is not
configured.
This command is only applicable to
EBGP peers or peer groups.
Ignoring the first AS number of EBGP route updates
By default, BGP checks whether the first AS number in the AS_PATH attribute of a route update received
from a peer is the AS number of that peer. If not, BGP discards the route update.
To ignore the first AS number of EBGP route updates:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view.
bgp as-number N/A
3. Configure BGP to ignore the first AS
number of EBGP route updates.
ignore-first-as
By default, BGP checks the
first AS number of EBGP
route updates.