udev/network question

poma pomidorabelisima at gmail.com
Tue Sep 17 16:32:29 UTC 2013


On 17.09.2013 00:21, Kevin Martin wrote:

> Hmm, this works on my rawhide machine:
> 
> /etc/udev/rules.d/70-my-net-names.rules
> 
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c8:0a:a9:b1:46:c2", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
> 
> 
> I assume it would work for multiple interfaces.
> 

Think twice. :)
A single device doesn't need that rule, just off udev from the story.
One device will always be eth0 per kernel.
For more than one device, it's called "Kernel Naming Roulette".


poma




More information about the users mailing list