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

Re: boot: network configured before PCMCIA loaded

On Sat, 18 Dec 2004 18:10:12 +0100, Shot (Piotr Szotkowski) wrote:
> Since yesterday I'm discovering the joys of WiFi throught a PCMCIA card
> in my laptop and a freshly set up home WiFi network. As this is going
> to be my main setup for at least a couple of days now, I've changed my
> /etc/network/interfaces to something like this:
>> auto lo
>> iface lo inet loopback
>> # auto eth0=lan
>> auto eth1=dhcp
>> iface lan inet static
>>         address
>>         netmask
>>         gateway
>>         dns-nameservers
>> iface dhcp inet dhcp
>>         dns-nameservers

You probably don't need those dns-nameservers lines.  A local (cacheing)
nameserver such as dnsmasq or pdnsd (or even bind, if you set it up
properly) has an initscript that adds address to the list of
addresses of nameservers.

Generally speaking you only need to add a dns-nameservers line to an
/etc/network/interfaces stanza if a remote nameserver at a fixed
address becomes available via an interface that is configured according to
that stanza.

> (previously, I've been mainly using
> a static IP bound to my Ethernet NIC).
> Unfortunately, the network is brought up before the PCMCIA cards
> are loaded, so the eth1 device is not there yet[1] and I'm left
> with bringing the network up manually each time. Couldn't the network
> setup be moved a bit later in the boot process, so it happens after
> the PCMCIA card loading?

Remove the "auto eth1" line.
Install hotplug.
Add this stanza to /etc/network/interfaces:

    mapping hotplug
        script grep
        echo eth1

Then eth1 will be brought up by hotplug rather than by the networking

> [1] aside: where can I find the log of the boot messages? it used to be
> in /var/log/boot, but it's missing since I've reinstalled the system...

/var/log/boot is generated by bootlogd which is disabled by default
because it doesn't work on every system.  In /etc/default/bootlogd set
BOOTLOGD_ENABLE=Yes and make sure you have the following symlinks:

jdthood@thanatos:/etc$ ls -l rc*.d/*bootlog*
lrwxr-xr-x  1 root root 23 2004-09-25 09:33 rc2.d/S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxr-xr-x  1 root root 23 2004-09-25 09:33 rc3.d/S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxr-xr-x  1 root root 23 2004-09-25 09:33 rc4.d/S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxr-xr-x  1 root root 23 2004-09-25 09:33 rc5.d/S99stop-bootlogd -> ../init.d/stop-bootlogd
lrwxr-xr-x  1 root root 18 2004-09-25 09:33 rcS.d/S05bootlogd -> ../init.d/bootlogd

Thomas Hood

Reply to: