HP 6125XLG R2306-HP 6125XLG Blade Switch Layer 3 - IP Routing Command Referenc - Page 219
default local-preference
View all HP 6125XLG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 219 highlights
default local-preference Use default local-preference to configure a default local preference. Use undo default local-preference to restore the default. Syntax default local-preference value undo default local-preference Default The default local preference is 100. Views BGP IPv4 unicast instance view, BGP-VPN IPv4 unicast instance view, BGP IPv6 unicast instance view, BGP-VPN IPv6 unicast instance view Predefined user roles network-admin Parameters value: Specifies a default local preference in the range of 0 to 4294967295. The larger the value, the higher the preference. Usage guidelines You can also use the apply local-preference command in a routing policy to configure the local preference for BGP routes. If no routing policy is configured, all BGP routes use the local preference set by the default local-preference command. If a routing policy is configured, BGP routes matching the routing policy use the local preference set by the apply local-preference command, and other BGP routes use the local preference set by the default local-preference command. Examples # In BGP IPv4 unicast instance view, set the default local preference to 180. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] default local-preference 180 # In BGP-VPN IPv6 unicast instance view, set the default local preference to 180. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv6-family unicast [Sysname-bgp-ipv6-vpn1] default local-preference 180 Related commands • apply local-preference • route-policy 208