R2511-HP MSR Router Series MPLS Command Reference(V5)

167
Parameters
group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies the IP address of the peer.
value: Specifies the preference value to be specified, in the range of 0 to 65535.
Examples
# In BGP-VPNv4 subaddress family view, set the preference value for the routes received from peer
131.10 8 .1.1 t o 5 0 .
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 131.108.1.1 preferred-value 50
peer public-as-only (BGP-VPNv4 subaddress family view)
Use peer public-as-only to make outbound BGP updates carry no private AS numbers.
Use undo peer public-as-only to make outbound BGP updates carry private AS numbers.
Syntax
peer { group-name | ip-address } public-as-only
undo peer { group-name | ip-address } public-as-only
Default
A BGP update carries private AS numbers.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies the IP address of the peer.
Usage guidelines
If a BGP update to be sent carries any public AS number, this command does not take effect. The value
range for a private AS number is 64512 to 65535.
Examples
# In BGP-VPNv4 subaddress family view, configure the device to exclude private AS numbers from the
BGP updates to be sent to the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test public-as-only