VMware clone Linux prompt eth0 can not find what to do?

  

We all know that VMware is a virtual machine that can load a variety of systems, but when VMware clones Linux, it can not find eth0, many people do not know how to deal with it, the following small series will introduce you to VMware Cloning Linux hints that eth0 could not find a solution.

occurrence: when

Use ifconfig command to change to modify the virtual machine ip address, suggesting eth0 not found. Modify the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0 directly, and it will be useless after restarting the system.

After looking at ifconfig, I found that there is no eth0, only eth2. So when creating a virtual machine, I recreated a network card. When the system finds that the network card is not unified with the system configuration, a new network interface is re-created.

Solution: Configure eth0 back

Modify /etc/udev/rules.d/70-persistent-net.rules file

The PCI device 0x1022: 0x2000 ( Vmxnet) Use the # comment to change eth2 in PCI device 0x1022:0x2000 (vmxnet) to eth0, remember MAC address ATTR{address}==“00:0c:29:ab:c5:2c”, exit saving.

Modify the NIC configuration file /etc/sysconfig/network-scripts/ifcfg-eth0

Modify the ip address: IPADDR=192.168.0.102 (because I only use the host-only link method, so Is static ip), modify the MAC address HWADDR=00:0C:29:AB:C5:2c, exit the save.

Modify /etc /sysconfig /network file hostname HOSTNAME = hadoop2

execute the command: service network restart, message eth0 entry into force of will.

Bringing up interface eth0: Active connection state: activating

Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1

state: activated

Connection activated

It is best to reboot and reboot.

[root@hadoop2 ~]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:AB:C5:2C

inet addr:192.168.0.102 Bcast :192.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::20c:29ff:feab:c52c/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1< Br>

RX packets:177 errors:0 dropped:0 overruns:0 frame:0

TX packets:61 errors:0 dropped:0 overruns:0 carrier:0

collisions :0 txqueuelen:1000

RX bytes:17634 (17.2 KiB) TX bytes:7611 (7.4 KiB)

Interrupt:19 Base address:0x2024

The above is VMware clone Linux prompts eth0 can not find a solution to the solution, if you have encountered this problem, you can install the method described in this article for processing, I hope to help you.

Copyright © Windows knowledge All Rights Reserved