Sample Header Ad - 728x90

Duplicate route keeps reappearing and can't remove it

0 votes
1 answer
73 views
I'm running almalinux 9, with 3 interfaces. The first interface (ens192) has a duplicate entry (see last two lines) in the routing table: [root@server ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 172.31.254.1 0.0.0.0 UG 100 0 0 ens192 10.88.0.0 0.0.0.0 255.255.0.0 U 0 0 0 podman0 172.31.251.0 0.0.0.0 255.255.255.0 U 103 0 0 ens256 172.31.252.0 0.0.0.0 255.255.255.0 U 102 0 0 ens161 172.31.254.0 0.0.0.0 255.255.255.0 U 100 0 0 ens192 172.31.254.0 0.0.0.0 255.255.255.0 U 100 0 0 ens192 I can get rid of the last route with 'ip route del' but on next boot it reappears. I suspect this is related...I have 2 IP's on the ens192 as nmcli shows here: IP4.ADDRESS: 172.31.254.32/24 IP4.ADDRESS: 172.31.254.31/24 IP4.GATEWAY: 172.31.254.1 IP4.ROUTE: dst = 172.31.254.0/24, nh = 0.0.0.0, mt = 100 IP4.ROUTE: dst = 172.31.254.0/24, nh = 0.0.0.0, mt = 100 IP4.ROUTE: dst = 0.0.0.0/0, nh = 172.31.254.1, mt = 100 IP4.DNS: 172.31.254.4 IP4.DNS: 172.31.234.4 and NetworkManager seems to think it needs route 1 & 2. But if I try to remove route 2 with nmcli connection modify "connname" -ipv4.routes 172.31.254.0/24 the route will not be removed (the command returns without error). What is going on? Is this CORRECT behavior? Do I actually need ROUTE and ROUTE ?
Asked by TSG (1983 rep)
Feb 28, 2025, 03:43 PM
Last activity: Feb 28, 2025, 10:50 PM