fedora 20

Fedora installation are starting with strange interface name.
Interface name have strange name – “eno…“, “p4p1“, “eno33“… or something like that?

How to set it to “normal” eth0 name?


001. Let’s check current interface name?

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 inet 127.0.0.1/8 scope host lo
 valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 link/ether 00:0c:29:d6:9b:6e brd ff:ff:ff:ff:ff:ff
 inet 192.168.0.190/24 brd 192.168.0.255 scope global eno16777736
 valid_lft forever preferred_lft forever

eno…? What is this? Let’s rename it to “eth0”:


002. Create file like this to change interface name back to eth0:

# vi /etc/udev/rules.d/99-rename-to-eth0.rules

paste inside – chance (marked with red color) hardware adress with Your own:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d6:9b:6e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

003. Next – change interface name inside network config
(you can also rename ifcfg-eno…. to eth0. Rename of filename is not need but better if you do this…).

vi /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="eth0"
UUID="70870893-fdfa-4346-be08-b26a20d8f294"
ONBOOT="yes"
HWADDR="00:0C:29:51:A7:43"
PEERDNS="yes"
PEERROUTES="yes"

 


 

004. After reboot th0 is back:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 inet 127.0.0.1/8 scope host lo
 valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
 link/ether 00:0c:29:d6:9b:6e brd ff:ff:ff:ff:ff:ff
 inet 192.168.0.190/24 brd 192.168.0.255 scope global eth0
 valid_lft forever preferred_lft forever