Looking at /etc/udev/rules.d/ I'd found 70-persistent-net.rules with the lines below: # PCI Device: 0x10ec:0x8029 (ne2k-pci) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:c0:df:ea:d6:49", NAME="eth1"
# PCI Device: 0x10b7:0x9200 (3c59x) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:75:c5:5c:ce", NAME="eth2" The interface with name eth1 match the mac address with the installed one, but interface eth2 does not, probably 'cause it might be the old card mac adress. Well, now I know that in some way udev add these links automatically I do thing that I can just change the mac address putting the right one, letting the file appear like below: # PCI Device: (via-rhine) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:8D:84:A8:4F", NAME="eth0" # PCI Device: 0x10ec:0x8029 (ne2k-pci) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:C0:DF:EA:D6:49", NAME="eth1" # PCI Device: 0x10b7:0x9200 (3c59x) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:04:6E:9C:AB", NAME="eth2" Well, that's OK, it do solve my problem but isn't it supposed to be an automatically process? Isn't it an UDEV or Gentoo task to deal with? -- Claudinei Matos
I'm pretty sure you can use UDEV rules to set it, something like this: # cat /etc/udev/rules.d/10-local.rules BUS=="pci", KERNEL=="eth[0-9]", SYSFS{address}=="00:2a:9a:d4:65:32", \ NAME="lan0" BUS=="pci", KERNEL=="eth[0-9]", SYSFS{address}=="00:a0:5d:3e:ae:54", \ NAME="lan1" Where SYSFS{address} is the MAC address of the card. -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- gentoo-user@gentoo.org mailing list
-- gentoo-user@gentoo.org mailing list