{"id":5989,"date":"2016-07-07T16:16:12","date_gmt":"2016-07-07T08:16:12","guid":{"rendered":"http:\/\/rmohan.com\/?p=5989"},"modified":"2016-07-07T16:16:33","modified_gmt":"2016-07-07T08:16:33","slug":"centos-7-change-network-interface-name-from-eno-to-eth0","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5989","title":{"rendered":"CentOS 7 Change Network Interface Name From Eno* To Eth0"},"content":{"rendered":"<p><strong>CentOS 7 Change Network Interface Name From Eno* To Eth0<\/strong><\/p>\n<p>After you installed CentOS 7.0 or RHEL 7.0 system, you maybe notice that the default name of network interface was changed from \u201cEth*\u201d to \u201cEno*\u201d. How do I change network interface name to \u201cEth0? in CentOS 7.0? This post will show you the ways to change network interface.<br \/>\nCentOS 7 Change Network Interface Name<br \/>\nStep1# issue the ifconfig command to check the current network interface information, type:<br \/>\n# yum install net-tools<\/p>\n<p>[root@localhost Desktop]$sudo ifconfig<br \/>\neno16777736: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500<br \/>\ninet 192.168.42.129  netmask 255.255.255.0  broadcast 192.168.42.255<br \/>\ninet6 fe80::20c:29ff:fec7:25ae  prefixlen 64  scopeid 0x20&lt;link&gt;<br \/>\nether 00:0c:29:c7:25:ae  txqueuelen 1000  (Ethernet)<br \/>\nRX packets 200948  bytes 253071365 (241.3 MiB)<br \/>\nRX errors 0  dropped 0  overruns 0  frame 0<br \/>\nTX packets 56043  bytes 3420351 (3.2 MiB)<br \/>\nTX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br \/>\nStep2# edit \u201c\/etc\/sysconfig\/grub\u201d configuration file using \u201cvim\u201d command:<br \/>\nbefore:<\/p>\n<p>[root@localhost Desktop]$sudo vim \/etc\/sysconfig\/grub<br \/>\nGRUB_DEFAULT=saved<br \/>\nGRUB_DISABLE_SUBMENU=true<br \/>\nGRUB_TERMINAL_OUTPUT=&#8221;console&#8221;<br \/>\nGRUB_CMDLINE_LINUX=&#8221;rd.lvm.lv=centos\/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos\/root crashkernel=auto  vconsole.keymap=us rhgb quiet&#8221;<br \/>\nGRUB_DISABLE_RECOVERY=&#8221;true&#8221;<br \/>\nthen searching for \u201cGRUB_CMDLINE_LINUX\u201d line  and appending the following content \u201cnet.ifnames=0 biosdevname=0\u201c, just like the below:<br \/>\n1<br \/>\nGRUB_CMDLINE_LINUX=&#8221;rd.lvm.lv=centos\/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos\/root crashkernel=auto  vconsole.keymap=us rhgb quiet net.ifnames=0 biosdevname=0&#8243;<br \/>\nStep3# Using \u201cgrub2-mkconfig\u201d command to re-generate a new grub configuration file, type:<\/p>\n<p>[root@localhost Desktop]$sudo grub2-mkconfig  -o \/boot\/grub2\/grub.cfg<br \/>\nGenerating grub configuration file &#8230;<br \/>\nFound linux image: \/boot\/vmlinuz-3.10.0-123.el7.x86_64<br \/>\nFound initrd image: \/boot\/initramfs-3.10.0-123.el7.x86_64.img<br \/>\nWarning: Please don&#8217;t use old title `CentOS Linux, with Linux 3.10.0-123.el7.x86_64&#8242; for GRUB_DEFAULT, use `Advanced options for CentOS Linux CentOS Linux, with Linux 3.10.0-123.el7.x86_64&#8242; (for versions before 2.00) or `gnulinux-advanced-dbedd8fa-5d86-4ea0-8551-8444a48cd44f nulinux-3.10.0-123.el7.x86_64-advanced-dbedd8fa-5d86-4ea0-8551-8444a48cd44f&#8217; (for 2.00 or later)<br \/>\nFound linux image: \/boot\/vmlinuz-0-rescue-3303e35a730a41e3b4e99b544acea205<br \/>\nFound initrd image: \/boot\/initramfs-0-rescue-3303e35a730a41e3b4e99b544acea205.img<br \/>\ndone<br \/>\nStep4#   Rename \u201cEno\u201d network file using \u201dmv\u201d command, type:<\/p>\n<p>$sudo mv \/etc\/sysconfig\/network-scripts\/ifcfg-eno16777736  \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n<p>Step5# Edit \u201c\/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \u201d configuration file and set the value of \u201cName\u201d field to \u201ceth0?.<\/p>\n<p># vim \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\nTYPE=Ethernet<br \/>\nBOOTPROTO=dhcp<br \/>\nDEFROUTE=yes<br \/>\nIPV4_FAILURE_FATAL=no<br \/>\nIPV6INIT=yes<br \/>\nIPV6_AUTOCONF=yes<br \/>\nIPV6_DEFROUTE=yes<br \/>\nIPV6_FAILURE_FATAL=no<br \/>\n<strong>NAME=eth0<\/strong><br \/>\nUUID=5ae10208-855b-41af-99e7-0673d3792d15<br \/>\nONBOOT=yes<br \/>\nHWADDR=00:0C:29:C7:25:AE<br \/>\nPEERDNS=yes<br \/>\nPEERROUTES=yes<br \/>\nIPV6_PEERDNS=yes<br \/>\nIPV6_PEERROUTES=yes<br \/>\n?<br \/>\nStep6# reboot system, after rebooting system, using \u201cifconfig\u201d command check network interface information again.<\/p>\n<p>[root@localhost Desktop]# ifconfig<br \/>\neth0: flags=4163 UP,BROADCAST,RUNNING,MULTICAST  mtu 1500<br \/>\ninet 192.168.42.129  netmask 255.255.255.0  broadcast 192.168.42.255<br \/>\ninet6 fe80::20c:29ff:fec7:25ae  prefixlen 64  scopeid 0x20<br \/>\nether 00:0c:29:c7:25:ae  txqueuelen 1000  (Ethernet)<br \/>\nRX packets 49  bytes 5285 (5.1 KiB)<br \/>\nRX errors 0  dropped 0  overruns 0  frame 0<br \/>\nTX packets 76  bytes 8540 (8.3 KiB)<br \/>\nTX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<br \/>\ndone\u2026.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7 Change Network Interface Name From Eno* To Eth0<\/p>\n<p>After you installed CentOS 7.0 or RHEL 7.0 system, you maybe notice that the default name of network interface was changed from \u201cEth*\u201d to \u201cEno*\u201d. How do I change network interface name to \u201cEth0? in CentOS 7.0? This post will show you the ways to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5989"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5989"}],"version-history":[{"count":3,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5989\/revisions"}],"predecessor-version":[{"id":5992,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5989\/revisions\/5992"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}