+9 votes
in Linux by (11.7k 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

+10 votes
by (10.4k 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

Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.