FRR not adding kernel default route
Hi, I have a strange issue where FRR does not pull the kernel default route into its routing table, it does accept any other static route that is not 0.0.0.0/0 into its table: FRR routing table: FRR03# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route C>* 1.10.1.3/32 is directly connected, lo, 00:58:38 C>* 192.168.17.0/24 is directly connected, ens37, 00:58:38 C>* 192.168.44.0/24 is directly connected, ens33, 00:58:38 Linux routing table: [root@FRR03 ~]# ip route show default via 192.168.44.2 dev ens33 proto static metric 100 192.168.17.0/24 dev ens37 proto kernel scope link src 192.168.17.137 metric 100 192.168.44.0/24 dev ens33 proto kernel scope link src 192.168.44.145 FRR show running output: FRR03# sh run Building configuration... Current configuration: ! frr version 4.1-dev-MyOwnFRRVersion frr defaults traditional hostname FRR03 log syslog ! interface lo ip address 1.10.1.3/32 ! line vty ! end *** Adding static route in Linux *** [root@FRR03 ~]# ip route add 172.16.25.0/24 via 192.168.44.2 [root@FRR03 ~]# vtysh FRR03# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route C>* 1.10.1.3/32 is directly connected, lo, 01:01:15 K>* 172.16.25.0/24 [0/0] via 192.168.44.2, ens33, 00:00:05 C>* 192.168.17.0/24 is directly connected, ens37, 01:01:15 C>* 192.168.44.0/24 is directly connected, ens33, 01:01:15 Due to this issue FRR protocols cannot work correctly eg: BGP cannot peer with a neighbor that is not on a directly connected network or added statically. Does anyone have an idea of what this could be? Thanks,
This was fixed in this commit: commit d4d71f1133e02d1b9595b5f9a3599859ba780611 Author: Donald Sharp <sharpd@cumulusnetworks.com> Date: Fri May 25 14:36:12 2018 -0400 tools, zebra: Use different protocol value for our statics The re-use of RTPROT_STATIC has caused too many collisions where other legitimate route sources are causing us to believe we are the originator of the route. Modify the code so that if another protocol inserts RTPROT_STATIC we will assume it's a Kernel Route. Fixes: #2293 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> This is on the master branch. If you need it on another branch let us know and we'll get it in it for you. donald On Fri, Jun 8, 2018 at 3:01 PM, Felipe Arturo Polanco <felipeapolanco@gmail.com> wrote:
Hi,
I have a strange issue where FRR does not pull the kernel default route into its routing table, it does accept any other static route that is not 0.0.0.0/0 into its table:
FRR routing table:
FRR03# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
C>* 1.10.1.3/32 is directly connected, lo, 00:58:38 C>* 192.168.17.0/24 is directly connected, ens37, 00:58:38 C>* 192.168.44.0/24 is directly connected, ens33, 00:58:38
Linux routing table:
[root@FRR03 ~]# ip route show default via 192.168.44.2 dev ens33 proto static metric 100 192.168.17.0/24 dev ens37 proto kernel scope link src 192.168.17.137 metric 100 192.168.44.0/24 dev ens33 proto kernel scope link src 192.168.44.145
FRR show running output:
FRR03# sh run Building configuration...
Current configuration: ! frr version 4.1-dev-MyOwnFRRVersion frr defaults traditional hostname FRR03 log syslog ! interface lo ip address 1.10.1.3/32 ! line vty ! end
*** Adding static route in Linux ***
[root@FRR03 ~]# ip route add 172.16.25.0/24 via 192.168.44.2 [root@FRR03 ~]# vtysh FRR03# show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, > - selected route, * - FIB route
C>* 1.10.1.3/32 is directly connected, lo, 01:01:15 K>* 172.16.25.0/24 [0/0] via 192.168.44.2, ens33, 00:00:05 C>* 192.168.17.0/24 is directly connected, ens37, 01:01:15 C>* 192.168.44.0/24 is directly connected, ens33, 01:01:15
Due to this issue FRR protocols cannot work correctly eg: BGP cannot peer with a neighbor that is not on a directly connected network or added statically.
Does anyone have an idea of what this could be?
Thanks,
_______________________________________________ frog mailing list frog@lists.frrouting.org https://lists.frrouting.org/listinfo/frog
participants (2)
-
Donald Sharp -
Felipe Arturo Polanco