{"id":554,"date":"2013-10-03T11:20:21","date_gmt":"2013-10-03T04:20:21","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=554"},"modified":"2017-08-10T09:31:43","modified_gmt":"2017-08-10T02:31:43","slug":"vmware-image-clone-problem-eth0-renamed-as-eth1","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2013\/10\/03\/vmware-image-clone-problem-eth0-renamed-as-eth1\/","title":{"rendered":"VMware Image Clone Problem: eth0 Renamed As eth1"},"content":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f VMware \u043c\u0430\u0448\u0438\u043d\u044b eth0 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 eth1 \u0438.\u0442.\u0434. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f &#8211; \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 MAC-\u0430\u0434\u0440\u0435\u0441\u0430.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c:<br \/>\n\/etc\/udev\/rules.d\/70-persistent-net.rules<\/p>\n<p>vi \/etc\/udev\/rules.d\/70-persistent-net.rules:<br \/>\nSUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;11:22:33:44:55:66&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eth*&#8221;, NAME=&#8221;eth1&#8243;<\/p>\n<p># PCI device 0x15ad:0x07b0 (vmxnet3)<br \/>\nSUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;11:22:33:44:55:66&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eth*&#8221;, NAME=&#8221;eth0&#8243;<br \/>\n\u041f\u043e\u043c\u0435\u043d\u044f\u043b \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e NAME (NAME=&#8221;eth0&#8243; -&gt; NAME=&#8221;eth1&#8243; \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 NAME=&#8221;eth1&#8243; -&gt; NAME=&#8221;eth0&#8243; \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e) \u0443 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c MAC-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0:<br \/>\nHWADDR=12:34:56:67:78:89<\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c MAC \u0443 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d &#8220;\u043e\u043f\u0443\u0449\u0435\u043d&#8221;:<br \/>\nipconfig -a<\/p>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<br \/>\nservice network restart<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<br \/>\n\/sbin\/ifconfig -a<br \/>\nroute -n \u0438\u043b\u0438 netstat -rn<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0438:<br \/>\n<a href=\"http:\/\/www.cyberciti.biz\/tips\/vmware-linux-lost-eth0-after-cloning-image.html\">http:\/\/www.cyberciti.biz\/tips\/vmware-linux-lost-eth0-after-cloning-image.html<\/a><br \/>\n<a href=\"http:\/\/www.banym.de\/linux\/centos\/change-network-device-name-from-eth1-back-to-eth0\">http:\/\/www.banym.de\/linux\/centos\/change-network-device-name-from-eth1-back-to-eth0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f VMware \u043c\u0430\u0448\u0438\u043d\u044b eth0 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 eth1 \u0438.\u0442.\u0434. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f &#8211; \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 MAC-\u0430\u0434\u0440\u0435\u0441\u0430. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c: \/etc\/udev\/rules.d\/70-persistent-net.rules vi \/etc\/udev\/rules.d\/70-persistent-net.rules: SUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;11:22:33:44:55:66&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eth*&#8221;, NAME=&#8221;eth1&#8243; # PCI device 0x15ad:0x07b0 (vmxnet3) SUBSYSTEM==&#8221;net&#8221;, ACTION==&#8221;add&#8221;, DRIVERS==&#8221;?*&#8221;, ATTR{address}==&#8221;11:22:33:44:55:66&#8243;, ATTR{type}==&#8221;1&#8243;, KERNEL==&#8221;eth*&#8221;, NAME=&#8221;eth0&#8243; \u041f\u043e\u043c\u0435\u043d\u044f\u043b \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e NAME (NAME=&#8221;eth0&#8243; -&gt; NAME=&#8221;eth1&#8243; \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 NAME=&#8221;eth1&#8243; -&gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[32,86,28,182,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/554"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":2,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":556,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/554\/revisions\/556"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}