EasyManuals Logo
Home>Juniper>Software>BGP - CONFIGURATION GUIDE V 11.1.X

Juniper BGP - CONFIGURATION GUIDE V 11.1.X User Manual

Juniper BGP - CONFIGURATION GUIDE V 11.1.X
748 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #158 background imageLoading...
Page #158 background image
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:
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
The following commands configure router Paris:
host2(config)#router bgp 73
122 â–  Selecting the Best Path
JUNOSe 11.1.x BGP and MPLS Configuration Guide

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Juniper BGP - CONFIGURATION GUIDE V 11.1.X and is the answer not in the manual?

Juniper BGP - CONFIGURATION GUIDE V 11.1.X Specifications

General IconGeneral
BrandJuniper
ModelBGP - CONFIGURATION GUIDE V 11.1.X
CategorySoftware
LanguageEnglish

Related product manuals