Did the LocalPref lesson on vIOS routers in EVE-NG.
When doing the technique to change the default local preference on R3 (config t, router bgp 2, bgp default local-preference 600), the localpref value is not shown in the bgp-loc-rib:
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 192.168.13.1 0 0 1 i
* i 192.168.12.1 0 100 0 1 i
Yet it is shown if I do “sho ip bgp 1.1.1.0/24”:
192.168.13.1 from 192.168.13.1 (1.1.1.1)
Origin IGP, metric 0, localpref 600, valid, external, best
rx pathid: 0, tx pathid: 0x0
If I look at routes I am advertising to my neighbors R2 and R4, LocalPref doesn’t show up in that command either:
R3#sho ip bgp nei 4.4.4.4 advertised-routes
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 192.168.13.1 0 0 1 i
Yet, R4 gets the route with the correct local preference.
I may try this on IOSL or even IOS-XR with its different commands.
UPDATE:
Apparently, the logic is to not display the “default local preference” on the commands I used above (“sho ip bgp” and “sho ip bgp neighbor a.b.c.d advertised-routes”.
Rene, this would be an interesting point to add to the Local Preference lesson. When you change the default LocalPref on R3 from 100 to 600, and do “sho ip bgp” you will see that no LP is shown for the eBGP route learned from R1. That’s because we changed the default LP from 100 to 600.