No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Unicast Routing

S7700 and S9700 V200R010C00

This document describes IP Unicast Routing configurations supported by the switch, including the principle and configuration procedures of IP Routing Overview, Static Route, RIP, RIPng, OSPF, OSPFv3, IS-IS(IPv4), IS-IS(IPv6), BGP, Routing Policy ,and PBR, and provides configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the MED Attribute

Configuring the MED Attribute

Context

The multi-exit discriminator (MED) helps determine the optimal route for incoming traffic of an AS. It is similar to the metric used in IGP. When a BGP device obtains multiple routes to the same destination address but with different next hops from EBGP peers, the BGP device selects the route with the smallest MED value as the optimal route.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    bgp { as-number-plain | as-number-dot }

    The BGP view is displayed.

  3. Enter the corresponding address family view based on network type to configure BGP devices on networks.

    • Run:

      ipv4-family { unicast | multicast }

      The IPv4 address family view is displayed.

    • Run:

      ipv6-family [ unicast ]

      The IPv6 address family view is displayed.

  4. Perform one of the following operations as required:
    • Run:

      default med med

      The default MED value is set.

      By default, the MED is 0.

    • Run:

      bestroute med-none-as-maximum

      BGP defines the MED value as the maximum value if a route does not have the MED attribute.

      By default, BGP uses the default MED value when a route does not have the MED attribute.

    • Run:

      compare-different-as-med

      BGP is allowed to compare the MED values of routes received from EBGP peers in any AS.

      By default, BGP compares only the MEDs of the routes received from EBGP peers within the same AS.

    • Run:

      deterministic-med

      The deterministic-MED function is enabled.

      By default, the BGP deterministic-MED function is disabled.

    • Run:

      bestroute med-confederation

      The MED values of routes in a confederation are compared.

      By default, BGP compares only the MEDs of the routes from the same AS.

Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000141900

Views: 178931

Downloads: 192

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next