Compare-Different-As-Med - HP 6125XLG Command Reference Manual

Blade switch layer 3 - ip routing
Table of Contents

Advertisement

Examples
# Enable BGP, set the local AS number to 100, and enter BGP view.
<Sysname> 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.
<Sysname> 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.
<Sysname> 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.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family unicast
[Sysname-bgp-ipv6] compare-different-as-med
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents