shortest as-path is preferred. You can manipulate the
path by prepending as’s making the as-path longer and
therefore less preferred.
*>i11.0.0.0 10.1.12.1 0 100
0 100 i
* 10.1.14.1 0
0 100 100 100 100 100 i
weight
apply in – affects outbound routes
local- preff
apply in – affects outbound routes – higher is better -
this is used to prefer and exit point from the local AS.
as-path
apply out – affects inbound routes – shortest path is
preferred.
med
apply out – affects inbound routes – lower value is
preferred. This is used as a suggestion to an external
AS regarding the preferred route into the As that is
advertising the metric. Don’t forget that the MED can be
overwritten by weight or local pref. same AS
Why laugh at me coming in to go out.
lab10 task7
R1(config-router)#bgp always-compare-med <- this command
forces the router to compare all path, regardless of AS
!
R1(config-router)#bgp bestpath as-path ignore < –
hidden dangerous command. This command was needed also
because as-path and origin attributes are looked at
before the MED.
lab 10 task 8
R1(config-router)#bgp bestpath med missing-as-worst <– any path with no MED value will be treated as the worst path.