R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

406
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.
value: Preferred value, in the range of 0 to 65535.
Description
Use peer preferred-value to assign a preferred value to routes received from a peer or peer group.
Use undo peer preferred-value to restore the default value.
The default preferred value is 0.
Routes learned from a peer have an initial preferred value. Among multiple routes that have the same
destination/mask and are learned from different peers, the one with the greatest preferred value is
selected as the route to the destination.
NOTE:
If you both reference a routing policy and use the peer {
group-name
|
ip-address
} preferred-value
v
alu
e
command to set a preferred value for routes from a peer, the routing policy sets the specified preferred
v
alue for routes matchin
g
it. Other routes not matchin
g
the routin
g
policy uses the value set with the
command. If the preferred value specified in the routin
g
policy is zero, the routes matchin
g
it will also use
the value set with the peer {
group-name
|
ip-address
} preferred-value
value
command. For how to use
a routing policy to set a preferred value, see the commands peer {
group-name
|
ip-address
}
route-policy
route-policy-name
{ export | import } in this chapter and apply preferred-value
p
referre
d
-value
in "Routing policy configuration commands."
Examples
# I n B G P vi ew, c o n f i g u r e t h e p r e f e r r e d va l u e a s 50 f o r r o u t e s f r o m p e e r 131.10 8 .1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 131.108.1.1 preferred-value 50
# In BGP-VPN instance view, configure the preferred value as 50 for routes from peer 131.108.1.1 (The
VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[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