Re: Missing default gateway
Kobi Cohen-Arazi
Thu May 02 14:09:20 2013
On Thu, May 2, 2013 at 1:32 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> 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 :)
>
Oh. Will give it a shot. Thanks!
Kobi
Archive administrator: postmaster@marples.name