Eth0 does not work on Linux CentOS when cloning in ESXi

0 votes
318 views
asked Mar 14, 2015 in Linux by wikiandroid (10,550 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: 

 

Code:

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: 

Code:

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=192.168.1.0 NETMASK=255.255.255.0 IPADDR=192.168.1.150 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.
...