R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
413
preference (BGP/BGP-VPN instance view)
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }
undo preference
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
external-preference: Preference of eBGP routes, in the range of 1 to 255.
internal-preference: Preference of iBGP routes, in the range of 1 to 255.
local-preference: Preference of local routes, in the range of 1 to 255.
route-policy-name: Routing policy name, a case-sensitive string of 1 to 63 characters. Using the routing
policy can set a preference for routes matching it. The default value applies to routes not matching the
routing policy.
Description
Use preference to configure preferences for external, internal, and local routes.
Use undo preference to restore the default.
For external-preference, internal-preference and local-preference, the greater the preference value is, the
lower the preference is, and the default values are 255, 255, 130 respectively.
Examples
# In BGP view, configure preferences for eBGP, iBGP and local routes as 20, 20 and 200.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] preference 20 20 200
# In BGP-VPN instance view, configure preferences for eBGP, iBGP and local routes as 20, 20 and 200
(The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] preference 20 20 200
reflect between-clients (BGP view/BGP-VPN instance view)
Syntax
reflect between-clients
undo reflect between-clients
View
BGP view, BGP-VPN instance view