HP 6125XLG R2306-HP 6125XLG Blade Switch Layer 3 - IP Routing Command Referenc - Page 214
compare-different-as-med
View all HP 6125XLG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 214 highlights
Examples # Enable BGP, set the local AS number to 100, and enter BGP view. system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med Use compare-different-as-med to enable MED comparison for routes from peers in different ASs. Use undo compare-different-as-med to disable the comparison. Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled. Views BGP IPv4 unicast instance view, BGP-VPN IPv4 unicast instance view, BGP IPv6 unicast instance view Predefined user roles network-admin Usage guidelines If multiple routes to a destination exist, the route with the smallest MED is selected. Do not use this command unless relevant ASs adopt the same IGP protocol and routing selection method. Examples # In BGP IPv4 unicast instance view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] compare-different-as-med # In BGP-VPN IPv4 unicast instance view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv4-family unicast [Sysname-bgp-ipv4-vpn1] compare-different-as-med # In BGP IPv6 unicast instance view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family unicast [Sysname-bgp-ipv6] compare-different-as-med 203