ubuntuusers.de

Zuweisung Statische IP, nach Rechnerneustart immer wieder Fallback auf DHCP

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

althequick

Anmeldungsdatum:
24. Juli 2008

Beiträge: 10

Hallo, ich habe einen Ubuntu Rechner U an einem Router R. Per DHCP an R kann sich U auch problemlos mit dem Internet verbinden. Wenn ich U über System/Administration/Network eine statische IP zuweisen möchte, gibts Probleme. 1) Es gibt zwei eth (1 und 40-50, das zweite eth variiert nach jedem Neustart), denen man beiden IP zuordnen kann 2) Nur wenn man eth40 auf eine statsiche IP stellt, hat man manchmal Erfolg. D.h. U geht dann über diese statische IP ins Internet. Diese IP kommt NICHT aus dem DHCP-Adressraums des Routers. Darauf achte ich! In jedem Falle funktioniert die statische IP Zuordnung nicht sofort. Wenn überhaupt erst nach einiger Zeit. Wenn ich nach der Umstellung im i.g. Netwerkeinstellungsfenster in der Konsole per ifconfig nachschaue, hat eth40 immer noch keine statische IP. Dann versuch ichs mit "ifconfig eth40 192.168.178.2". Geht auch nur manchmal. 3) In jedem Fall werden die Einstellungen nach einem Neustart des Rechner U annuliert. Dann sind alle eth's wieder auf "Roaming Mode Enabled", was wohl "automatische Zuweisung per DHCP" bedeutet.

Weiss jemand, wie IP-Einstellungen dauerhaft festlegen kann?

Moguai1978

Avatar von Moguai1978

Anmeldungsdatum:
17. September 2005

Beiträge: 862

Wohnort: Augsburger Outback

Kannst Du mal noch nen paar Informationen posten?
1.) Wie schaut Deine /etc/network/interfaces nach dem Neustart aus?
2.) Nutzt Du den Network-Manager?
3.) Hat der Rechner ein oder mehrere Netzwerkschnittstellen und ggf. welche (LAN/WLAN)? Bei WLAN bitte angeben, welche Verschlüsselungsart, SSID verbergen etc. ggf. genutzt wird?
4.) Was hast Du für einen Router (Fabrikat und Typ)?
5.) Wie schaut Deine /etc/udev/rules.d/zxx-persistent-net.rules aus? (Sorry bin gerade nicht an einem ubuntu-Rechner und kann den letzten Teil leider nicht genau posten.) Bitte mal schauen, wie da in /etc/udev/rules.d/ die genaue Bezeichnung ist. Hinter z (Groß-und Kleinschreibung weiss ich auch ned aus dem Kopf)kommt glaube 25 oder 70...

althequick

(Themenstarter)

Anmeldungsdatum:
24. Juli 2008

Beiträge: 10

Hi Moguai, danke für Deine Hilfe ☺

Kannst Du mal noch nen paar Informationen posten?

gern

1.) Wie schaut Deine /etc/network/interfaces nach dem Neustart aus?

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 192.168.178.28
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.178.1


#iface eth1 inet dhcp

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

auto wlan0
#iface wlan0 inet dhcp


iface eth42 inet static
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1

auto eth42


iface eth43 inet static
address 192.168.178.3
netmask 255.255.255.0

auto eth43

iface eth44 inet static
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1

auto eth44

iface eth47 inet static
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1

auto eth47


iface eth49 inet static
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1

auto eth49

iface eth50 inet static
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1

auto eth50

2.) Nutzt Du den Network-Manager?

Ja, Und teilweise pfusch ich (scheinbar) auch mit ifconfig rum ohne genau zu wissen, was ich damit genau anstelle *g*. Ich hab eigentlich immer nur folgende Befehle benutzt, einer Netzwerkschnittstelle eine IP zuzuweisen und zwar so:

1
2
$> ifconfig eth40 192.168.178.2
$> ifconfig eth40 up

3.) Hat der Rechner ein oder mehrere Netzwerkschnittstellen und ggf. welche (LAN/WLAN)? Bei WLAN bitte angeben, welche Verschlüsselungsart, SSID verbergen etc. ggf. genutzt wird?

