HP 5920 Series Command Reference Manual page 388

Layer 3 - ip routing
Hide thumbs Also See for 5920 Series:
Table of Contents

Advertisement

undo peer { group-name | ip-address | ipv6-address } public-as-only
In BGP-VPN IPv6 unicast address family 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 address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address
family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP
VPNv6 address family 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 address family view, remove private AS numbers in BGP updates sent to EBGP peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] peer test public-as-only
# In BGP VPNv4 address family view, remove private AS numbers in BGP updates sent to EBGP peer
group test.
<Sysname> system-view
[Sysname] bgp 100
375

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900 series

Table of Contents