{"id":6337,"date":"2016-10-12T15:53:29","date_gmt":"2016-10-12T07:53:29","guid":{"rendered":"http:\/\/rmohan.com\/?p=6337"},"modified":"2016-10-12T15:53:29","modified_gmt":"2016-10-12T07:53:29","slug":"centos-7-0-change-network-interface-name-eno-to-eth0","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6337","title":{"rendered":"[CentOS 7.0] Change network interface name (eno* to eth0)"},"content":{"rendered":"<h3 class=\"post-title entry-title\">[CentOS 7.0] Change network interface name (eno* to eth0)<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-6660755021612033221\" class=\"post-body entry-content\">Step1)<br \/>\n# vim \/etc\/udev\/rules.d\/70-persistent-net.rules<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n# PCI device 0x14e4:0x1680 (tg3)<br \/>\nSUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;<b>00:0c:29:7b:d8:06<\/b>&#8220;, ATTR{dev_id}==&#8221;0x0&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;<b>eno16777736<\/b>&#8220;, NAME=&#8221;<b>eth0<\/b>&#8221;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nor<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n# PCI device 0x14e4:0x1680 (tg3)<br \/>\nSUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;<b>00:0c:29:7b:d8:06<\/b>&#8220;, ATTR{dev_id}==&#8221;0x0&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;<b>eno*<\/b>&#8220;, NAME=&#8221;<b>eth0<\/b>&#8221;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nStep2)<br \/>\n# mv \/etc\/sysconfig\/network-scripts\/ifcfg-eno16777736 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n<p>Step3)<br \/>\n# vim \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nHWADDR=&#8221;00:0C:29:7B:D8:06&#8243;<br \/>\nTYPE=&#8221;Ethernet&#8221;<br \/>\nBOOTPROTO=&#8221;dhcp&#8221;<br \/>\nDEFROUTE=&#8221;yes&#8221;<br \/>\nPEERDNS=&#8221;yes&#8221;<br \/>\nPEERROUTES=&#8221;yes&#8221;<br \/>\nIPV4_FAILURE_FATAL=&#8221;no&#8221;<br \/>\nIPV6INIT=&#8221;yes&#8221;<br \/>\nIPV6_AUTOCONF=&#8221;yes&#8221;<br \/>\nIPV6_DEFROUTE=&#8221;yes&#8221;<br \/>\nIPV6_PEERDNS=&#8221;yes&#8221;<br \/>\nIPV6_PEERROUTES=&#8221;yes&#8221;<br \/>\nIPV6_FAILURE_FATAL=&#8221;no&#8221;<br \/>\n<b>NAME=&#8221;eth0&#8243;<\/b><br \/>\nUUID=&#8221;2aa76b48-487b-425e-a021-ace79c0773cd&#8221;<br \/>\nONBOOT=&#8221;yes&#8221;<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Step4)<br \/>\n# reboot<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>[CentOS 7.0] Change network interface name (eno* to eth0) Step1) # vim \/etc\/udev\/rules.d\/70-persistent-net.rules &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;00:0c:29:7b:d8:06&#8220;, ATTR{dev_id}==&#8221;0x0&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eno16777736&#8220;, NAME=&#8221;eth0&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; or &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; # PCI device 0x14e4:0x1680 (tg3) SUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;00:0c:29:7b:d8:06&#8220;, ATTR{dev_id}==&#8221;0x0&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eno*&#8220;, NAME=&#8221;eth0&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Step2) # mv \/etc\/sysconfig\/network-scripts\/ifcfg-eno16777736 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n<p>Step3) # vim \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; HWADDR=&#8221;00:0C:29:7B:D8:06&#8243; [&#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\/6337"}],"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=6337"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6337\/revisions"}],"predecessor-version":[{"id":6338,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6337\/revisions\/6338"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}