On Sun, 02 Apr 2006 20:47:18 +0200, Sven Köhler wrote: > I would rather like, if ifplugd would automatically do the "ifconfig up" > so that no configuration tweaks are needed. > > Of course, i also got to put the interface in the "up" state on boot, > because i don't want to put net.eth0 in the default-runlevel for the > case where there is no cable plugged in ...
That's what you're doing wrong. The net.eth* scripts will detect ifplugd
and use it. Put net.eth0 in the default runlevel. there is no
configuration to do, it "just works" [tm]. I have my laptop set up like
this, even though it usually starts up with no network cable connected
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:93:3C:76:26
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:41 Base address:0xf000
eth1 Link encap:Ethernet HWaddr 00:0D:93:EF:F2:C0
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:188558 errors:0 dropped:0 overruns:0 frame:0
TX packets:124422 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:106398782 (101.4 Mb) TX bytes:40234605 (38.3 Mb)
Interrupt:52 Base address:0x4000
eth0 is the wired interface. The only configuration I have down is
edit the postup function on conf.d/net to bring down/up eth1 (the
wireless interface) when eth0 comes up/down.
--
Neil Bothwick
Okay, I pulled the pin. Now what? Hey, where are you going?
signature.asc
Description: PGP signature

