- 论坛徽章:
- 0
|
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 |
|