2
3
I have a router with OpenWRT that I want to resolve IP addressing with DHCP without setting a default gateway.
I have added a DHCP-Option
parameter with value 3,0.0.0.0
that is supposed to set the default gateway by DHCP. Instead, the router IP is defined as default gateway for DHCP connections.
How can I set a null default gateway (0.0.0.0) for connections configuration by DHCP?
As said in a comment: I want this router to service a VirtualBox network that doesn't set a default gateway via DHCP.
2
0.0.0.0 != NULL. See http://en.wikipedia.org/wiki/0.0.0.0 :)
– Ƭᴇcʜιᴇ007 – 2013-05-15T22:10:52.417Default gateway is fundamental to the workings of the IP stack, and many internal functions will not work correctly without it. the system WILL infer one, whether correctly or incorrectly for your desired result. – Frank Thomas – 2013-05-15T22:55:16.583
1Frank, I want the system to take the default gateway from other router connected to the Internet. They already have a default gateway but the wrong one is taken. I want this one to do as VirtualBox network that doesn't set a default gateway via DHCP. – francadaval – 2013-05-16T07:36:40.687
Default gateway is set by the DHCP. If the client is on the same subnet than the wanted gateway, then you can use its DHCP server, or set your DHCP to send this gateway. However, it is probably not the case. That's why you've to use your router as a DHCP server and a gateway, with routing rules to route packet from the client's subnet to the wanted gateway's subnet. – piernov – 2014-03-06T22:07:42.280