HI
I installed new CentOS 6.4 on my system . and when i tried to set a static IP address. I noticed the NIC name has changed to something else. for example i was looking out for eth0 but there wasn’t.
Also when I add new NIC to my virtual machine on ESXi Also i have same problem .
Next, rename the current network interface name from eth3 to eth0 as shown.
# cd etc/sysconfig/network-scripts/
# mv ifcfg-eth3 ifcfg-eth0
Now open and edit the file ‘ifcfg-eth0’ and change change the mac address and interface name to eth0.
# vi ifcfg-eth0
After making network changes, don’t forget to restart the network to take new configuration into effect and check the ip address again with ifconfig command.
Hi dears,
thanks for your quick answer.
can you explain more about this file , i mean 70-persistent-net.rules ?
and when this rule execute ?
Also i’ve add new NIC to my virtual machine. but there weren’t any ifcfg-ethx in /etc/sysconfig/network-script. shall i add same line as below in this (70-persistent-net.rule) file ?
I think this file holds the system network related configuration and it executes when system boots up…First check your new NIC is detected by using following command.
# lspci | egrep -i --color 'network|ethernet'
After detecting you can add the below rule to the file and don’t forget to change MAC and name of the Ethernet…