Mailinglist Archive: opensuse-de (743 mails)
| < Previous | Next > |
Re: Netzwerkkarten: Zuweisung von ethx dauerhaft erzwingen
- From: Christian <chris@xxxxxxxxxxxxxxxx>
- Date: Tue, 13 Mar 2012 17:46:59 +0100
- Message-id: <b733480e93ced54eb1971edad09d22d5@computersalat.de>
Hallo Norbert,
Am 2012-03-13 10:16, schrieb Norbert Zawodsky:
Mini-PC mit 4 onboard Netzwerk karten.
Das System (hier wars udevd) hat die interfaces so angeordnet in
der /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:da", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
dummerweise sind am Gehäuse Nummern 1-4, wobei
hier z.B.
eth0 bei der Nummer 4 ist
eth1 bei Nummer 3
eth2 bei Nummer 2
und eth3 bei Nummer 1
will man nun erreichen das "eth0" auch am Gehäuse bei Nummer 1 ist und eth1 bei Nummer 2 .....
dann braucht man in der "udev-rules" datei anzu passen in:
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:da", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
somit ist das ganz einfach :)
hier hätte man sich gewünscht, dass die Interfaces in der Reihenfolge Ihrer "MAC-Adressen" angelegt werden, aber leider
war dem nicht so.
--
Christian
----------------------------------------------------
- Please do not 'CC' me on list mails.
Just reply to the list :)
----------------------------------------------------
Der ultimative shop für Sportbekleidung und Zubehör
http://www.sc24.de
----------------------------------------------------
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe@xxxxxxxxxxxx
Um den Listen Administrator zu erreichen, schicken
Sie eine Mail an: opensuse-de+owner@xxxxxxxxxxxx
Am 2012-03-13 10:16, schrieb Norbert Zawodsky:
mußt du nicht. ;)Hallo Leute,
ich lese hier einfach nur so mit. Aber jetzt komm ich mir gerade ein
bisschen blöd vor.
Irgendwie verstehe ich weder die Frage noch die diversen Antworten...Bsp.:
Mini-PC mit 4 onboard Netzwerk karten.
Das System (hier wars udevd) hat die interfaces so angeordnet in
der /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:da", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
dummerweise sind am Gehäuse Nummern 1-4, wobei
hier z.B.
eth0 bei der Nummer 4 ist
eth1 bei Nummer 3
eth2 bei Nummer 2
und eth3 bei Nummer 1
will man nun erreichen das "eth0" auch am Gehäuse bei Nummer 1 ist und eth1 bei Nummer 2 .....
dann braucht man in der "udev-rules" datei anzu passen in:
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:da", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:60:e0:e0:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
somit ist das ganz einfach :)
hier hätte man sich gewünscht, dass die Interfaces in der Reihenfolge Ihrer "MAC-Adressen" angelegt werden, aber leider
war dem nicht so.
Gruß
In meinem Rechner sind ebenfalls 2 NICs.
Yast -> Netzwerkgeräte -> Netzwerkeinstellungen zeigt mir Beide.
Im Tab "Hardware", Eingabefeld "Gerätename" ... ??? ... ???
Oder verstehe ich da etwas völlig falsch?
Norbert
--
Christian
----------------------------------------------------
- Please do not 'CC' me on list mails.
Just reply to the list :)
----------------------------------------------------
Der ultimative shop für Sportbekleidung und Zubehör
http://www.sc24.de
----------------------------------------------------
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe@xxxxxxxxxxxx
Um den Listen Administrator zu erreichen, schicken
Sie eine Mail an: opensuse-de+owner@xxxxxxxxxxxx
| < Previous | Next > |