Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UDEV] Fix name ethernet interface (Open)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ZaPa
l33t
l33t


Joined: 13 Feb 2007
Posts: 803

PostPosted: Sat Sep 13, 2014 4:48 am    Post subject: [UDEV] Fix name ethernet interface (Open) Reply with quote

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
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 254

PostPosted: Sat Sep 13, 2014 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2801

PostPosted: Sat Sep 13, 2014 6:15 am    Post subject: Re: [UDEV] Fix name ethernet interface (Open) Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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