Pages

Tuesday, October 6, 2015

Static IP is not coming up in Vmware after restoring from backup



Network is not working in VM ware . After the reboot guest OS is up but not able to access in network




Steps to Debug

1. Get the mac address from Virtual Box console , by clicking on settings and Network

2. Make sure that “Brigded” is selected

3. In Guest OS try these  steps

4. Verify the mac address by running

ifconfig and grep hardware

ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:5A:29:A5
inet addr:IP Bcast:IP Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:718 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:57933 (56.5 KiB) TX bytes:3516 (3.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1882 (1.8 KiB) TX bytes:1882 (1.8 KiB)

Here mac address is 00:0C:29:5A:29:A5

ifconfig | grep Hwaddr
eth0 Link encap:Ethernet HWaddr 00:0C:29:5A:29:A5


it should match with step 1

if mac  address is not matching then follow step 10 .



5. Search in  dmesg for  etho

[root@OS ~]# dmesg|grep eth0
e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:5a:29:a5
e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

it should match mac from step 1

6.Try with disabling Ipv6

to disable Ipv6 edit : /etc/sysctl.conf and add net.ipv6.conf.all.disable_ipv6 = 1



7. Set NM_CONTROLLED=no in /etc/sysconfig/networking-script/if-eth0

8. Copy /etc/sysconfig/networking-script/if-eth0 to
             /etc/sysconfig/networking/devices/ifcfg-eth0

9.After restarting , issue resolved



Step 10 :
If mac address is not matching with VM IP and  ifconfig | grep Hwaddr

Change using below steps
 

  
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:0C:29:5A:29:A5 
# ifconfig eth0 up
# ifconfig eth0 |grep 
 
Details : http://www.aboutlinux.info/2005/09/how-to-change-mac-address-of-your.html 







No comments:

Post a Comment