
162
C
HAPTER
5: IP R
OUTING
P
ROTOCOL
O
PERATION
Configuring Local Preferences
Different local preferences can be configured to affect BGP routing. When a router
running BGP gets routes with the same destination address but different next hops
through different internal peers, it will select the route with the highest local
preference.
Perform the following configurations in BGP view.
.
The local preference is transmitted only when the IBGP peers exchange the update
packets and it will not be transmitted beyond the local AS.
By default, the local preference is 100.
Configuring MED for AS
The Multi-Exit Discriminators (MED) attribute is the external metric for a route. It is
exchanged between ASs. However, it will not be transmitted beyond an AS once it
is imported into the AS.
AS uses the local preference to select the route to the outside and MED to
determine the optimum route for entering the AS. When a router running BGP
receives routes with the same destination address but different next hops through
different external peers, it will select the route of the smallest MED as the
optimum route, provided that all the other conditions are the same.
Perform the following configurations in BGP view.
.
The router configured above only compares the route MED metrics of different
EBGP peers in the same AS. Using the
compare-different-as-med
command,
you can compare the route MED metrics of the peers in different ASs.
By default, MED metric is 0.
Comparing the MED Routing Metrics from Peers in Different ASs
Comparison of MED routing metrics is performed to select the best route. The
route with smaller MED value will be selected.
Perform the following configurations in BGP view.
.
Table 119
Configuring the Local Preferences
Operation
Command
Configure the local preference
default local-preference
value
Restore the default local preference
undo default local-preference
Table 120
Configuring a MED Value for the System
Operation
Command
Configure a MED value for the system
default med
med-value
Restore the default MED value of the system
undo default med
Table 121
Comparing the MED Routing Metrics from Peers in Different ASs
Operation
Command
Compare the MED routing metrics from peers
in different ASs
compare-different-as-med
Содержание Switch 7700
Страница 10: ...2 ABOUT THIS GUIDE ...
Страница 52: ...44 CHAPTER 2 PORT CONFIGURATION ...
Страница 194: ...186 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 195: ...Route Capacity 187 ...
Страница 196: ...188 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 197: ...Route Capacity 189 ...
Страница 198: ...190 CHAPTER 5 IP ROUTING PROTOCOL OPERATION ...
Страница 237: ...GMRP 229 SW7700 Ethernet1 0 1 gmrp ...
Страница 238: ...230 CHAPTER 6 MULTICAST PROTOCOL ...
Страница 270: ...262 CHAPTER 7 QOS OPERATION ...
Страница 320: ...312 CHAPTER 9 AAA AND RADIUS OPERATION ...
Страница 330: ...322 CHAPTER 10 RELIABILITY ...
Страница 390: ...382 CHAPTER 11 SYSTEM MANAGEMENT ...