Our dhcpd.conf defines two subnets such like,
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1; # internet gateway
}
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.10; # internal network gateway
}
But a dhcp client receives both gateway address as default gateways such like,
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.78 35
0.0.0.0 0.0.0.0 192.168.1.10 192.168.0.78 35 <-This is a bad one.
Why does this happen? And how can we do anything to fix that?