[Sysname-bgp-vpn1] peer 131.108.1.1 preferred-value 50
peer public-as-only (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
View
BGP view/BGP-VPN instance view
Default Level
2: System level
Parameters
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
Description
Use the peer public-as-only command to not keep private AS numbers in BGP updates sent to a
peer/peer group.
Use the undo peer public-as-only command to keep private AS numbers in BGP updates sent to a
peer/peer group.
By default, BGP updates carry private AS numbers.
The command does not take effect if the BGP update has both public and private AS numbers. The
range of private AS number is from 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-vpn1] peer test public-as-only
peer reflect-client (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } reflect-client
undo peer { group-name | ip-address } reflect-client
1-58
Need help?
Do you have a question about the S7906E and is the answer not in the manual?
Questions and answers