237
To configure AS number substitution for a peer or peer group (IPv6 unicast/multicast address family):
Step Command
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.
Configure AS number
substitution for a peer or peer
group.
peer
{
group-name
|
ipv6-address
}
substitute-as
By default, AS number substitution
is not configured.
Removing private AS numbers from updates sent to an EBGP peer or peer group
Private AS numbers are typically used in test networks, and should not be transmitted in public networks.
The range of private AS numbers is from 64512 to 65535.
To remove private AS numbers from updates sent to an EBGP peer or peer group (IPv4 unicast/multicast
address family):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP IPv4 unicast
address family view,
BGP-VPN IPv4 unicast
address family view, or
BGP IPv4 multicast
address family view.
•
Enter BGP IPv4 unicast address family
view:
a.
bgp
as-number
b.
address-family ipv4
[
unicast
]
•
Enter BGP-VPN IPv4 unicast address
family view:
a.
bgp
as-number
b.
ip vpn-instance
vpn-instance-name
c.
address-family ipv4
[
unicast
]
•
Enter BGP IPv4 multicast address
family view:
a.
bgp
as-number
b.
address-family ipv4 multicast
N/A
3.
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 unicast/multicast
address family):
Step Command
Remarks
1.
Enter system view.
system-view
N/A