Hey, can you help me understand this:
I setup a route-map to set local-preference to 200 if route is coming from 10.0.0.0/24 (ISP1), so I would make routes from ISP1 the preferred ones.
However, I see that my 'show ip bgp' lists only local-preference=100.
Why no routes were set to '200'?
Here is the the output from RouterB, the one I set the access-list 1 and route-map. Detailed diagram with run config is attached. Thanks in advance!!
RouterB#show ip bgp
BGP table version is 48, local router ID is 184.108.40.206
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i220.127.116.11/32 192.168.1.1 0 100 0 1803 i
*> 18.104.22.168/32 0.0.0.0 0 32768 i
*>i22.214.171.124/32 126.96.36.199 0 100 0 i
*> 10.0.0.0/24 0.0.0.0 0 32768 i
* i188.8.131.52 184.108.40.206 0 100 0 i
*> 0.0.0.0 0 32768 i
*>i192.168.1.0 220.127.116.11 0 100 0 i
RouterB#show ip access-lists
Standard IP access list 1
10 permit 10.0.0.0, wildcard bits 0.0.0.255
As you noted, match ip route-source isn't supported as inbound policy under BGP.
This command is used for redistributing from one routing protocol to another:
If you want to increase the local-preference on routes coming from the 10.0.0.1 BGP peer, you simply create a route-map with local-pref 200 - apply this route-map under BGP inbound. For instance:
route-map LOCAL-PREF permit 10
set local-preference 200
router bgp 2000
no neighbor 18.104.22.168 remote-as 1803
neighbor 10.0.0.1 remote-as 1803 route-map LOCAL-PREF in
Then on the CLI, clear ip bgp * in