Eth0 does not work on Linux CentOS when cloning in ESXi

0 votes
asked Mar 14, 2015 in Linux by wikiandroid (10,110 points)
I created a Linux CentOS 6.5 virtual machine from a template in VMware ESXi, the machine boots fine with Linux CentOS but can not get the network to work. In the folder: / etc / sysconfig / network-scripts the ifcfg-eth0 file appears with the network configuration template, but does not work. What may be due?

1 Answer

0 votes
answered Mar 14, 2015 by wikianswers (8,540 points)

The error you described is usually because they have changed the MAC network card to make cloning the virtual machine. To solve it follow these steps: 1. Access the properties of the virtual machine from VMware vSphere Client and record the MAC network card assigned to the virtual machine. 2. Edit IFCG-eth0 file with vi: 



vi etc / sysconfig / network-scripts / ifcfg-eth0 

Press "a" to enter edit mode. In parameter HWADDR enter the MAC previously wrote down, save the changes by pressing Escape and ": wq" and ENTER. 3. Starts network: 


ifconfig eth0 up 

and test the connection. An example of ifcfg-eth0 file in CentOS might ser: DEVICE=eth0 HWADDR=00:00:00:00:00:00 BOOTPROTO=none ONBOOT=yes NETWORK= NETMASK= IPADDR= USERCTL=no