* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
@ 2004-03-21 12:39 ` Marco d'Itri
2004-03-22 15:35 ` Greg KH
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Marco d'Itri @ 2004-03-21 12:39 UTC (permalink / raw)
To: linux-hotplug
On Mar 21, Joerg Sommer <joerg@alea.gnuu.de> wrote:
> is it possible to manage network links with hotplug. Is there a hotplug
> event if the cable is pluged in the network card? Is would supersede
> tools like ifplugd which poll the state of the network link.
Yes, look at /etc/hotplug/net.agent.
The major problem is that there is no good way to assign an interface
name to a specific hardware device (but this happens also without
hotplug...).
--
ciao, |
Marco | [5218 coqCk7zBwtBZk]
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
2004-03-21 12:39 ` Marco d'Itri
@ 2004-03-22 15:35 ` Greg KH
2004-03-22 17:24 ` Marco d'Itri
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-03-22 15:35 UTC (permalink / raw)
To: linux-hotplug
On Sun, Mar 21, 2004 at 01:39:51PM +0100, Marco d'Itri wrote:
> On Mar 21, Joerg Sommer <joerg@alea.gnuu.de> wrote:
>
> > is it possible to manage network links with hotplug. Is there a hotplug
> > event if the cable is pluged in the network card? Is would supersede
> > tools like ifplugd which poll the state of the network link.
> Yes, look at /etc/hotplug/net.agent.
> The major problem is that there is no good way to assign an interface
> name to a specific hardware device (but this happens also without
> hotplug...).
What is wrong with using nameif for this?
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
2004-03-21 12:39 ` Marco d'Itri
2004-03-22 15:35 ` Greg KH
@ 2004-03-22 17:24 ` Marco d'Itri
2004-03-22 17:44 ` Greg KH
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Marco d'Itri @ 2004-03-22 17:24 UTC (permalink / raw)
To: linux-hotplug
On Mar 22, Greg KH <greg@kroah.com> wrote:
> > The major problem is that there is no good way to assign an interface
> > name to a specific hardware device (but this happens also without
> > hotplug...).
> What is wrong with using nameif for this?
In my experience it just does not work: not all tools recognize the
modified names.
(I remember spending an afternoon swearing at it last year, maybe in
this time it has been improved? If there are limitations I don't
remember seeing them documented.)
--
ciao, |
Marco | [5241 scr/B96m1AdpQ]
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
` (2 preceding siblings ...)
2004-03-22 17:24 ` Marco d'Itri
@ 2004-03-22 17:44 ` Greg KH
2004-03-24 11:53 ` Joerg Sommer
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-03-22 17:44 UTC (permalink / raw)
To: linux-hotplug
On Mon, Mar 22, 2004 at 06:24:24PM +0100, Marco d'Itri wrote:
> On Mar 22, Greg KH <greg@kroah.com> wrote:
>
> > > The major problem is that there is no good way to assign an interface
> > > name to a specific hardware device (but this happens also without
> > > hotplug...).
> > What is wrong with using nameif for this?
> In my experience it just does not work: not all tools recognize the
> modified names.
In my experience, and in Red Hat's and SuSE's experience, nameif works
just fine to bind network adapters to specific MAC address of devices.
As I personally know loads of people using it, and I know of some
developers working on adding some udev-like functions to nameif to
handle pci device names and stuff, I'm pretty sure this is the proper
tool.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
` (3 preceding siblings ...)
2004-03-22 17:44 ` Greg KH
@ 2004-03-24 11:53 ` Joerg Sommer
2004-03-24 23:14 ` Greg KH
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Joerg Sommer @ 2004-03-24 11:53 UTC (permalink / raw)
To: linux-hotplug
begin "Marco d'Itri" <md@Linux.IT> wrote:
> On Mar 21, Joerg Sommer <joerg@alea.gnuu.de> wrote:
>
>> is it possible to manage network links with hotplug. Is there a hotplug
>> event if the cable is pluged in the network card? Is would supersede
>> tools like ifplugd which poll the state of the network link.
> Yes, look at /etc/hotplug/net.agent.
But I don't get any hotplug event. I set export DEBUG=yes in
/sbin/hotplug, pulled out the network cable, waited a few seconds and
pluged it in, but I didn't get any message in /var/log/user.log and
nothing happend.
BTW: Why does hotplug log with facility user? It isn't an user
application. I would prefer daemon.
Jörg.
end.
--
Angenehme Worte sind nie wahr,
wahre Worte sind nie angenehm.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
` (4 preceding siblings ...)
2004-03-24 11:53 ` Joerg Sommer
@ 2004-03-24 23:14 ` Greg KH
2004-03-25 16:25 ` Gioele Barabucci
2004-03-26 23:02 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-03-24 23:14 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 24, 2004 at 11:53:55AM +0000, Joerg Sommer wrote:
> begin "Marco d'Itri" <md@Linux.IT> wrote:
> > On Mar 21, Joerg Sommer <joerg@alea.gnuu.de> wrote:
> >
> >> is it possible to manage network links with hotplug. Is there a hotplug
> >> event if the cable is pluged in the network card? Is would supersede
> >> tools like ifplugd which poll the state of the network link.
> > Yes, look at /etc/hotplug/net.agent.
>
> But I don't get any hotplug event. I set export DEBUG=yes in
> /sbin/hotplug, pulled out the network cable, waited a few seconds and
> pluged it in, but I didn't get any message in /var/log/user.log and
> nothing happend.
Oops, sorry, network cable events do not generate hotplug events. I was
thinking of network device adds and removes. You will have to use
ethtool or netlink to detect loss of the ethernet link.
Good luck,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
` (5 preceding siblings ...)
2004-03-24 23:14 ` Greg KH
@ 2004-03-25 16:25 ` Gioele Barabucci
2004-03-26 23:02 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Gioele Barabucci @ 2004-03-25 16:25 UTC (permalink / raw)
To: linux-hotplug
On Thursday 25 March 2004 00:14, Greg KH wrote:
> Oops, sorry, network cable events do not generate hotplug events. I was
> thinking of network device adds and removes. You will have to use
> ethtool or netlink to detect loss of the ethernet link.
Why don't make the net drivers raise an hotplug event instead? this would be a
cleaner design...
--
Gioele
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Manage network links with hotplug?
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
` (6 preceding siblings ...)
2004-03-25 16:25 ` Gioele Barabucci
@ 2004-03-26 23:02 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-03-26 23:02 UTC (permalink / raw)
To: linux-hotplug
On Thu, Mar 25, 2004 at 05:25:34PM +0100, Gioele Barabucci wrote:
> On Thursday 25 March 2004 00:14, Greg KH wrote:
> > Oops, sorry, network cable events do not generate hotplug events. I was
> > thinking of network device adds and removes. You will have to use
> > ethtool or netlink to detect loss of the ethernet link.
> Why don't make the net drivers raise an hotplug event instead? this would be a
> cleaner design...
Go talk to the network driver authors :)
Good luck.
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread