giftnudel
13.01.04, 16:01
Hallo,
Wer kennt es nicht von Windows: Wenn ich das Netzwerkkabel herausziehe, wird das Netzwerk erst einmal deaktiviert, schliesse ich es jetzt an einem neuen Netzwerk an (wenn möglich mit DHCP-Server), so wird die Netzwerkkarte wieder aktiviert und bekommt dann gleich eine neue IP zugewiesen. Dies ist vor allem für Laptops extrem praktisch, die man einfach ans Netzwerk anschliessen kann, ohne die Netzwerkkarten einrichten zu müssen (funktionierendes pcmcia/hotplug vorrausgesetzt). So kann ein Notebook in der Firma und zu Hause mit der gleichen Konfiguration betrieben werden.
Unter Linux habe ich dieses Verhalten bis jetzt vermisst, doch als ich für meinen Vater einen Laptop einrichten sollte, musste ich dafür sorgen, dass genau das funktioniert.
Ich bin bei meiner Suche im Internet auf netplug (http://www.red-bean.com/~bos/) und ifplugd (http://www.stud.uni-hamburg.de/users/lennart/projects/ifplugd/) gestossen
Zitat von der Netplug seite:
Netplug is a Linux daemon that manages network interfaces in response to network cables being plugged in and out. If you're familiar with Windows XP, which just does the Right Thing when you plug an ethernet cable into a laptop, netplug will need no further explanation.
Basically, netplug brings up an interface and runs a DHCP client when a cable is plugged into that interface, and it brings the interface down when the cable is unplugged. On a typical Linux system or laptop, you have to run a command (such as "/sbin/ifup") manually to handle these events, but netplug automates this for you.
Zitat von der Ifplugd seite:
ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected.
Ifplugd habe ich leider nicht mit dem 2.6er Kernel zum laufen bekommen, was aber nicht heisst, dass es nicht gehen könnte.
Ich hoffe, das war für irgendwen hilfreich :)
giftnudel
Wer kennt es nicht von Windows: Wenn ich das Netzwerkkabel herausziehe, wird das Netzwerk erst einmal deaktiviert, schliesse ich es jetzt an einem neuen Netzwerk an (wenn möglich mit DHCP-Server), so wird die Netzwerkkarte wieder aktiviert und bekommt dann gleich eine neue IP zugewiesen. Dies ist vor allem für Laptops extrem praktisch, die man einfach ans Netzwerk anschliessen kann, ohne die Netzwerkkarten einrichten zu müssen (funktionierendes pcmcia/hotplug vorrausgesetzt). So kann ein Notebook in der Firma und zu Hause mit der gleichen Konfiguration betrieben werden.
Unter Linux habe ich dieses Verhalten bis jetzt vermisst, doch als ich für meinen Vater einen Laptop einrichten sollte, musste ich dafür sorgen, dass genau das funktioniert.
Ich bin bei meiner Suche im Internet auf netplug (http://www.red-bean.com/~bos/) und ifplugd (http://www.stud.uni-hamburg.de/users/lennart/projects/ifplugd/) gestossen
Zitat von der Netplug seite:
Netplug is a Linux daemon that manages network interfaces in response to network cables being plugged in and out. If you're familiar with Windows XP, which just does the Right Thing when you plug an ethernet cable into a laptop, netplug will need no further explanation.
Basically, netplug brings up an interface and runs a DHCP client when a cable is plugged into that interface, and it brings the interface down when the cable is unplugged. On a typical Linux system or laptop, you have to run a command (such as "/sbin/ifup") manually to handle these events, but netplug automates this for you.
Zitat von der Ifplugd seite:
ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected.
Ifplugd habe ich leider nicht mit dem 2.6er Kernel zum laufen bekommen, was aber nicht heisst, dass es nicht gehen könnte.
Ich hoffe, das war für irgendwen hilfreich :)
giftnudel