1 |
On Wed, Jan 2, 2013 at 12:57 PM, james <wireless@×××××××××××.com> wrote: |
2 |
> Mark Knecht <markknecht <at> gmail.com> writes: |
3 |
> |
4 |
> |
5 |
>> > So now that only one ethernet shows up, how do I prevent |
6 |
>> > udev from renaming eth0 to eth3? |
7 |
> |
8 |
>> Probably remove any net-persistent rules that are hanging around. That |
9 |
>> should free up udev to do more of what you suspect. |
10 |
> |
11 |
<SNIP> |
12 |
> |
13 |
> After deleting the 70-persistent-net.rule file |
14 |
> |
15 |
> udev does not re-create it. All is now fine with rc-status |
16 |
> only showing net.eth0 which is set up how I like it |
17 |
> per /etc/conf.d/net. All services are fine |
18 |
> |
19 |
> |
20 |
> Move on, or hand edit the '70-persistent-net.rules' file? |
21 |
> |
22 |
> TIA, |
23 |
> James |
24 |
> |
25 |
> |
26 |
> |
27 |
|
28 |
Well, I think I'd hand edit myself. That's what I've done in the past. |
29 |
As Bruce say, dispatch-conf (or etc-update is what I use) might pick |
30 |
something up if it's waiting, but looking at the comments in my file I |
31 |
don't think so: |
32 |
|
33 |
mark@c2stable ~ $ cat /etc/udev/rules.d/70-persistent-net.rules |
34 |
# This file was automatically generated by the /lib64/udev/write_net_rules |
35 |
# program, run by the persistent-net-generator.rules rules file. |
36 |
# |
37 |
# You can modify it, as long as you keep each rule on a single |
38 |
# line, and change only the value of the NAME= key. |
39 |
|
40 |
# PCI device 0x11ab:0x4364 (sky2) |
41 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", |
42 |
ATTR{address}=="e0:cb:4e:97:80:fd", ATTR{dev_id}=="0x0", |
43 |
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
44 |
|
45 |
# PCI device 0x11ab:0x4364 (sky2) |
46 |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", |
47 |
ATTR{address}=="e0:cb:4e:97:7a:09", ATTR{dev_id}=="0x0", |
48 |
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
49 |
mark@c2stable ~ $ |
50 |
|
51 |
Really, as long as you don't mess up the format it's really just a |
52 |
matter of matching the macID. Save your old file in a copy somewhere |
53 |
and then edit and make it work. ifconfig will show you the macID. |
54 |
|
55 |
I, like so many others I think, really don't understand how udev |
56 |
manages all this stuff. I'm really not sure udev knows how udev |
57 |
works... |
58 |
|
59 |
HTH, |
60 |
Mark |