免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3015 | 回复: 5
打印 上一主题 下一主题

[网络管理] 请教:vmware + rhel5 无法上网,ping/nslookup正常! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-26 23:38 |只看该作者 |倒序浏览
vmware5 采用 bridged 方式
host OS windowsXP_sp2 ip:192.168.0.83 可以正常上网
client OS rhel5 ip:192.168.0.110 无法上网
gateway:192.168.0.1
在rhel5中打开firefox,在建立连接时,先显示正在解释主机 www.163.cm ...
然后显示正在连接到 www.163.com ...
最后显示 位于某某的服务器响应时间过长...
连LinuxQQ也上不了,郁闷...
请教是哪里设置不当造成的?
以下是rhel5的网络设置和相关测试:

[root@RHEL5 ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0C:29:24:F7:2A
          inet addr:192.168.0.110  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe24:f72a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5029 errors:0 dropped:0 overruns:0 frame:0
          TX packets:472 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2561979 (2.4 MiB)  TX bytes:42991 (41.9 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3352032 (3.1 MiB)  TX bytes:3352032 (3.1 MiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:195040 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:147833181 (140.9 MiB)  TX bytes:50513 (49.3 KiB)
          Interrupt:18 Base address:0x1400

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

veth1     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

veth2     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

veth3     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:472 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:42991 (41.9 KiB)  TX bytes:2606926 (2.4 MiB)

vif0.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif0.2    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vif0.3    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1774 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:335706 (327.8 KiB)  TX bytes:0 (0.0 b)
[root@RHEL5 ~]# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
[root@RHEL5 ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0


[root@RHEL5 ~]# ping www.google.com
PING www.l.google.com (64.233.183.147) 56(84) bytes of data.
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=1 ttl=47 time=585 ms
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=2 ttl=47 time=632 ms
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=3 ttl=47 time=574 ms
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=4 ttl=47 time=533 ms
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=5 ttl=47 time=556 ms
64 bytes from tz-in-f147.1e100.net (64.233.183.147): icmp_seq=6 ttl=47 time=599 ms

--- www.l.google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 10219ms
rtt min/avg/max/mdev = 533.206/580.190/632.371/31.356 ms
[root@RHEL5 ~]# ping www.163.com
PING www.cache.gslb.netease.com (61.135.253.12) 56(84) bytes of data.
64 bytes from 61.135.253.12: icmp_seq=1 ttl=52 time=62.2 ms
64 bytes from 61.135.253.12: icmp_seq=2 ttl=52 time=145 ms
64 bytes from 61.135.253.12: icmp_seq=3 ttl=52 time=558 ms
64 bytes from 61.135.253.12: icmp_seq=4 ttl=52 time=429 ms
64 bytes from 61.135.253.12: icmp_seq=5 ttl=52 time=413 ms
64 bytes from 61.135.253.12: icmp_seq=6 ttl=52 time=564 ms
64 bytes from 61.135.253.12: icmp_seq=7 ttl=52 time=244 ms
64 bytes from 61.135.253.12: icmp_seq=8 ttl=52 time=396 ms
64 bytes from 61.135.253.12: icmp_seq=9 ttl=52 time=93.1 ms
64 bytes from 61.135.253.12: icmp_seq=10 ttl=52 time=260 ms

--- www.cache.gslb.netease.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9006ms
rtt min/avg/max/mdev = 62.252/316.892/564.953/173.529 ms
[root@RHEL5 ~]# ping www.21cn.com
PING 21cn.ecomA.glb0.lxdns.com (61.174.63.213) 56(84) bytes of data.
64 bytes from 61.174.63.213: icmp_seq=1 ttl=54 time=329 ms
64 bytes from 61.174.63.213: icmp_seq=2 ttl=54 time=81.8 ms
64 bytes from 61.174.63.213: icmp_seq=3 ttl=54 time=34.0 ms
64 bytes from 61.174.63.213: icmp_seq=4 ttl=54 time=181 ms
64 bytes from 61.174.63.213: icmp_seq=5 ttl=54 time=132 ms
64 bytes from 61.174.63.213: icmp_seq=6 ttl=54 time=45.5 ms
64 bytes from 61.174.63.213: icmp_seq=7 ttl=54 time=86.8 ms
64 bytes from 61.174.63.213: icmp_seq=8 ttl=54 time=170 ms
64 bytes from 61.174.63.213: icmp_seq=9 ttl=54 time=243 ms
64 bytes from 61.174.63.213: icmp_seq=10 ttl=54 time=164 ms

--- 21cn.ecomA.glb0.lxdns.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9096ms
rtt min/avg/max/mdev = 34.022/147.011/329.192/87.029 ms
[root@RHEL5 ~]# cat /etc/resolv.conf
#nameserver     202.96.128.86
nameserver      202.106.127.1
nameserver      8.8.8.8

[root@RHEL5 ~]# more /etc/nsswitch.conf
.........
passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns
...........


[root@RHEL5 ~]# nslookup www.google.com
Server:         202.106.127.1
Address:        202.106.127.1#53

Non-authoritative answer:
www.google.com  canonical name = www.l.google.com.
Name:   www.l.google.com
Address: 72.14.203.147
Name:   www.l.google.com
Address: 72.14.203.99
Name:   www.l.google.com
Address: 72.14.203.103
Name:   www.l.google.com
Address: 72.14.203.104
Name:   www.l.google.com
Address: 72.14.203.105
Name:   www.l.google.com
Address: 72.14.203.106

[root@RHEL5 ~]# nslookup www.21cn.com
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
www.21cn.com    canonical name = www.cdnx.21cn.com.
www.cdnx.21cn.com       canonical name = ws.21cn.com.cdn20.com.
ws.21cn.com.cdn20.com   canonical name = ws.21cn.z.cdn20.com.
ws.21cn.z.cdn20.com     canonical name = 21cn.ecomA.glb0.lxdns.com.
Name:   21cn.ecomA.glb0.lxdns.com
Address: 61.174.63.213
Name:   21cn.ecomA.glb0.lxdns.com
Address: 61.174.63.212

[root@RHEL5 ~]# nslookup www.163.com
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
www.163.com     canonical name = www.cache.gslb.netease.com.
Name:   www.cache.gslb.netease.com
Address: 61.135.253.12
Name:   www.cache.gslb.netease.com
Address: 61.135.253.13
Name:   www.cache.gslb.netease.com
Address: 61.135.253.14
Name:   www.cache.gslb.netease.com
Address: 61.135.253.15
Name:   www.cache.gslb.netease.com
Address: 61.135.253.16
Name:   www.cache.gslb.netease.com
Address: 61.135.253.17
Name:   www.cache.gslb.netease.com
Address: 61.135.253.18
Name:   www.cache.gslb.netease.com
Address: 61.135.253.10
Name:   www.cache.gslb.netease.com
Address: 61.135.253.11

论坛徽章:
0
2 [报告]
发表于 2010-04-27 00:10 |只看该作者
补充一下:在XP和rhel之间ftp什么的都正常的

论坛徽章:
0
3 [报告]
发表于 2010-04-27 01:49 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2010-04-27 07:32 |只看该作者
问题是我的域名解释没有问题的呀,不明白为什么上不了网,
今天试了一下,从rhel往外ftp,Telnet均告失败,但从外面ftp进来可以,
而且这种情况以前是没有的,不知从什么时候开始就上不了网了

论坛徽章:
0
5 [报告]
发表于 2010-04-27 09:20 |只看该作者
嗯,今天把瑞星的两个服务停了,发现一切正常了,
最后开启瑞星,新增一条ip过滤规则,问题解决...{:2_165:}

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
6 [报告]
发表于 2010-04-29 12:48 |只看该作者
我还以为楼主是在Firefox上面加了代理了呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP