3.7.d [i] Attribute manipulation
download addressed topology below:
r2 wins the path contest for the 4 network by virtue of being the older next hop in the table since all else is equal. we can fix that by clearing r2’s table.
now r3’s path is older:
clear r3 and give it back to r2.
we want to weight r3 so that it controls the path to the 4 network. higher is better but weight is only locally significant and cisco proprietary.
that’s the easy yet clumsy method because we have also weighted all it’s other paths.
get rid of the weight statement under router bgp 100.
now we’ll use a route map and acl to single out the 4 network and set the weight:
R1#sh access-list 1
Standard IP access list 1
10 permit 126.96.36.199 (2 matches)
route-map WEIGHT permit 10
match ip address 1
set weight 500
then add it to bgp:
R1#sh run | b bgp
router bgp 100
network 188.8.131.52 mask 255.255.255.255
neighbor 192.168.12.2 remote-as 200
neighbor 192.168.13.3 remote-as 300
neighbor 192.168.13.3 route-map WEIGHT in