View previous topic :: View next topic |
Author |
Message |
ZaPa l33t
Joined: 13 Feb 2007 Posts: 822
|
Posted: Sat Sep 13, 2014 4:48 am Post subject: [UDEV] Fix name ethernet interface (Open) |
|
|
Hello.
This week I had a little problem with udev. I had my pretty outdated system and the system made a fairly significant upgrade. The udev version that I have right now is 2.15. I am trying to set the names of the interfaces by MAC, but does not work with eth2-eth0 properly because you want it to be is eth0 eth2 and vice versa.
The eth3 rule work perfect, no problem.
Udev rules I'm using is the one I saw in the gentoo wiki, is as follows:
Code: |
SUBSYSTEM=="net", ATTR{address}=="54:14:a6:7e:51:bb", NAME="eth0"
SUBSYSTEM=="net", ATTR{address}=="34:70:32:01:22:91", NAME="eth2"
SUBSYSTEM=="net", ATTR{address}=="34:70:22:01:21:12", NAME="eth3"
|
"54:14:a6:7e:51:bb" is the integrated ethernet in motherboard.
"34:70:32:01:22:91" & "34:70:22:01:21:12" pci ethernet.
As I say not if I'm doing it correctly for the version I'm using udev. I hope you can tell me how to do it for this version if I'm not doing well.
I should add that I use OpenRC.
A greeting. _________________ --
http://www.monovarlinux.org. Información y experiencias con linux, especialmente con Gentoo. |
|
Back to top |
|
|
kurly Apprentice
Joined: 02 Apr 2012 Posts: 260
|
Posted: Sat Sep 13, 2014 5:56 am Post subject: |
|
|
udev upstream has removed support for assigning names to devices that use the kernel namespace (specifically, ethX). If you want to continue doing that, swap udev for eudev and be sure to use the rule-generator USE flag (which I believe is on by default). Alternately, you can use net0 net1 net2 instead of eth0 eth1 eth2.
As with all upgrades, be certain to read the post install messages carefully, if any!
Also, you don't need to state "Open" in your title line: that's the default state of a thread. But it is always a good idea to mark when the thread is solved. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sat Sep 13, 2014 6:15 am Post subject: Re: [UDEV] Fix name ethernet interface (Open) |
|
|
ZaPa wrote: | I should add that I use OpenRC. | Which network manager are you using?
In case you left it all to dhcpcd you wouldn't have to care about those udev-generated new "predictable interface names". Those have to be cared for in case you used old netifrc. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|