[Contents] [Prev] [Next] [Index] [Report an Error]

Additional MED Options for Path Selection

By default, only the MEDs of routes that have the same peer ASs are compared. However, you can configure the routing table path selection options listed in Table 99 to compare MEDs in different ways. The MED options are not mutually exclusive and can be configured in combination or independently. For the MED options to take effect, you must configure them uniformly all through your network. The MED option or options you configure determine the route selected. Thus we recommend that you carefully evaluate your network for preferred routes before configuring the MED options. For information about configuring the MED options, see the JUNOS Routing Protocols Configuration Guide.

Table 99: MED Options for Routing Table Path Selection

Option (Name)

Function

Use

Always comparing MEDs (always-compare-med)

Ensures that the MEDs for paths from peers in different ASs are always compared in the route selection process

Useful when all enterprises participating in a network agree on a uniform policy for setting MEDs. For example, in a network shared by two ISPs, both must agree that a certain path is the better path to configure the MED values correctly.

Adding IGP cost to MED (med-plus-igp)

Before comparing MED values for path selection, adds to the MED the cost of the IGP route to the BGP next-hop destination.

This option replaces the MED value for the router, but does not affect the IGP metric comparison. As a result, when multiple routes have the same value after the MED-plus-IPG comparison, and route selection continues, the IGP route metric is also compared, even though it was added to the MED value and compared earlier in the selection process.

Useful when the downstream AS requires the complete cost of a certain route that is received across multiple ASs.

Applying Cisco IOS nondeterministic behavior (cisco-non-deterministic)

Specifies the nondeterministic behavior of the Cisco IOS software:

  • The active path is always first. All nonactive but eligible paths follow the active path and are maintained in the order in which they were received. Ineligible paths remain at the end of the list.
  • When a new path is added to the routing table, path comparisons are made among all routes, including those paths that must never be selected because they lose the MED tie-breaking rule.

We recommend that you do not configure this option, because the nondeterministic behavior sometimes prevents the system from properly comparing the MEDs between paths.


[Contents] [Prev] [Next] [Index] [Report an Error]