On Mon, Jan 11, 2016 at 01:29:19PM +0000, Sam Morris wrote:

> On Sun, 2016-01-10 at 22:33 +0100, Guus Sliepen wrote:
> > This is neither a bug in the installer or in ifupdown; a default
> > gateway should always be inside the local network. It is the kernel
> > that refuses to accept such a gateway route.
> 
> I'm not sure I follow. If the kernel rejects the gateway then how come
> it's possible to configure this manually? It's been a while since I
> filed the original bug but I'm pretty sure the problem was with the
> installer rejecting the configuration provided by 1and1's DHCP server.

What happens is that the moment the DHCP client tries to add the gateway
route, there is no route to the gateway itself. That causes it to reject
the gateway route.

If you manually add a route to the gateway, then sure you can also
manually add the gateway route.

Hm, I can make ifupdown force the addition of the gateway route, but
only for statically configured interfaces. For inet dhcp, it's the DHCP
client itself that adds the routes, ifupdown has no influence over it.
One could modify /sbin/dhclient-script to do that though...

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: Digital signature

Reply via email to