{"id":1690,"date":"2013-08-01T10:45:27","date_gmt":"2013-08-01T10:45:27","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1690"},"modified":"2013-08-01T10:45:46","modified_gmt":"2013-08-01T10:45:46","slug":"change-network-device-name-from-eth1-back-to-eth0-in-centos-6","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1690","title":{"rendered":"Change Network Device Name From Eth1 Back To Eth0 in Centos 6"},"content":{"rendered":"<p>The interface name of a network device increases if the mac address of the physical or virtual network card changes. A common case is if you made a clone of a virtual machine for example via VMware or KVM or replaced a physical network card in a non virtualized server.<\/p>\n<div>\n<p>If it\u2019s a CentOS 6 machine you need to change 2 files to rename the interface for example from eth1 back to eth0.<\/p>\n<p>One file is the udev rule for network devices which is located here:<\/p>\n<blockquote><p>\/etc\/udev\/rules.d\/70-persistent-net.rules<\/p><\/blockquote>\n<p>Copy the new mac address to the line of your eth0 rule and delete the new rule for eth1.<\/p>\n<blockquote><p># PCI device 0x15ad:0x07b0 (vmxnet3)<br \/>\nSUBSYSTEM==\u201dnet\u201d, ACTION==\u201dadd\u201d, DRIVERS==\u201d?*\u201d, ATTR{address}==\u201d00:50:56:b2:23:e0\u2033, ATTR{type}==\u201d1\u2033, KERNEL==\u201deth*\u201d, NAME=\u201deth0\u2033<\/p><\/blockquote>\n<p>Modify the network configuration located under:<\/p>\n<blockquote><p>\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p><\/blockquote>\n<p>and replace the old ip with the new one and the old mac address with the new mac address.<\/p>\n<p>To be sure everything works fine reboot your machine.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The interface name of a network device increases if the mac address of the physical or virtual network card changes. A common [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1690","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1690"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1690\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}