dhcpcd-discuss

Re: Missing default gateway

Roy Marples

Thu May 02 08:32:08 2013

Hi Kobi

On 01/05/2013 0:41, Kobi Cohen-Arazi wrote:
Is dhcpcd the one which is adding route of default gateway?

I have an issue where running the following on the target:
$ dhcpcd -k <interface>
and then$ dhcpcd -ABKLG -h <hostname> <interface>

It does not add default gateway to the routing table.

 server is not configured with classless.

It is just a simple dhcpd.conf with 
option routers <gw>;

For some reason, if I enable the interface device on the target and
dhcpcd is started this way, I can see default gw (/proc/net/route and
ip route show).

It just does not work as expected when trying to -k and start it again.

Any idea what can be the problem for that?

From the dhcpcd(8) man page

 -G, --nogateway
    Don't set any default routes.

And you're using that option above. I suggest you don't :)

Thanks

Roy

Follow-Ups:
Re: Missing default gatewayKobi Cohen-Arazi
References:
Missing default gatewayKobi Cohen-Arazi
Archive administrator: postmaster@marples.name