Wiki GeRgOsNet Notes d’administration système, réseau et domotique

Vous consultez une ancienne version, enregistrée le 27 novembre 2012 par GreG. Voir la version actuelle.

Changer Carte Ethernet

Récupéré sur la Wayback Machine (capture du 27/11/2012)

En cas de changement de carte ethernet ou d'ajout d'une carte ethernet une info s'ajoute dans :

/etc/udev/rules.d/XX-persistent-net.rules XX pouvant varier .

On y trouve :

  1. This file was automatically generated by the /lib/udev/write_net_rules
  2. program run by the persistent-net-generator.rules rules file.
  3. You can modify it, as long as you keep each rule on a single line.
  4. USB device 0x9710:0x7830 (MOSCHIP usb-ethernet driver)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:c2:76:b0:be", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  1. USB device 0x9710:0x7830 (MOSCHIP usb-ethernet driver)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:3b:04:02:d0", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  1. USB device 0x0b95:0x1780 (asix)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:c6:88:09:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

Si l'on veut inverser 2 cartes, il faut donc modifier ce fichier .