{"id":1499,"date":"2014-03-05T09:34:47","date_gmt":"2014-03-05T14:34:47","guid":{"rendered":"https:\/\/infotechguy.net\/?p=1499"},"modified":"2025-02-22T11:31:51","modified_gmt":"2025-02-22T16:31:51","slug":"reset-ethx-naming-for-ubuntudebian","status":"publish","type":"post","link":"https:\/\/infotechguy.net\/?p=1499","title":{"rendered":"Linux &#8212; Reset ethX naming for Ubuntu\/Debian"},"content":{"rendered":"<p>I stumbled across this issue a long time ago and it is still present today. Adding or removing NIC&#8217;s from a Linux box, or even replacing them renumbers or messes with the numbering for each NIC. For example if you have 1 NIC and add a second, sometimes it won&#8217;t show up as <strong>eth0<\/strong> and <strong>eth1<\/strong>, it will show up as <strong>eth0<\/strong> and <strong>rename1<\/strong>. Or even sometimes, your original eth0 will be renamed to <strong>rename1<\/strong> and the new NIC will be named <strong>eth0<\/strong> when added. Yikes! Talk about confusion.<\/p>\n<p>It appears that this naming information is stored in a file located in\u00a0\u00a0<b>\/etc\/udev\/rules.d\/70-persistent-net.rules<\/b><\/p>\n<p>So if you want to reset the numbering completely, delete this file and reboot! Now you have clean <strong>eth#<\/strong> numbering again!<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rm \/etc\/udev\/rules.d\/70-persistent-net.rules \nreboot<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>NOTE:<\/strong> <em>You can also manipulate and edit this file rather than deleting it.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I stumbled across this issue a long time ago and it is still present today. Adding or removing NIC&#8217;s from a Linux box, or even replacing them renumbers or messes with the numbering for each&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":4240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[111],"class_list":["post-1499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-scripting"],"_links":{"self":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/1499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1499"}],"version-history":[{"count":1,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions"}],"predecessor-version":[{"id":4158,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions\/4158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=\/wp\/v2\/media\/4240"}],"wp:attachment":[{"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infotechguy.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}