{"id":6335,"date":"2016-10-12T15:53:01","date_gmt":"2016-10-12T07:53:01","guid":{"rendered":"http:\/\/rmohan.com\/?p=6335"},"modified":"2016-10-12T15:53:01","modified_gmt":"2016-10-12T07:53:01","slug":"centos-7-0-change-the-default-enxx-network-device-to-old-eth0-on-centos-7","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6335","title":{"rendered":"[CentOS 7.0] Change the default \u201cenxx\u201d network device to old \u201ceth0\u201d on CentOS 7"},"content":{"rendered":"<h3 class=\"post-title entry-title\">[CentOS 7.0] Change the default \u201cenxx\u201d network device to old \u201ceth0\u201d on CentOS 7<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-722741708509810488\" class=\"post-body entry-content\">The easiest way to restore the old way Kernel\/modules\/udev rename your ethernet interfaces is supplying these kernel parameters to CentOS 7:<\/p>\n<p>net.ifnames=0<br \/>\nbiosdevname=0<\/p>\n<p>To do so follow this steps:<\/p>\n<p>Edit \/etc\/default\/grub<br \/>\nAt the end of GRUB_CMDLINE_LINUX line append &#8220;net.ifnames=0 biosdevname=0&#8221;<br \/>\nSave the file<br \/>\nType &#8220;grub2-mkconfig -o \/boot\/grub2\/grub.cfg&#8221;<br \/>\nType &#8220;reboot&#8221;<\/p>\n<p>If you didn&#8217;t supply these parameters during the installation, you will probably need to adjust and\/or rename interface files at \/etc\/sysconfig\/network-scripts\/ifcfg-*.<\/p>\n<p>Up to Fedora 18, just biosdevname=0 was enough.<\/p>\n<p>As an example, in a certain machine, in a exhaustive research, I got:<\/p>\n<p>-No parameters: NIC identified as &#8220;enp5s2&#8221;.<br \/>\n-Parameter biosdevname=0: NIC identified as &#8220;enp5s2&#8221;.<br \/>\n-Parameter net.ifnames=0: NIC identified as &#8220;em1&#8221;.<br \/>\n-Parameter net.ifnames=0 AND biosdevname=0: NIC identified as &#8220;eth0&#8221;.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>[CentOS 7.0] Change the default \u201cenxx\u201d network device to old \u201ceth0\u201d on CentOS 7 The easiest way to restore the old way Kernel\/modules\/udev rename your ethernet interfaces is supplying these kernel parameters to CentOS 7:<\/p>\n<p>net.ifnames=0 biosdevname=0<\/p>\n<p>To do so follow this steps:<\/p>\n<p>Edit \/etc\/default\/grub At the end of GRUB_CMDLINE_LINUX line append &#8220;net.ifnames=0 biosdevname=0&#8221; Save [&#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\/6335"}],"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=6335"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6335\/revisions"}],"predecessor-version":[{"id":6336,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6335\/revisions\/6336"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}