+9 votes
602 views
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: 

 

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.

Categories

...