[Bug 139217] Re: dhcp fails for gateway on different subnet

Rodney Berriman rodney at optimail.com.au
Mon Mar 23 01:48:42 GMT 2009


reading the first post more carefully, I see that the netmask
conditional is also the problem in the original report:

  new_subnet_mask='255.255.255.128'

therefore the host route to the gateway is not added because the netmask
is not 255.255.255.0


While waiting for this bug report to be addressed, a suggested solution is to add a dhclient exit-hook:

create a file "gateway" in /etc/dhcp3/dhclient-exit-hooks.d, containing
this text:

for router in $new_routers; do
  route add -host $router dev $interface
  route add default dev $interface gw $router $metric_arg
done

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.



More information about the Ubuntu-server-bugs mailing list