Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jun 2003 06:26:06 -0700 (PDT)
From:      John DeStefano <deesto@yahoo.com>
To:        Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: network settings auto-config
Message-ID:  <20030612132606.39698.qmail@web40601.mail.yahoo.com>
In-Reply-To: <44znkogm0o.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Lowell; but a solution be to change something in /etc/rc.conf instead?
Pete pointed me toward /etc/rc.conf, which contains the following line:
ifconfig_dc0="DHCP"
Seeing this made me remember something: someone once told me that commenting this line out would keep DHCP from running.  While that is somewhat true, it also killed my whole NIC interface!  So the solution must be not to comment it out, but to change the variable value "DHCP" to something else.  I've been searching for proper values but haven't seen them anywhere yet, but I did see the following in "man rc.conf":
 pccard_ifconfig
                 (str) List of arguments to be passed to ifconfig(8) at boot
                 time or on insertion of the card (e.g. ``inet 192.168.1.1
                 netmask 255.255.255.0'' for a fixed address or ``DHCP'' for a
                 DHCP client).
...
             It is possible to bring up an interface with DHCP by setting
                 the ifconfig_<interface> variable to ``DHCP''.  For instance,
                 to initialize the ed0 device via DHCP, it is possible to use
                 something like:
                 ifconfig_ed0="DHCP"

So the line in my config file matches the man page, but the man page doesn't say what other variables are available that won't break the interface.
Any ideas?
Thanks,
~John

Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> wrote:
John DeStefano writes:

> Is there another file/setting that's being consulted somewhere at boot time? Gary mentioned it may be due to a smbd, netbios-ssn, or DCHP setting, but he's unfamiliar with those services.

Add some overrides to the dhclient.conf(5) file to put in your
preferred DNS server. I use the "prepend" modifier, but you 
might want "supersede" instead.


---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030612132606.39698.qmail>