LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2514|回复: 7

ping可以ping通就是上不了网啊(虚拟机 virtual pc 2004 sp1)。请大家帮帮忙!谢谢啦(问

[复制链接]
发表于 2005-6-5 15:00:55 | 显示全部楼层 |阅读模式
[root@myhost mywork]# ping 192.168.1.1                        
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.           
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.81 ms      
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=2.86 ms      
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=3.01 ms      
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=2.47 ms      
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=2.97 ms      
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=2.44 ms      
                                                               
--- 192.168.1.1 ping statistics ---                           
6 packets transmitted, 6 received, 0% packet loss, time 5015ms
rtt min/avg/max/mdev = 1.812/2.596/3.015/0.420 ms

[root@myhost mywork]# ping  220.181.27.5                       
PING 220.181.27.5 (220.181.27.5) 56(84) bytes of data.         
64 bytes from 220.181.27.5: icmp_seq=1 ttl=52 time=70.5 ms     
64 bytes from 220.181.27.5: icmp_seq=2 ttl=52 time=74.1 ms     
64 bytes from 220.181.27.5: icmp_seq=3 ttl=54 time=77.6 ms     
64 bytes from 220.181.27.5: icmp_seq=4 ttl=52 time=71.1 ms     
64 bytes from 220.181.27.5: icmp_seq=5 ttl=52 time=71.0 ms     
64 bytes from 220.181.27.5: icmp_seq=6 ttl=54 time=76.8 ms     
                                                               
--- 220.181.27.5 ping statistics ---                           
6 packets transmitted, 6 received, 0% packet loss, time 5014ms
rtt min/avg/max/mdev = 70.584/73.552/77.623/2.854 ms           

[root@myhost mywork]# ping 66.102.7.147                          
PING 66.102.7.147 (66.102.7.147) 56(84) bytes of data.           
64 bytes from 66.102.7.147: icmp_seq=1 ttl=243 time=314 ms      
64 bytes from 66.102.7.147: icmp_seq=2 ttl=243 time=314 ms      
64 bytes from 66.102.7.147: icmp_seq=3 ttl=243 time=306 ms      
64 bytes from 66.102.7.147: icmp_seq=4 ttl=243 time=302 ms      
                                                                 
--- 66.102.7.147 ping statistics ---                             
5 packets transmitted, 4 received, 20% packet loss, time 4097ms  
rtt min/avg/max/mdev = 302.991/309.934/314.981/5.215 ms

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-6-5 15:49:25 | 显示全部楼层
configure your /etc/resolv.conf           
回复 支持 反对

使用道具 举报

发表于 2005-6-5 17:19:27 | 显示全部楼层
也就是你没设置dns
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-5 20:48:51 | 显示全部楼层
[root@myhost etc]# cat resolv.conf  
#                                   
# /etc/resolv.conf                  
#                                   
                                    
#search <yourdomain.tld>            
#nameserver <202.103.24.68>         
                                    
# End of file
回复 支持 反对

使用道具 举报

发表于 2005-6-5 21:42:39 | 显示全部楼层
嗯。示例文件写得多清楚呀。
比如我们这里的dns服务器是111.222.333.444,那就改成:

  1. #
  2. # /etc/resolv.conf
  3. #

  4. #search <yourdomain.tld>
  5. #nameserver <202.103.24.68>

  6. nameserver 111.222.333.444
  7. # End of file
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-5 21:55:52 | 显示全部楼层

非常感谢大家,问题解决啦

很爽啊
顺便把 GENTOO 的也弄好啦
谢谢啦

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-10-20 13:12:54 | 显示全部楼层
我在VMware里安装了arch0.72,找不到网卡啊。我在安装的时候没有配置/etc/modprobe.conf。根据别人的建议里面要加一个alias eth0 xxxxx(设备名).
可是我如何知道后面的设备该填什么呢?我用的是VMware的虚拟网卡。大家帮忙啊
回复 支持 反对

使用道具 举报

发表于 2006-10-20 15:30:00 | 显示全部楼层
pcnet32
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表