vmware linux网络不通的一种原因
<DIV>今天碰到一种情况,vmware中我的ip地址,网管,dns都正确,可是却上不了网,内网能ping通,但是<A href="http://www.baidu.com/" target=_blank>www.baidu.com</A>确ping不通,最后经理给了一个方法,如下:</DIV><DIV> </DIV>
<DIV>#route</DIV>
<DIV>Kernel IP routing table</DIV>
<DIV>Destination Gateway Genmask Flags Metric Ref Use Iface<BR>192.168.3.0 * 255.255.255.0 U 0 0 0 eth0<BR>169.254.0.0 * 255.255.0.0 U 0 0 0 eth0</DIV>
<DIV> </DIV>
<DIV>然后看到没有默认路由,就添加了一个默认路由:</DIV>
<DIV>#route add default gw 192.168.3.1 (增加一个默认路由,该路由是有网关提供的) </DIV>
<DIV>不过这个路由添加后如果用service network restart来重启网络的话,又没了(也就是说重启后会消失,目前我还不知道如何保存)</DIV>
<DIV> </DIV>
<DIV>添加完之后如下:</DIV>
<DIV># route<BR>Kernel IP routing table<BR>Destination Gateway Genmask Flags Metric Ref Use Iface<BR>192.168.3.0 * 255.255.255.0 U 0 0 0 eth0<BR>169.254.0.0 * 255.255.0.0 U 0 0 0 eth0<BR>default bogon 0.0.0.0 UG 0 0 0 eth0</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
页:
[1]