Nein, kein WLAN. Wo schau ich nach welche Netwerkschnittstellen er hat? Mit ifconfig? Ich poste hier mal den Inhalt von "$> ifconfig":

eth1      Link encap:Ethernet  HWaddr 00:08:54:41:6c:6f  
          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:19 Base address:0xe800 

eth53     Link encap:Ethernet  HWaddr 00:00:6c:e9:5f:c5  
          inet addr:192.168.178.84  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::200:6cff:fee9:5fc5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4214 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2191746 (2.0 MB)  TX bytes:812685 (793.6 KB)
          Interrupt:252 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:7645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7645 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:384744 (375.7 KB)  TX bytes:384744 (375.7 KB)

Das Problem, was ich hier habe ist folgendes: eth1 und lo ist immer da. Die mittlere Schnittstelle ändert nach jedem Neustart seine Nummer hinter "eth". Diese Schnittstelle mit dieser variierenden Nummer ist scheinbar auch die einzige, mit der ich mit dem Router kommunizieren kann. Und gerade die schwenkt bei jedem Neustart von U auf DHCP um und hat daher nie die fest IP 192.168.178.2, die ich ihr zuweise, sondern immer eine, wo bei xxx.xxx.xxx.yyy die Ziffern yyy was anderes als 2 sind.

4.) Was hast Du für einen Router (Fabrikat und Typ)?

FRITZ!Box Fon WLAN 7170 (UI), Firmware-Version 29.04.40

5.) Wie schaut Deine /etc/udev/rules.d/zxx-persistent-net.rules aus? (Sorry bin gerade nicht an einem ubuntu-Rechner und kann den letzten Teil leider nicht genau posten.) Bitte mal schauen, wie da in /etc/udev/rules.d/ die genaue Bezeichnung ist. Hinter z (Groß-und Kleinschreibung weiss ich auch ned aus dem Kopf)kommt glaube 25 oder 70...

"$> cat /etc/udev/rules.d/70-persistent-net.rules" liefert:

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# Converted from /etc/iftab on upgrade
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:13:8f:dc:d1:81", ATTRS{type}=="1", NAME="eth0"

# Converted from /etc/iftab on upgrade
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:08:54:41:6c:6f", ATTRS{type}=="1", NAME="eth1"


# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:40:62:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:b1:0e:05", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:5d:55:72", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:c6:62:b6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:9f:6b:80", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:76:bd:51", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:bd:57:7b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth8"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:0e:48:b0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth9"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:30:1d:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth10"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:17:21:7c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth11"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:53:e1:0d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth12"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:c4:1b:7d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth13"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:72:c7:2c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth14"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:44:90:be", ATTR{type}=="1", KERNEL=="eth*", NAME="eth15"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:e5:08:1a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth16"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:ca:b3:77", ATTR{type}=="1", KERNEL=="eth*", NAME="eth17"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:c9:aa:fb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth18"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:cf:39:69", ATTR{type}=="1", KERNEL=="eth*", NAME="eth19"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:1f:8d:91", ATTR{type}=="1", KERNEL=="eth*", NAME="eth20"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:46:4c:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth21"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:d2:5e:04", ATTR{type}=="1", KERNEL=="eth*", NAME="eth22"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:b4:88:41", ATTR{type}=="1", KERNEL=="eth*", NAME="eth23"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:d2:46:5d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth24"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:e3:ff:3e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth25"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:21:cc:51", ATTR{type}=="1", KERNEL=="eth*", NAME="eth26"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:55:00:c1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth27"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:0b:21:78", ATTR{type}=="1", KERNEL=="eth*", NAME="eth28"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:48:52:1b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth29"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:1e:6f:80", ATTR{type}=="1", KERNEL=="eth*", NAME="eth30"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:8c:b3:4a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth31"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:9a:28:a9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth32"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:9b:bf:34", ATTR{type}=="1", KERNEL=="eth*", NAME="eth33"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:d4:3d:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth34"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:e9:be:3e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth35"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:d1:84:78", ATTR{type}=="1", KERNEL=="eth*", NAME="eth36"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:ac:0a:be", ATTR{type}=="1", KERNEL=="eth*", NAME="eth37"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:58:41:c3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth38"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:ef:57:e2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth39"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:cb:a8:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth40"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:8e:03:8a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth41"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:44:45:48", ATTR{type}=="1", KERNEL=="eth*", NAME="eth42"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:92:37:4c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth43"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:63:93:38", ATTR{type}=="1", KERNEL=="eth*", NAME="eth44"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:cb:f6:5c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth45"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:fe:1c:7f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth46"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:11:9a:65", ATTR{type}=="1", KERNEL=="eth*", NAME="eth47"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:29:bb:18", ATTR{type}=="1", KERNEL=="eth*", NAME="eth48"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:7d:e5:36", ATTR{type}=="1", KERNEL=="eth*", NAME="eth49"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:6d:0d:85", ATTR{type}=="1", KERNEL=="eth*", NAME="eth50"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:76:88:29", ATTR{type}=="1", KERNEL=="eth*", NAME="eth51"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:a5:4f:21", ATTR{type}=="1", KERNEL=="eth*", NAME="eth52"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:e9:5f:c5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth53"

