1 |
Looking at /etc/udev/rules.d/ I'd found 70-persistent-net.rules with |
2 |
the lines below: |
3 |
# PCI Device: 0x10ec:0x8029 (ne2k-pci) |
4 |
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:c0:df:ea:d6:49", |
5 |
NAME="eth1" |
6 |
|
7 |
# PCI Device: 0x10b7:0x9200 (3c59x) |
8 |
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:75:c5:5c:ce", |
9 |
NAME="eth2" |
10 |
|
11 |
The interface with name eth1 match the mac address with the installed |
12 |
one, but interface eth2 does not, probably 'cause it might be the old |
13 |
card mac adress. |
14 |
|
15 |
Well, now I know that in some way udev add these links automatically I |
16 |
do thing that I can just change the mac address putting the right one, |
17 |
letting the file appear like below: |
18 |
|
19 |
|
20 |
# PCI Device: (via-rhine) |
21 |
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:8D:84:A8:4F", |
22 |
NAME="eth0" |
23 |
|
24 |
# PCI Device: 0x10ec:0x8029 (ne2k-pci) |
25 |
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:C0:DF:EA:D6:49", |
26 |
NAME="eth1" |
27 |
|
28 |
# PCI Device: 0x10b7:0x9200 (3c59x) |
29 |
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:04:6E:9C:AB", |
30 |
NAME="eth2" |
31 |
|
32 |
|
33 |
Well, that's OK, it do solve my problem but isn't it supposed to be an |
34 |
automatically process? Isn't it an UDEV or Gentoo task to deal with? |
35 |
|
36 |
|
37 |
-- |
38 |
Claudinei Matos |
39 |
|
40 |
> |
41 |
> I'm pretty sure you can use UDEV rules to set it, something like this: |
42 |
> |
43 |
> # cat /etc/udev/rules.d/10-local.rules |
44 |
> BUS=="pci", KERNEL=="eth[0-9]", SYSFS{address}=="00:2a:9a:d4:65:32", \ |
45 |
> NAME="lan0" |
46 |
> BUS=="pci", KERNEL=="eth[0-9]", SYSFS{address}=="00:a0:5d:3e:ae:54", \ |
47 |
> NAME="lan1" |
48 |
> |
49 |
> Where SYSFS{address} is the MAC address of the card. |
50 |
> -- |
51 |
> Daniel da Veiga |
52 |
> Computer Operator - RS - Brazil |
53 |
> -----BEGIN GEEK CODE BLOCK----- |
54 |
> Version: 3.1 |
55 |
> GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- |
56 |
> PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ |
57 |
> ------END GEEK CODE BLOCK------ |
58 |
> -- |
59 |
> gentoo-user@g.o mailing list |
60 |
> |
61 |
> |
62 |
-- |
63 |
gentoo-user@g.o mailing list |