
322
peer preferred-value (BGP-VPNv4 subaddress family view)
Description
Use the
peer preferred-value
command to specify the preference value for the routes received from the
specified peer or peer group.
Use the
undo peer preferred-value
command to restore the default.
By default, the preference value for the routes received from a peer or peer group is 0.
Syntax
peer
{
group-name | ip-address
}
preferred-value
value
undo
peer
{
group-name | ip-address
}
preferred-value
View
BGP-VPNv4 subaddress family view
Default level
2: System level
Parameters
group-name
: Specifies the name of the peer group, which is 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, ranging from 0 to 65,535.
Examples
# Set the preference value for the routes received from peer 131.108.1.1 to 50.
<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)
Description
Use the
peer public-as-only
command to make outbound BGP updates carry no private AS numbers.
Use the
undo peer public-as-only
command to make outbound BGP updates carry private AS numbers.
By default, a BGP update carries private AS numbers.
If a BGP update to be sent carries any public AS number, this command does not take effect. The private
AS number ranges from 64,512 to 65,535.
Syntax
peer
{
group-name | ip-address
}
public-as-only
undo
peer
{
group-name | ip-address
}
public-as-only
View
BGP-VPNv4 subaddress family view