* [gentoo-user] ifplugd and netplug annoyance
@ 2006-08-16 12:50 Mike Williams
2006-08-16 13:05 ` Andrew Frink
2006-08-16 23:05 ` Ryan Tandy
0 siblings, 2 replies; 8+ messages in thread
From: Mike Williams @ 2006-08-16 12:50 UTC (permalink / raw
To: gentoo-user
Hey,
I installed ifplug a *long* time ago on this laptop, and it worked perfectly.
After upgrading to the new baselayout I saw it had built in support for ifplug
and netplug.
Great I thought, I'll let it handle it. So I reinstalled ifplug to put all the
config back to default, and update it.
Now it doesn't work very well.
Well, it works, dhcpcd is stopped when the cable is unplugged, and started
again when it's plugged back in. But the interface is never actually brought
down, and that's my problem, I *want* the interface brought *down*.
Why? IPv6. If the interface isn't brought up, stateless autoconfiguration
doesn't work.
For all my fiddling with ifplugd and netplug, I can't get either to work how
ifplugd used to.
I've tried using ifplugd as both a deamon with modules=( "!plug" ), and
letting baselayout handle it fully.
I've messed about with the API ifplugd uses.
Nothing.
Does anyone know how I can get it to work properly?
Ta
Oh, and it would be nice if it could pause the interface, rather than stop it,
but that's easily hacked in.
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 12:50 [gentoo-user] ifplugd and netplug annoyance Mike Williams
@ 2006-08-16 13:05 ` Andrew Frink
2006-08-16 17:34 ` Richard Fish
2006-08-16 23:05 ` Ryan Tandy
1 sibling, 1 reply; 8+ messages in thread
From: Andrew Frink @ 2006-08-16 13:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On 8/16/06, Mike Williams <mike@gaima.co.uk> wrote:
>
> Hey,
>
> I installed ifplug a *long* time ago on this laptop, and it worked
> perfectly.
> After upgrading to the new baselayout I saw it had built in support for
> ifplug
> and netplug.
> Great I thought, I'll let it handle it. So I reinstalled ifplug to put all
> the
> config back to default, and update it.
> Now it doesn't work very well.
> Well, it works, dhcpcd is stopped when the cable is unplugged, and started
> again when it's plugged back in. But the interface is never actually
> brought
> down, and that's my problem, I *want* the interface brought *down*.
>
> Why? IPv6. If the interface isn't brought up, stateless autoconfiguration
> doesn't work.
>
> For all my fiddling with ifplugd and netplug, I can't get either to work
> how
> ifplugd used to.
> I've tried using ifplugd as both a deamon with modules=( "!plug" ), and
> letting baselayout handle it fully.
> I've messed about with the API ifplugd uses.
> Nothing.
>
> Does anyone know how I can get it to work properly?
> Ta
>
> Oh, and it would be nice if it could pause the interface, rather than stop
> it,
> but that's easily hacked in.
>
> --
> Mike Williams
> --
> gentoo-user@gentoo.org mailing list
>
> Mike,
Sorry i have neevr used ifplug, but i did have very good luck with
NetworkManager from Gentopia, https://gentopia.gentooexperimental.org/ iknow
it brings the interfaces down like you wanted.
Cynyr
[-- Attachment #2: Type: text/html, Size: 1867 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 13:05 ` Andrew Frink
@ 2006-08-16 17:34 ` Richard Fish
0 siblings, 0 replies; 8+ messages in thread
From: Richard Fish @ 2006-08-16 17:34 UTC (permalink / raw
To: gentoo-user
On 8/16/06, Andrew Frink <andrew.frink@gmail.com> wrote:
> On 8/16/06, Mike Williams <mike@gaima.co.uk> wrote:
> > Well, it works, dhcpcd is stopped when the cable is unplugged, and started
> > again when it's plugged back in. But the interface is never actually
> brought
> > down, and that's my problem, I *want* the interface brought *down*.
In /etc/conf.d/net, make a postdown that does "ifconfig ${IFACE}
down". See /etc/conf.d/net.example.
> > Why? IPv6. If the interface isn't brought up, stateless autoconfiguration
> > doesn't work.
I suspect the reason is that for many adapters (like mine), ifplugd
cannot detect the link state if the interface is completely down, so
plugging in another cable would have no effect.
-Richard
(Apologies for having to respond to Andrew's email instead of
Mike's...looks like I am being bit by the 'missing emails' mail list
bug.)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 12:50 [gentoo-user] ifplugd and netplug annoyance Mike Williams
2006-08-16 13:05 ` Andrew Frink
@ 2006-08-16 23:05 ` Ryan Tandy
2006-08-16 23:36 ` Neil Bothwick
1 sibling, 1 reply; 8+ messages in thread
From: Ryan Tandy @ 2006-08-16 23:05 UTC (permalink / raw
To: gentoo-user
Mike Williams wrote:
> But the interface is never actually brought
> down, and that's my problem, I *want* the interface brought *down*.
in /etc/conf.d/ifplugd:
AUTO="yes"
man ifplugd for more details.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 23:05 ` Ryan Tandy
@ 2006-08-16 23:36 ` Neil Bothwick
2006-08-17 0:04 ` Ryan Tandy
2006-08-17 11:27 ` Mike Williams
0 siblings, 2 replies; 8+ messages in thread
From: Neil Bothwick @ 2006-08-16 23:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
On Wed, 16 Aug 2006 16:05:33 -0700, Ryan Tandy wrote:
> > But the interface is never actually brought
> > down, and that's my problem, I *want* the interface brought *down*.
>
> in /etc/conf.d/ifplugd:
> AUTO="yes"
The latest baselayout ebuild tells you to remove this file. baselayout
runs ifplugd now, it shouldn't be run separately. As Richard said,
use /etc/conf.d/net for this.
--
Neil Bothwick
Kiss your keyboard goodbye!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 23:36 ` Neil Bothwick
@ 2006-08-17 0:04 ` Ryan Tandy
2006-08-17 7:30 ` Neil Bothwick
2006-08-17 11:27 ` Mike Williams
1 sibling, 1 reply; 8+ messages in thread
From: Ryan Tandy @ 2006-08-17 0:04 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Wed, 16 Aug 2006 16:05:33 -0700, Ryan Tandy wrote:
>
>>> But the interface is never actually brought
>>> down, and that's my problem, I *want* the interface brought *down*.
>> in /etc/conf.d/ifplugd:
>> AUTO="yes"
>
> The latest baselayout ebuild tells you to remove this file. baselayout
> runs ifplugd now, it shouldn't be run separately. As Richard said,
> use /etc/conf.d/net for this.
>
>
Hmm. Just re-read /etc/conf.d/net.example and there's a bunch of stuff
here I never noticed - and I've had baselayout-1.12* ever since it
entered ~x86, too. I guess it's time to read the Changelog(s) a bit
more closely. Although I knew that ifplugd shouldn't be run on its own
any more, I had assumed (famous last words, right? ;)) that it still
used /etc/conf.d/ifplugd.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-17 0:04 ` Ryan Tandy
@ 2006-08-17 7:30 ` Neil Bothwick
0 siblings, 0 replies; 8+ messages in thread
From: Neil Bothwick @ 2006-08-17 7:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
On Wed, 16 Aug 2006 17:04:42 -0700, Ryan Tandy wrote:
> Hmm. Just re-read /etc/conf.d/net.example and there's a bunch of stuff
> here I never noticed - and I've had baselayout-1.12* ever since it
> entered ~x86, too. I guess it's time to read the Changelog(s) a bit
> more closely. Although I knew that ifplugd shouldn't be run on its own
> any more, I had assumed (famous last words, right? ;)) that it still
> used /etc/conf.d/ifplugd.
That message about removing /etc/{init,conf}.d/ifplugd only appeared when
I updated to the most recent baselayout yesterday.
--
Neil Bothwick
Employ teenagers - while they know everything.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ifplugd and netplug annoyance
2006-08-16 23:36 ` Neil Bothwick
2006-08-17 0:04 ` Ryan Tandy
@ 2006-08-17 11:27 ` Mike Williams
1 sibling, 0 replies; 8+ messages in thread
From: Mike Williams @ 2006-08-17 11:27 UTC (permalink / raw
To: gentoo-user
On Thursday 17 August 2006 00:36, Neil Bothwick wrote:
> > > But the interface is never actually brought
> > > down, and that's my problem, I *want* the interface brought *down*.
> >
> > in /etc/conf.d/ifplugd:
> > AUTO="yes"
>
> The latest baselayout ebuild tells you to remove this file. baselayout
> runs ifplugd now, it shouldn't be run separately. As Richard said,
> use /etc/conf.d/net for this.
Well, that should be fun.
I've got it working "properly" now (I have an e100 nic, which does properly
support reading link status when operationally down).
I had to remove /lib/rcscripts/net/ifplugd.sh as I could not disable it from
conf.d/net
I still have this at the top of conf.d/net:
modules=( "!plug" )
modules_eth0=( "!plug" )
modules=( "!ifplugd" )
modules_eth0=( "!ifplugd" )
The postdown function doesn't get executed with ifplugd.sh in place, as the
interface is never actually brought down.
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-17 11:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 12:50 [gentoo-user] ifplugd and netplug annoyance Mike Williams
2006-08-16 13:05 ` Andrew Frink
2006-08-16 17:34 ` Richard Fish
2006-08-16 23:05 ` Ryan Tandy
2006-08-16 23:36 ` Neil Bothwick
2006-08-17 0:04 ` Ryan Tandy
2006-08-17 7:30 ` Neil Bothwick
2006-08-17 11:27 ` Mike Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox