Configuring The Med Attribute; Figure 35: Configuring The Med - Juniper JUNOSE SOFTWARE FOR E SERIES 11.0.X - BGP AND MPLS CONFIGURATION GUIDE 2009-12-30 Configuration Manual

Software for e series routing platforms bgp and mpls configuration guide
Table of Contents

Advertisement

JUNOSe 11.0.x BGP and MPLS Configuration Guide

Configuring the MED Attribute

If two ASs connect to each other in more than one place, one link or path might be
a better choice to reach a particular prefix within or behind one of the ASs. The MED
value is a metric expressing a degree of preference for a particular path. Lower MED
values are preferred.
Whereas the Local Preference attribute is used only within an AS (to select an exit
point), the MED attribute is exchanged between ASs. A router in one AS sends the
MED to inform a router in another AS which path the second router should use to
reach particular destinations. If you are the administrator of the second AS, you must
therefore trust that the router in the first AS is providing information that is truly
beneficial to your AS.
You configure the MED on the sending router by using the set metric command in
an outbound route map. Unless configured otherwise, a receiving router compares
MED attributes only for paths from external neighbors that are members of the same
AS. If you want MED attributes from neighbors in different ASs to be compared, you
must issue the bgp always-compare-med command.
In Figure 35 on page 122, router London in AS 303 can reach 192.168.33.0/24 in AS
73 through router Paris or through router Nice to router Paris.

Figure 35: Configuring the MED

The following commands configure router London:
The following commands configure router Paris:
122
Selecting the Best Path
host1(config)#router bgp 303
host1(config-router)#neighbor 10.4.4.2 remote-as 73
host1(config-router)#neighbor 10.3.3.2 remote-as 73
host1(config-router)#neighbor 10.5.5.2 remote-as 4
host1(config-router)#network 122.28.8.0 mask 255.255.248.0
host2(config)#router bgp 73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose

Table of Contents