[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: keine IP-Adresse nach Netzwerkkabel



Am 10.07.2011 21:55, schrieb Lademann, Klaus:


Hallo Klaus et al,


als Kurzform mein Vorschlag in Verbindung mit "ifplugd" auf Interface eth0

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo   inet loopback
iface eth0 inet dhcp
# The primary network interface
#allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp

/etc/default/ifplud:

INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u2 -d5 -w -I"
SUSPEND_ACTION="none"


...genau so habe ich sie bei mir auf meinem Notebook auch angepasst und noch auf die Wlan Schnittstelle erweitert. Das funktioniert tadellos: Kabeil rein, wird wlan runtergefahren und eth0 hochgefahren, Kabel wieder raus, wird ohne weiteres Kommando wlan automatisch wieder hochgefahren und eth0 runter.

Das sieht bei mir dann so aus.

1. /etc/network/interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
iface eth0 inet dhcp
   dns-nameservers 208.67.222.222, 208.67.220.220

# Wlan Interface
#allow-hotplug wlan0
iface wlan0 inet manual
     wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
     dns-nameservers 208.67.222.222, 208.67.220.220

2. /etc/default/ifplugd.

>[......]
INTERFACES="eth0 wlan0"
HOTPLUG_INTERFACES="all"
WIRELESS_INTERFACES="yes"
ARGS="-l -q -f -u3 -d3 -w -M --api-mode=auto"
SUSPEND_ACTION="suspend"

#Additionel Parameters for ifplugd for special Interfaces
MONITOR_wlan0="yes"
DELAY_UP_wlan0="4"
DELAY_DOWN_wlan0="4"


Gruß Dirk



Reply to: