Hello

dhclient on 5.7 won't set the client default gateway if other static
routes are present (same problem exists on 5.6, at least).

dhcpd server is running 5.6 stable with aprox 400 workstations and
appliances/printers with mixed OSs and versions all working fine.

At least both -windows and linux- are able to get and set default gw and
static routes.


The dhcpd.conf

subnet 172.16.192.0 netmask 255.255.254.0 {

        # default gw
        option routers 172.16.192.119;

        # static route to new building
        option classless-static-routes 192.168.10.0/24 172.16.192.149;
        option classless-ms-static-routes 192.168.10.0/24 172.16.192.149;

        # Ips we assign
        range 172.16.192.153 172.16.192.249;


        host stratus { hardware ethernet 00:00:00:00:00:01; fixed-address
172.16.192.219; }

        ... other host declarations ...
}


With the config as it is above, the routers option will be ignored, while
the 192.168.10.0/24 route will be set correctly.

If I comment out both classless-* options and restart the server,
"routers" will be honored and a default gateway set.


This is dhclient config:

testrat:/root{3}# cat /etc/dhclient.conf
#request subnet-mask, broadcast-address, routers, domain-name,
domain-name-servers;

require routers;
testrat:/root{4}#

No luck with and empty dhclient.conf.


Any ideas?

Thanks

Juan

Reply via email to