R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
278
peer public-as-only (BGP/BGP-VPN instance view)
Use peer public-as-only to not keep private AS numbers in BGP updates sent to a peer/peer group.
Use undo peer public-as-only to keep private AS numbers in BGP updates sent to a peer/peer group.
Syntax
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
Default
BGP updates carry private AS numbers.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies the IP address of a peer.
Usage guidelines
The command does not take effect if the BGP update has both public and private AS numbers. The value
range for the private AS number is 64512 to 65535.
Examples
# In BGP view, carry no private AS number in BGP updates sent to the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test public-as-only
# In BGP-VPN instance view, carry no private AS number in BGP updates sent to the peer group test. (The
VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test public-as-only
peer reflect-client (BGP/BGP-VPN instance view)
Use peer reflect-client to configure the router as a route reflector and specify a peer/peer group as a
client.
Use undo peer reflect-client to remove the configuration.
Syntax
peer { group-name | ip-address } reflect-client
undo peer { group-name | ip-address } reflect-client