Re: [gentoo-user] Re: problems with ifplugd

2006-04-04 Thread Neil Bothwick
On Mon, 03 Apr 2006 23:06:25 +0200, Sven Köhler wrote:

  Yes, read the example config file I mentioned.
 
 Which version baselayout do you have installed?
 
 My version is 1.11.14-r6, and that does not include that support yet -
 IMHO. Also my /etc/conf.d/net.example does not contain any hint about
 ifplugd :-(

I'm using 1.12.0_pre16-r3, but this has been around for a while in the
testing baselayout, probably since the early 1.12.0 releases; definitely
since last year, going by the date my ifplugd config file was last
changed.


-- 
Neil Bothwick

Fasten your seatbelt ... I wanna try something.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Neil Bothwick
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


Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Sergio Polini
Neil Bothwick:
 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.

Well... what is wrong?
I think that putting the interface in the up state on boot is wrong, 
but perhaps removing net.eth0 from the default runlevel is not, even 
if there is a cable plugged in.
I mean that net.eth0 is executed by /etc/iflugd/ifplugd.action.
At least, this is how my laptop is working ;-)
Is there anything wrong with this setting?

Sergio

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Neil Bothwick
On Mon, 3 Apr 2006 20:25:40 +0200, Sergio Polini wrote:

   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.
 
 Well... what is wrong?
 I think that putting the interface in the up state on boot is wrong, 

It is not wrong.

 but perhaps removing net.eth0 from the default runlevel is not, even 

That is wrong too.

 if there is a cable plugged in.
 I mean that net.eth0 is executed by /etc/iflugd/ifplugd.action.
 At least, this is how my laptop is working ;-)
 Is there anything wrong with this setting?

Yes, it's all the wrong way round. read the comments
in /etc/conf.d/net.example. Forget about running ifplugd, just put
net.eth0 in your default runlevel. The Gentoo rc scripts will take car
of all the ifplugd stuff.


-- 
Neil Bothwick

When you choke a smurf, what color does it turn?


signature.asc
Description: PGP signature


[gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Sven Köhler
 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

net.eth0 detects ifplugd? Are you sure?
Do i need to set anything special in /etc/conf.d/net?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Neil Bothwick
On Mon, 03 Apr 2006 21:56:40 +0200, Sven Köhler wrote:

 Saying AUTO=yes in /etc/conf.d/ifplugd is one way to keep the interface
 up - and at least for now, it's my preferred way.
 I don't see, why should write dirty hacks like the postdown()-thing in
 /etc/conf.d/net to keep the interface up.

There are no hacks and no need to use postdown(). As is says
in /etc/conf.d/net.example

# emerge sys-apps/ifplugd
# and you're done :)

I used to have to mess around with setting up ifplugd etc, but there's
absolutely no need to do anything other than emerge it now. The rc
scripts take care of EVERYTHING else.


-- 
Neil Bothwick

The number one cause of computer problems is computer solutions.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Neil Bothwick
On Mon, 03 Apr 2006 21:57:54 +0200, Sven Köhler wrote:

 net.eth0 detects ifplugd? Are you sure?

Yes. As I said, I've been using it.

 Do i need to set anything special in /etc/conf.d/net?

Yes, read the example config file I mentioned.


-- 
Neil Bothwick

WORM: (n.) acronym for Write Once, Read Mangled. Used to describe a
  normally-functioning computer disk of the very latest design.


signature.asc
Description: PGP signature


[gentoo-user] Re: problems with ifplugd

2006-04-03 Thread Sven Köhler
 net.eth0 detects ifplugd? Are you sure?
 
 Yes. As I said, I've been using it.
 
 Do i need to set anything special in /etc/conf.d/net?
 
 Yes, read the example config file I mentioned.

Which version baselayout do you have installed?

My version is 1.11.14-r6, and that does not include that support yet -
IMHO. Also my /etc/conf.d/net.example does not contain any hint about
ifplugd :-(



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: problems with ifplugd

2006-04-02 Thread Sven Köhler
 Try adding the following to /etc/conf.d/net:
 
 postdown() {
 test ${IFACE} = eth0  /sbin/ifconfig eth0 0.0.0.0 up
 return 0
 }

Thank you. That was a big help, but somehow disappointing.

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 ...

Therefor, at the moment, i also do a ifconfig eth0 up in
/etc/conf.d/local.start.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: problems with ifplugd

2006-04-02 Thread Sven Köhler
 No, the interface needs to be up for mii stuff to work.

Well, the proper sollution is: set AUTO=yes in /etc/conf.d/ifplugd,
and ifplugd sets the interface to up automatically.



signature.asc
Description: OpenPGP digital signature