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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to