Laptop without a network connection
Karl Hegbloom
hegbloom at pdx.edu
Wed Jun 15 18:41:37 UTC 2005
On Tue, 2005-06-14 at 11:34 -0400, Mike Procario wrote:
> I sometimes run my laptop without a network connection. It takes
> forever for the "* Configuring network interfaces" step of the boot up
> to time out. Is there a way to either pass a boot parameter to skip
> that step or shorten the timeout?
I comment off the 'auto eth0' in /etc/network/interfaces, and then:
aptitude install ifplugd resolvconf dnsmasq
My /etc/default/ifplugd looks like this:
INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
/etc/hosts has:
#
# Note: Use 'localise-queries' in dnsmasq.conf
#
127.0.0.1 journeyhawk.karlheg.net journeyhawk
127.0.0.1 localhost.karlheg.net localhost
192.168.XXX.XXX journeyhawk.karlheg.net journeyhawk
... and I've added the 'localise-queries' (watch the spelling; s not z)
option to 'dnsmasq.conf', so that when a DNS query comes in over
127.0.0.1, it get answered with that entry. When it comes in over any
other interface, it should get the other entry.
My WRT54G (running OpenWRT) has dnsmasq on it also, and is my LAN DNS
server. I've a static intra-net IP for my laptop's MAC. For
out-of-the-house, I can use dyndns if I need it, otherwise, anonymous
works just fine.
I have:
send host-name "journeyhawk";
... in /etc/dhcp3/dhclient.conf, so hopefully I'll be given a name on a
LAN that supports dynamic DNS with DHCP, if I jack into a LAN or WLAN
that has that feature. (dnsmasq does it, afaik).
--
Karl Hegbloom <hegbloom at pdx.edu>
More information about the ubuntu-users
mailing list