重装了XP系统,重新安装了vmware,由于之前的配置的linux虚拟机文件并没有删除,所以想通过导入虚拟机文件来继续使用。
导入好后,发现通过ifconfig 命令查看IP地址时,eth0的IP是空的
[img]http://dl.iteye.com/upload/attachment/181773/28aa3988-12a0-3571-b3a5-a83f14ed6b81.jpg[/img]
通过etc/sysconfig
# cd network-scripts
# ls
ifcfg-eth0 ifdown-aliases ifdown-ipv6 ifdown-ppp ifup ifup-ipsec ifup-isdn ifup-post ifup-sit init.ipv6-global
ifcfg-lo ifdown-ippp ifdown-isdn ifdown-sit ifup-aliases ifup-ipv6 ifup-plip ifup-ppp ifup-sl network-functions
ifdown ifdown-ipsec ifdown-post ifdown-sl ifup-ippp ifup-ipx ifup-plusb ifup-routes ifup-wireless network-functions-ipv6
发现IP是配过的
[img]http://dl.iteye.com/upload/attachment/181768/5f419f94-afbc-3321-9733-d257f86a2a08.jpg[/img]
为什么ping 自己也ping不通呢?
最后通过比较发现是HWaddr 有问题
修改成跟ifconfig查看相同的HWaddr就行了!
[img]http://dl.iteye.com/upload/attachment/181775/b2b04a60-f1fd-3fd0-8bd8-a8abb6d6a63b.png[/img]
导入好后,发现通过ifconfig 命令查看IP地址时,eth0的IP是空的
[img]http://dl.iteye.com/upload/attachment/181773/28aa3988-12a0-3571-b3a5-a83f14ed6b81.jpg[/img]
通过etc/sysconfig
# cd network-scripts
# ls
ifcfg-eth0 ifdown-aliases ifdown-ipv6 ifdown-ppp ifup ifup-ipsec ifup-isdn ifup-post ifup-sit init.ipv6-global
ifcfg-lo ifdown-ippp ifdown-isdn ifdown-sit ifup-aliases ifup-ipv6 ifup-plip ifup-ppp ifup-sl network-functions
ifdown ifdown-ipsec ifdown-post ifdown-sl ifup-ippp ifup-ipx ifup-plusb ifup-routes ifup-wireless network-functions-ipv6
发现IP是配过的
[img]http://dl.iteye.com/upload/attachment/181768/5f419f94-afbc-3321-9733-d257f86a2a08.jpg[/img]
为什么ping 自己也ping不通呢?
最后通过比较发现是HWaddr 有问题
修改成跟ifconfig查看相同的HWaddr就行了!
[img]http://dl.iteye.com/upload/attachment/181775/b2b04a60-f1fd-3fd0-8bd8-a8abb6d6a63b.png[/img]