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