Red Hat Enterprise 7 is based on CentOS 7 and upstream of kernel 3.10
Ever wanted to change back to the default network device name like „ethX“
This is based on VMware installation i have the default nic name as“ifcfg-enp13s0″
enp13s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.33 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::230:48ff:fef9:9f38 prefixlen 64 scopeid 0x20 ether 00:30:48:f9:9f:38 txqueuelen 1000 (Ethernet)
RX packets 668 bytes 121667 (118.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 807 bytes 102801 (100.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xd0200000-d0220000
enp15s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:30:48:f9:9f:39 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17 memory 0xd0300000-d0320000
Look for this line “GRUB_CMDLINE_LINUX” and add the following: “net.ifnames=0 biosdevname=0″
Should look like this:
GRUB_CMDLINE_LINUX=”rd.lvm.lv=rootvg/usrlv rd.lvm.lv=rootvg/swaplv crashkernel=auto vconsole.keymap=us rd.lvm.lv=rootvg/rootlv vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0“
If you didn’t put any names during the installation, you will need to rename the interface files by renaming the file /etc/sysconfig/network-scripts/ifcfg-*.
run the comand :
Neprext reboot
After system reboot
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.33 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::230:48ff:fef9:9f38 prefixlen 64 scopeid 0x20 ether 00:30:48:f9:9f:38 txqueuelen 1000 (Ethernet)
RX packets 724 bytes 126780 (123.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 849 bytes 110115 (107.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xd0200000-d0220000
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:30:48:f9:9f:39 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17 memory 0xd0300000-d0320000
Прочетете още :
How to install ownCloud – Cloud
How to install VideoLan on Fredora, CentOS and Red Het