As I bring up other nodes, their second nic routing shows up as a gateway.
Example:
- Code: Select all
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
172.16.1.1 192.168.1.200 255.255.255.0 UG 1 0 0 eth0
192.168.1.0 192.168.1.132 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
What program is adding the extra routes and how can I stop it?
The answer: routed
systemctl stop routed.service
systemctl disable routed.service
Reboot result:
- Code: Select all
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 10 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0