Configuring the MED attribute

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter BGP view.

bgp as-number

N/A

3. Enter IPv6 address family view.

ipv6-family

N/A

4. Configure a default MED value.

default med med-value

Optional.

Defaults to 0.

5. Enable the comparison of MED for routes from different EBGP peers.

compare-different-as-med

Optional.

Not enabled by default.

6. Enable the comparison of MED for routes from each AS.

bestroute compare-med

Optional.

Disabled by default.

7. Enable the comparison of MED for routes from confederation peers.

bestroute med-confederation

Optional.

Disabled by default.