eth0 again

Amadeus W.M. amadeus84 at verizon.net
Mon Jul 21 04:58:31 UTC 2014


> I just tested on my machine... All I did was add net.ifnames=0 to the
> linux16 line of /boot/grub2/grub.conf:
> 
>> [tcameron at case ~]$ grep vmlinuz /boot/grub2/grub.cfg 
>> 	linux16 /vmlinuz-3.10.0-123.4.2.el7.x86_64 root=UUID=e69ef7fa-d3c3-4d88-972b-31c7cb65777c ro vconsole.keymap=us  vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_US.UTF-8 net.ifnames=0
> 
> I made my network config files look like this:
> 
>> [tcameron at case Desktop]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 
>> DEVICE=eth0
>> HWADDR=90:2B:34:A8:63:06
>> ONBOOT=yes
>> BRIDGE=br0
>> NM_CONTROLLED=no

That did it! The 

DEVICE=eth0

in ifcfg-eth0 did it. I didn't have that in my (automatically generated) 
ifcfg-eth0. Once I added that it worked. Matlab is now up and running! 
Thank you very much!

On a final note, net.ifnames=0 works in conjunction with 
/usr/lib/udev/rules.d/80-net-name-slot.rules:



cat /usr/lib/udev/rules.d/80-net-name-slot.rules 
# do not edit this file, it will be overwritten on update

ACTION!="add", GOTO="net_name_slot_end"
SUBSYSTEM!="net", GOTO="net_name_slot_end"
NAME!="", GOTO="net_name_slot_end"

IMPORT{cmdline}="net.ifnames"
ENV{net.ifnames}=="0", GOTO="net_name_slot_end"

NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"

LABEL="net_name_slot_end"


If this rule is shadowed by a custom rule in /etc/udev/rules.d, then 
obviously net.ifnames=0 has no effect. But the custom rules should take
care of it. You didn't have any custom rules, so net.ifnames worked as
expected. I removed all my custom rules in /etc/udev/rules.d. DEVICE=eth0 was
what I was missing though.



More information about the users mailing list