On Wed, Jan 2, 2013 at 12:57 PM, james <wirel...@tampabay.rr.com> wrote: > Mark Knecht <markknecht <at> gmail.com> writes: > > >> > So now that only one ethernet shows up, how do I prevent >> > udev from renaming eth0 to eth3? > >> Probably remove any net-persistent rules that are hanging around. That >> should free up udev to do more of what you suspect. > <SNIP> > > After deleting the 70-persistent-net.rule file > > udev does not re-create it. All is now fine with rc-status > only showing net.eth0 which is set up how I like it > per /etc/conf.d/net. All services are fine > > > Move on, or hand edit the '70-persistent-net.rules' file? > > TIA, > James > > >
Well, I think I'd hand edit myself. That's what I've done in the past. As Bruce say, dispatch-conf (or etc-update is what I use) might pick something up if it's waiting, but looking at the comments in my file I don't think so: mark@c2stable ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib64/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x11ab:0x4364 (sky2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:cb:4e:97:80:fd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x11ab:0x4364 (sky2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:cb:4e:97:7a:09", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" mark@c2stable ~ $ Really, as long as you don't mess up the format it's really just a matter of matching the macID. Save your old file in a copy somewhere and then edit and make it work. ifconfig will show you the macID. I, like so many others I think, really don't understand how udev manages all this stuff. I'm really not sure udev knows how udev works... HTH, Mark