NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem setting up DHCP with Virtual Box



On Saturday, 6 August 2011, Daniel Carrera <dcarrera%gmail.com@localhost> wrote:
> Hi Dieter,
>
> On 08/06/2011 01:14 PM, dieter roelants wrote:
>>>
>>> 2) I have configured DHCP:
>>>
>>> # grep dhclient /etc/rc.conf
>>> dhclient=YES
>>
>> (The slightly better way to check this is `/etc/rc.d/dhclient rcvar`.)
>
> Hmm...
>
>
> # /etc/rc.d/dhclient rcvar
> $dhclient=NO
>
> # grep dhclient /etc/rc.conf
> dhclient=YES


Not enough - it could be in a if-else bracket in rc.conf. The trace shows
the variable to be false.

On a side note - spend 5 minutes reading the dhcpcd manual - it is much more
versatile.

Chavdar Ivanov

>
>
>> The easiest way to see what's going on is probably run it as `sh
>> -x /etc/rc.d/dhclient start`
>
> Output attached. Can you make any sense out of the output? I don't see
anything wrong, but I'm a noob.
>
> Daniel.
> --
> I'm not overweight, I'm undertall.
>

-- 
----


Home | Main Index | Thread Index | Old Index