napterk

Anmeldungsdatum:
17. Februar 2008

Beiträge: 147

Hallo,

ich kann zwar nicht so viel mit den Daten anfangen, aber hatte auch so ein Problem.

Probier doch wie in IP-Adresse wechseln und interfaces beschrieben die /etc/network/interfaces manuell zu bearbeiten.

Bei mir hats danach geklappt.

Viel Erfolg!

iamroot

Anmeldungsdatum:
17. November 2009

Beiträge: 25

Wechselst du die MAC Adresse deiner Netzwerkkarte ? Scheinbar meint Ubuntu bei jedem Start, dass eine neue Netzwerkarte verbaut wurde. Dementsprechend legt es ein neues Device an.

Edit: Poste doch bitte nochmal die Ausgabe von

sudo ifconfig -a

althequick

(Themenstarter)

Anmeldungsdatum:
24. Juli 2008

Beiträge: 10

ich glaube, ich weiss, wo das Problem liegt.

ich zitiere eine Stelle aus dem Wiki zu dem Thema Netzwerkeinstellungen (http://wiki.ubuntuusers.de/Baustelle/Netzwerkeinstellungen)

Network Manager deaktivieren¶

Das Network Administration Tool und der Network Manager (NM) beinträchtigen sich gegenseitig. Möchte man sein Netzwerk mit dem Network Administration Tool (oder direkt durch Einträge in /etc/interfaces) konfigurieren, ist es deshalb wichtig, den NM zu deaktivieren. Hierzu wird das Häkchen in "System → Einstellungen → Startprogramme" entfernt und das System anschließend neu gestartet. Es ist nicht nötig, den NM zu deinstallieren. Entsprechendes gilt auch für WICD.

Nachdem ich den NW-Manager vor einiger Zeit deaktiviert und alles über die /etc/interfaces und die /etc/resolv.conf konfiguriert hatte, lief alles wie am Schnürchen.

Gruss, Alexander

iamroot

Anmeldungsdatum:
17. November 2009

Beiträge: 25

Nachdem ich den NW-Manager vor einiger Zeit deaktiviert und alles über die /etc/interfaces und die /etc/resolv.conf konfiguriert hatte, lief alles wie am Schnürchen.

Im Normalfall reicht es aber für das jeweilige Interface eine statische IP in /etc/network/interfaces zu definieren. Im Anschluss fühlt sich NM i.d.R da nicht mehr für verantwortlich.

TeHa

Anmeldungsdatum:
16. Juli 2009

Beiträge: 10

Wohnort: Braunschweig

*Threadwiederausgrab*

Guten Morgen..

Ich habe hier unter Kubuntu9.10 folgendes Problem:

Ich habe per Network Manager für die Kabel-Verbindung eine Verbindung mit statischer IP erstellt, und den Haken bei 'automatisch verbinden' gesetzt. Funktioniert auch soweit. Nur verbindet der NM nach dem Erwachen des Rechners aus dem Ruhezustand (Hibernate) nicht mit dieser Verbindung, sondern holt sich per DHCP eine Adresse und nennt diese Verbindung dann 'Auto eth0'.

Ich möchte den NM nun aber nicht wie beschrieben einfach deaktivieren, da ich ihn zum Verwalten von WLAN-Verbindungen nutzen will.

Wie bringe ich ihn dazu, die selbst konfigurierte Verbindung zu verwenden?

Viele Grüße TeHa

Max-Ulrich_Farber

Avatar von Max-Ulrich_Farber

Anmeldungsdatum:
23. Januar 2007

Beiträge: 8010

ich glaube, ich weiss, wo das Problem liegt.

Das erklärt für mich noch nicht alles.

Die MAC-Adresse ist eigentlich eine feste Größe, die dem Interface bleibend zugeordnet ist. Alle zusätzlichen scheinbaren Interfaces, die bei Dir auftreten (eth53 ...) haben jeweils verschiedene MAC-Adressen. Der Network Manager verändert aber keine MAC-Adressen, und der DHCP-Server auch nicht. Da stimmt sonst irgend etwas nicht.

Verwendest Du (bewusst oder unbewusst) irgend ein Programm zum Verändern oder Fälschen von MAC-Adressen? Z.B. macchanger? Zwar ist das Verändern oder Fälschen einer MAC-Adresse allein noch keine Straftat, aber es geschieht häufig in Verbindung mit irgend etwas Krummem!

Gruß - Max-Ulrich

TeHa

Anmeldungsdatum:
16. Juli 2009

Beiträge: 10

Wohnort: Braunschweig

Max-Ulrich Farber schrieb:

Die MAC-Adresse ist eigentlich eine feste Größe, die dem Interface bleibend zugeordnet ist.

Eigentlich ja.. aber nicht immer. Es gab vor einigen Jahren einige Chipsätze (VIA oder nforce, bin nicht mehr ganz sicher), die bei jedem Bootvorgang eine neue MAC erzeugen. Wir haben damals im Rechenzentrum lange nach dem Fehler gesucht, und waren uns hinterher einig, daß man die Entwickler eine Weile dafür prügeln sollte..

Viele Grüße, TeHa

Max-Ulrich_Farber

Avatar von Max-Ulrich_Farber

Anmeldungsdatum:
23. Januar 2007

Beiträge: 8010

Es gab vor einigen Jahren einige Chipsätze (VIA oder nforce, bin nicht mehr ganz sicher), die bei jedem Bootvorgang eine neue MAC erzeugen.

Das wusste ich nicht. Das ist ja schlimm!

Ich wusste nur, dass es billige Bluetooth-Sticks gibt, bei denen die ganze Serie die gleiche MAC-Adresse hat. Ich habe auch 2 gleiche, wenn die miteinander kommunizieren wollen, geht alles schief. Auch so etwas dürfte es nicht geben!

Gruß - Max-Ulrich

TeHa

Anmeldungsdatum:
16. Juli 2009

Beiträge: 10

Wohnort: Braunschweig

MAC hin, WLAN her, wie kann man das Problem mit dem Network Manager lösen?

Max-Ulrich_Farber

Avatar von Max-Ulrich_Farber

Anmeldungsdatum:
23. Januar 2007

Beiträge: 8010

An der MAC-Adresse hängt es halt. Wenn sich diese ständig ändert, findet der Network Manager dauernd neue scheinbare Schnittstellen, und organisiert für diese via DHCP IPs.

Wenn Du ein Programm laufen hast, das die MAC-Adressen verändert (z.B. ein Anonymisierungs-Programm oder eben so etwas wie macchanger), musst Du dieses deaktivieren. Wenn Du aber einen von den komischen Chipsätzen hast, die bei jedem Bootvorgang eine neue MAC Adresse erzeugen (von denen ich gar nichts wusste), dann wird es wohl mit dem Network Manager schwierig. Auf jeden Fall musst Du dann auf den Roaming-Mode verzichten.

Gruß - Max-Ulrich

TeHa

Anmeldungsdatum:
16. Juli 2009

Beiträge: 10

Wohnort: Braunschweig

Da die MAC von eth0 konstant ist (das MAC-Problem hat althequick), ist das nicht das Problem. Weitere Ideen?

Max-Ulrich_Farber

Avatar von Max-Ulrich_Farber

Anmeldungsdatum:
23. Januar 2007

Beiträge: 8010

das MAC-Problem hat althequick

Ja, daran hatte ich auch gedacht.

Für das Hibernate-Problem weiß ich nur ein Workaround: Verwende statt des Network-Managers das alternative Programm WICD. 😉

Antworten |