H3C Technologies H3C S12500-X Series Switches User Manual
Page 236
222
Step Command
Remarks
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.
594B
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):
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.
Enter BGP IPv4 unicast
address family view or
BGP-VPN IPv4 unicast
address family view.
address-family ipv4 [ 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):
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.
Enter BGP IPv6 unicast
address family view or
BGP-VPN IPv6 unicast
address family view.
address-family ipv6 [ unicast ]
N/A