Hallo,
ich habe hier einen Lenny-Server mit 4 Intel-Netzwerkkarten (Intel 82573L Gigabit Ethernet Controller).
Jetzt musste ich für openvz auf den 2.6.18er Kernel downgraden. Jetzt heißen die Netzwerkkarten plötzlich:
server02:/etc/3dm2# hwinfo --short --netcard
network:
eth4 Intel 82573E Gigabit Ethernet Controller (Copper)
eth7 Intel 82573L Gigabit Ethernet Controller
eth5 Intel 82573L Gigabit Ethernet Controller
eth6 Intel 82573L Gigabit Ethernet Controller
Neben meinem Interesse wie das kommt, interessiert mich vorallem ob das so bleibt.
Kann ich nicht gebrauchen dass der Server plötzlich eine andere Netzwerkkarte als eth4 bezeichnet in der kein Kabel steckt oder so.
Jemand eine Idee?
Tausend Dank schon einmal!
PS: Optimum wäre dass es wieder 1-4 ist. Sieht auch schöner aus.
eth1-4 jetzt 5-8 nach Kernel-Downgrade
- Saxman
- Beiträge: 4233
- Registriert: 02.05.2005 21:53:52
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: localhost
Re: eth1-4 jetzt 5-8 nach Kernel-Downgrade
Schau mal unter /etc/udev/rules.d/70-persistent-net.rules
Da sollte udev die Einträge hinterlegt haben.
Die alten kannst du einfach entfernen.
Da sollte udev die Einträge hinterlegt haben.
Die alten kannst du einfach entfernen.
"Unix is simple. It just takes a genius to understand its simplicity." - Dennis Ritchie
Debian GNU/Linux Anwenderhandbuch | df.de Verhaltensregeln | Anleitungen zum Review und zum Verfassen von Wiki Artikeln.
Debian GNU/Linux Anwenderhandbuch | df.de Verhaltensregeln | Anleitungen zum Review und zum Verfassen von Wiki Artikeln.
Re: eth1-4 jetzt 5-8 nach Kernel-Downgrade
Code: Alles auswählen
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f6", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x108c (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# PCI device 0x8086:0x108c (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
# PCI device 0x8086:0x109a (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
# PCI device 0x8086:0x109a (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
# PCI device 0x8086:0x109a (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"
Gibt es einen Weg das so zu lösen, dass die gleiche Netzwerkkarte in beiden Kernels die gleiche Bezeichnung hat?
Gruß
Max
Re: eth1-4 jetzt 5-8 nach Kernel-Downgrade
ZBsp. so in /etc/network/interfaces, Du brauchst dafür das Skript /usr/share/doc/ifupdown/examples/get-mac-address.sh aus ifupdown:
Oder analog udev könntest Du eigene persistent-Regeln mit eigenen Namen angeben.
Code: Alles auswählen
#auto eth0 eth1 eth2 eth3 eth4
#mapping eth0 eth1 eth2 eth3 eth4
# script /etc/network/get-mac-address.sh
# map 00:AA:22:33:CC:55 nforce4-static
# map 00:AA:22:33:CC:55 nforce2-static
# map 00:AA:22:33:CC:55 8139-static1
# map 00:AA:22:33:CC:55 8139-static2
#iface 8139-static1 inet static
# address CCCCCCC
# netmask 255.255.255.0
# gateway AAAAAA
# dns-nameservers XXXXXX
# dns-search YYYYYYY
# mtu 1296
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: eth1-4 jetzt 5-8 nach Kernel-Downgrade
Danke für eure Hilfe. Was ich immer noch nicht verstanden habe: Da steht doch in beiden Zeilen fast das gleiche oder? ![Smile :-)](./images/smilies/icon_smile.gif)
EDIT:
Ich habe das jetzt einfach mal so angepasst. Damit ist ja mein Ziel erreicht in allen Kernelversionen eth0 = eth0 zu haben mit gleicher Konfiguration.
![Smile :-)](./images/smilies/icon_smile.gif)
EDIT:
Code: Alles auswählen
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f6", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x108c (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x108c (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# PCI device 0x8086:0x109a (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:8c:24:01:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"