{"id":131,"date":"2018-12-08T19:20:34","date_gmt":"2018-12-09T02:20:34","guid":{"rendered":"https:\/\/angrysysadmins.tech\/?p=131"},"modified":"2019-02-11T23:54:52","modified_gmt":"2019-02-12T07:54:52","slug":"gentoo-disable-network-adapter-naming","status":"publish","type":"post","link":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/","title":{"rendered":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming"},"content":{"rendered":"\n<p>You have probably noticed that network adapters in Linux now follow a naming convention of &#8220;enpXsY&#8221; or &#8220;wlpXsY&#8221; instead of &#8220;ethX&#8221; and &#8220;wlanX&#8221;. This is generally fine and doesn&#8217;t cause much issue. The one downside to the change is that Gentoo and Linux From Scratch VMs running on VMware will have ridiculous names like &#8220;eno16777728&#8221;. I haven&#8217;t noticed that on any other flavors, which is why I specified Gentoo in the title, but this fix should work for any distro as long as it boots from GRUB.<br><br>Simply run the following two commands and reboot and your network adapter should be named &#8216;eth0&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'GRUB_CMDLINE_LINUX=\"net.ifnames=0\"' >> \/etc\/default\/grub<br>grub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n\n\n\n<p>We could achieve the same result by adding &#8216;net.ifnames=0&#8217; to \/etc\/grub.d\/10_linux, on the line where the actual boot command is set. It&#8217;s around line 136ish and looks somewhat like the following:<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">linux   ${rel_dirname}\/${basename} root=${linux_root_device_thisversion} rw ${args}<\/pre>\n\n\n\n<p>If you insert the text between rw (sometimes ro) and ${args}, the result should be the same. But doing it that way sketches me out and could potentially lead to problems later on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have probably noticed that network adapters in Linux now follow a naming convention of &#8220;enpXsY&#8221; or &#8220;wlpXsY&#8221; instead of &#8220;ethX&#8221; and &#8220;wlanX&#8221;. This is generally fine and doesn&#8217;t cause much issue. The one downside to the change is that Gentoo and Linux From Scratch VMs running on VMware will have ridiculous names like &#8220;eno16777728&#8221;. <br \/><a class=\"read-more-button\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,51,10,8,11],"tags":[12,48,14,52],"coauthors":[37],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-grub","category-kernel","category-linux","category-vmware","tag-gentoo","tag-grub","tag-vmware","tag-vsphere"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gentoo: Disable Predictable\/Consistent Network Adapter Naming - Angry Sysadmins<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gentoo: Disable Predictable\/Consistent Network Adapter Naming - Angry Sysadmins\" \/>\n<meta property=\"og:description\" content=\"You have probably noticed that network adapters in Linux now follow a naming convention of &#8220;enpXsY&#8221; or &#8220;wlpXsY&#8221; instead of &#8220;ethX&#8221; and &#8220;wlanX&#8221;. This is generally fine and doesn&#8217;t cause much issue. The one downside to the change is that Gentoo and Linux From Scratch VMs running on VMware will have ridiculous names like &#8220;eno16777728&#8221;. Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/\" \/>\n<meta property=\"og:site_name\" content=\"Angry Sysadmins\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-09T02:20:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-12T07:54:52+00:00\" \/>\n<meta name=\"author\" content=\"Cat Kasin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cat Kasin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/\"},\"author\":{\"name\":\"Cat Kasin\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"headline\":\"Gentoo: Disable Predictable\\\/Consistent Network Adapter Naming\",\"datePublished\":\"2018-12-09T02:20:34+00:00\",\"dateModified\":\"2019-02-12T07:54:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/\"},\"wordCount\":181,\"commentCount\":0,\"keywords\":[\"Gentoo\",\"GRUB\",\"VMware\",\"vSphere\"],\"articleSection\":[\"Gentoo\",\"GRUB\",\"Kernel\",\"Linux\",\"VMware\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/\",\"name\":\"Gentoo: Disable Predictable\\\/Consistent Network Adapter Naming - Angry Sysadmins\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\"},\"datePublished\":\"2018-12-09T02:20:34+00:00\",\"dateModified\":\"2019-02-12T07:54:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/2018\\\/12\\\/bailey\\\/gentoo-disable-network-adapter-naming\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/angrysysadmins.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gentoo: Disable Predictable\\\/Consistent Network Adapter Naming\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#website\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/\",\"name\":\"Angry Sysadmins\",\"description\":\"A site full of angry sysadmins here to vent and help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/angrysysadmins.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/angrysysadmins.tech\\\/#\\\/schema\\\/person\\\/151b2d23439b55b970060836f317a14d\",\"name\":\"Cat Kasin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g\",\"caption\":\"Cat Kasin\"},\"description\":\"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.\",\"url\":\"https:\\\/\\\/angrysysadmins.tech\\\/index.php\\\/author\\\/bailey\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming - Angry Sysadmins","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/","og_locale":"en_US","og_type":"article","og_title":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming - Angry Sysadmins","og_description":"You have probably noticed that network adapters in Linux now follow a naming convention of &#8220;enpXsY&#8221; or &#8220;wlpXsY&#8221; instead of &#8220;ethX&#8221; and &#8220;wlanX&#8221;. This is generally fine and doesn&#8217;t cause much issue. The one downside to the change is that Gentoo and Linux From Scratch VMs running on VMware will have ridiculous names like &#8220;eno16777728&#8221;. Read More &raquo;","og_url":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/","og_site_name":"Angry Sysadmins","article_published_time":"2018-12-09T02:20:34+00:00","article_modified_time":"2019-02-12T07:54:52+00:00","author":"Cat Kasin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Cat Kasin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/#article","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/"},"author":{"name":"Cat Kasin","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"headline":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming","datePublished":"2018-12-09T02:20:34+00:00","dateModified":"2019-02-12T07:54:52+00:00","mainEntityOfPage":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/"},"wordCount":181,"commentCount":0,"keywords":["Gentoo","GRUB","VMware","vSphere"],"articleSection":["Gentoo","GRUB","Kernel","Linux","VMware"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/","url":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/","name":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming - Angry Sysadmins","isPartOf":{"@id":"https:\/\/angrysysadmins.tech\/#website"},"datePublished":"2018-12-09T02:20:34+00:00","dateModified":"2019-02-12T07:54:52+00:00","author":{"@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d"},"breadcrumb":{"@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/angrysysadmins.tech\/index.php\/2018\/12\/bailey\/gentoo-disable-network-adapter-naming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/angrysysadmins.tech\/"},{"@type":"ListItem","position":2,"name":"Gentoo: Disable Predictable\/Consistent Network Adapter Naming"}]},{"@type":"WebSite","@id":"https:\/\/angrysysadmins.tech\/#website","url":"https:\/\/angrysysadmins.tech\/","name":"Angry Sysadmins","description":"A site full of angry sysadmins here to vent and help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/angrysysadmins.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/angrysysadmins.tech\/#\/schema\/person\/151b2d23439b55b970060836f317a14d","name":"Cat Kasin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g23b0ffb86dd6c08514a66a6a50f7a0a9","url":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e83bfa1b7d9ce082bd6b68938f580039db8d5571ad6c5d012e6a5243a189309e?s=96&d=mm&r=g","caption":"Cat Kasin"},"description":"I build virtual environments and challenges for Cybersecurity students to complete as a way to gain experience before graduating and entering the workforce.","url":"https:\/\/angrysysadmins.tech\/index.php\/author\/bailey\/"}]}},"_links":{"self":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":7,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/tags?post=131"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/angrysysadmins.tech\/index.php\/wp-json\/wp\/v2\/coauthors?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}