Route selection with BGP not working as expected
I have an issue with BGP and routing on a 60E.
Issue is on a 60E (7.0 upgrade made no change). Two connected paths:
- to a 60F via IKE/IPSEC 10.10.1.1
- to a Linux appliance running FRR 10.29.127.5
Both advertise 10.31.1.0/24, path should be via 10.10.1.1 because of AS-PATH but is not
home-gw # get router info bgp network 10.31.1.0/24
VRF 0 BGP routing table entry for 10.31.1.0/24
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
10.10.1.1
Original VRF 0
65497 4200090001 4200090001 4200090001
10.29.127.5 from 10.29.127.5 (10.29.127.5)
Origin incomplete metric 20, localpref 200, valid, external, best
Last update: Tue Jul 19 22:26:19 2022
Original VRF 0
65495 4200090001
10.10.1.1 from 10.10.1.1 (10.29.1.1)
Origin incomplete metric 0, localpref 100, valid, external
Last update: Tue Jul 19 22:37:35 2022
Route selected is from the **longest** AS-PATH. I've tried pushing and setting local pref/med/...,
I don't know where the shown metric and localpref on it are even coming from.
home-gw # get router info bgp neighbors 10.29.127.5 received-routes
...
*> 10.29.127.254/32 10.29.127.5 0 0 0 65497 ? <-/->
*> 10.31.1.0/24 10.29.127.5 0 0 65497 4200090001 4200090001 4200090001 ? <-/->
*> 10.31.1.1/32 10.29.127.5 0 0 65497 65496 65495 4200090001 ? <-/->
...
home-gw # get router info bgp neighbors 10.10.1.1 received-routes
*> 10.29.127.252/30 10.10.1.1 0 0 65495 ? <-/->
*> 10.31.1.0/24 10.10.1.1 0 0 65495 4200090001 ? <-/->
*> 10.31.1.1/32 10.10.1.1 0 0 65495 4200090001 ? <-/->
nothing will make the stupid thing route to 10.10.1.1 short of taking down the 10.29.127.5 link.
home-gw # get router info routing-table all
. . .
B 10.29.127.254/32 [20/20] via 10.29.127.5 (recursive is directly connected, VLAN-4001), 09:19:24, [1/0]
B 10.31.1.0/24 [20/20] via 10.29.127.5 (recursive is directly connected, VLAN-4001), 09:19:24, [1/0]
B 10.31.1.1/32 [20/0] via 10.10.1.1 (recursive via HM-VPN-SPOKE tunnel 66.37.4.14 vrf 0), 09:08:08, [1/0]
. . .
Any ideas?
