HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Routing Comma - Page 147
default med (BGP/BGP-VPN instance view
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
Parameters value: Default local preference, in the range of 0 to 4294967295. The larger the value is, the higher the preference is. Description Use default local-preference to configure the default local preference. Use undo default local-preference to restore the default value. By default, the default local preference is 100. Using this command can affect BGP route selection. Examples # In BGP view, set the default local preference to 180. system-view [Sysname] bgp 100 [Sysname-bgp] default local-preference 180 # In BGP-VPN instance view, set the default local preference to 180. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] default local-preference 180 default med (BGP/BGP-VPN instance view) Syntax default med med-value View undo default med BGP view, BGP-VPN instance view Default level 2: System level Parameters med-value: Default MED value, in the range of 0 to 4294967295. Description Use default med to specify a default MED value. Use undo default med to restore the default. By default, the default med-value is 0. Multi-exit discriminator (MED) is an external metric for routes. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The route with a lower MED is preferred. When a router running BGP obtains several routes with an identical destination but different next-hops from various external peers, it will select the best route depending on the MED value. In the case that all other conditions are the same, the system first selects the route with the smallest MED as the best external route. 136