免费注册 查看新帖 |

Chinaunix

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

求助,F8里设置 IP ,但还是无法开网页。回显在10楼 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-09 11:24 |只看该作者 |倒序浏览
装的是XP+LINUX双系统。

求助,F8里设置 IP ,但还是无法开网页。

(放回显在10楼)



如图:







///////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
.//////////////////////////////////////////////////////////////////
在linux下nslookup
nslookup  www.google.cn
nslookup www.hao123.com
nslookup www.baidu.com
nslookup www.sina.com.cn

都是通的 但是就只能打开百度,其余的一直卡在哪里,百度搜出来的网页打开,也是一直卡在哪里
换UBUNTU试情况和fedora一样。。。。。。。
发现问题,好像只可以上百度
,百度搜出来的网页也上不了
google和新浪,好123都上不了,卡在那里。。。。
fedora中 用gnome 带的火狐 或者KDE用kde的浏览器 都无法打开。。。



有*码~~~~~~~~~~~~~
放*码~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·

[mojian@mojian ~]$ su -
[root@mojian ~]# config-bind
-bash: config-bind: command not found
[root@mojian ~]# lcpci
-bash: lcpci: command not found

///////////////////////////////////////
网络状况:

[root@mojian ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:05:13:64:0C  
          inet addr:192.168.0.157  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::240:5ff:fe13:640c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5019 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5521528 (5.2 MiB)  TX bytes:203511 (198.7 KiB)
          Interrupt:10 Base address:0x4f00

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:3645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3645 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3650416 (3.4 MiB)  TX bytes:3650416 (3.4 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:5556 (5.4 KiB)

////////////////////////////////////
PING测试:

[root@mojian ~]# ping 192.168.0.1             //////////////ping主机
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.333 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.330 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.278 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=0.298 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=0.354 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=255 time=0.335 ms
64 bytes from 192.168.0.1: icmp_seq=7 ttl=255 time=0.287 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=255 time=0.281 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=255 time=0.256 ms


[root@mojian ~]# ping 192.168.0.157            /////////////ping自己
PING 192.168.0.157 (192.168.0.157) 56(84) bytes of data.
64 bytes from 192.168.0.157: icmp_seq=1 ttl=64 time=0.119 ms
64 bytes from 192.168.0.157: icmp_seq=2 ttl=64 time=0.090 ms
64 bytes from 192.168.0.157: icmp_seq=3 ttl=64 time=0.108 ms
64 bytes from 192.168.0.157: icmp_seq=4 ttl=64 time=0.145 ms
64 bytes from 192.168.0.157: icmp_seq=5 ttl=64 time=0.106 ms
64 bytes from 192.168.0.157: icmp_seq=6 ttl=64 time=0.104 ms
64 bytes from 192.168.0.157: icmp_seq=7 ttl=64 time=0.113 ms
64 bytes from 192.168.0.157: icmp_seq=8 ttl=64 time=0.105 ms
64 bytes from 192.168.0.157: icmp_seq=9 ttl=64 time=0.104 ms
64 bytes from 192.168.0.157: icmp_seq=10 ttl=64 time=0.108 ms
64 bytes from 192.168.0.157: icmp_seq=11 ttl=64 time=0.101 ms
64 bytes from 192.168.0.157: icmp_seq=12 ttl=64 time=0.107 ms

--- 192.168.0.157 ping statistics ---
13 packets transmitted, 13 received, 0% packet loss, time 11998ms
rtt min/avg/max/mdev = 0.090/0.108/0.145/0.015 ms

[root@mojian ~]# ping 202.103.224.68               ///////////pingDNS-----这种算是PING通吗?
PING 202.103.224.68 (202.103.224.6 56(84) bytes of data.
[root@mojian ~]# ping 202.103.225.68
PING 202.103.225.68 (202.103.225.6 56(84) bytes of data.
[mojian@mojian ~]$ ping 202.103.225.38
PING 202.103.225.38 (202.103.225.3 56(84) bytes of data.
////////////////////////////////////////////////////////////////////////////////////////////
查看网络配置:



[root@mojian ~]# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=mojian
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/sysconfig/network" 2L, 31C
///////////////////////
网卡配置参数情况:

[root@mojian ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.0.1
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.0.157
USERCTL=yes
IPV6INIT=yes
PEERDNS=yes
BROADCAST=192.168.0.255
HWADDR=00:40:05:13:64:0c
ONBOOT=yes
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/sysconfig/network-scripts/ifcfg-eth0" 14L, 303C
//////////////////////////
DNS配置情况:

[root@mojian ~]# vi /etc/resolv.conf


; generated by /sbin/dhclient-script
nameserver 202.103.224.68
nameserver 202.103.225.68
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/resolv.conf" 3L, 89C






///////////
激活:

[root@mojian ~]# ifdown eth0
[root@mojian ~]# ifup eth0
[root@mojian ~]#

[ 本帖最后由 codycody23 于 2008-7-10 16:56 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-07-09 11:47 |只看该作者
0.你网线插好了没有?
1.你IP设置正确么,生效了没有?
2.你添加默认网关了没有?
3.你设置了dns了没有?

PS:linux不是windows,建议修改配置文件,方便并有效地多,而不是用这样的配置工具来设置

论坛徽章:
0
3 [报告]
发表于 2008-07-09 11:55 |只看该作者
0.你网线插好了没有?
1.你IP设置正确么,生效了没有?
2.你添加默认网关了没有?
3.你设置了dns了没有?

请看图。。。。。。。。。。!

论坛徽章:
0
4 [报告]
发表于 2008-07-09 15:34 |只看该作者
1.请先ping一下网关,是否通
2.ping一下dns是否通
3.查看一下路由信息

论坛徽章:
0
5 [报告]
发表于 2008-07-09 15:48 |只看该作者
ping 127.0.0.1
ping 本地IP
ping 网关
ping DNS

论坛徽章:
0
6 [报告]
发表于 2008-07-09 16:25 |只看该作者
配置好后重启网络
/etc/init.d/network restart
然后ping  网关,如果通,再ping DNS, DNS也通,上网就不应该出问题 了吧~
                               如果不通,还是你没有设置好

论坛徽章:
0
7 [报告]
发表于 2008-07-09 18:19 |只看该作者
ping 192.168.0.1     网关 通
ping192.168.0.157   自己 通
ping DNS 202.103.224.68  不通?????

放码:
[root@mojian ~]# ping 202.103.224.68               ///////////pingDNS-----这种算是PING通吗
PING 202.103.224.68 (202.103.224.6 56(84) bytes of data.
[root@mojian ~]# ping 202.103.225.68
PING 202.103.225.68 (202.103.225.6 56(84) bytes of data.
[mojian@mojian ~]$ ping 202.103.225.38
PING 202.103.225.38 (202.103.225.3 56(84) bytes of data.

[ 本帖最后由 codycody23 于 2008-7-10 15:46 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2008-07-09 19:45 |只看该作者
在XP下可以上网~~~~~~~~~

论坛徽章:
0
9 [报告]
发表于 2008-07-09 20:32 |只看该作者
检查下放火强,最简单的办法就是把防火墙和selinux都先关闭看看是否可以先

论坛徽章:
0
10 [报告]
发表于 2008-07-09 20:52 |只看该作者
[mojian@mojian ~]$ su -
[root@mojian ~]# config-bind
-bash: config-bind: command not found
[root@mojian ~]# lcpci
-bash: lcpci: command not found

///////////////////////////////////////
网络状况:

[root@mojian ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:05:13:64:0C  
          inet addr:192.168.0.157  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::240:5ff:fe13:640c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5019 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5521528 (5.2 MiB)  TX bytes:203511 (198.7 KiB)
          Interrupt:10 Base address:0x4f00

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:3645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3645 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3650416 (3.4 MiB)  TX bytes:3650416 (3.4 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:5556 (5.4 KiB)

////////////////////////////////////
PING测试:

[root@mojian ~]# ping 192.168.0.1             //////////////ping主机
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.333 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.330 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.278 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=0.298 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=255 time=0.354 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=255 time=0.335 ms
64 bytes from 192.168.0.1: icmp_seq=7 ttl=255 time=0.287 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=255 time=0.281 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=255 time=0.256 ms


[root@mojian ~]# ping 192.168.0.157            /////////////ping自己
PING 192.168.0.157 (192.168.0.157) 56(84) bytes of data.
64 bytes from 192.168.0.157: icmp_seq=1 ttl=64 time=0.119 ms
64 bytes from 192.168.0.157: icmp_seq=2 ttl=64 time=0.090 ms
64 bytes from 192.168.0.157: icmp_seq=3 ttl=64 time=0.108 ms
64 bytes from 192.168.0.157: icmp_seq=4 ttl=64 time=0.145 ms
64 bytes from 192.168.0.157: icmp_seq=5 ttl=64 time=0.106 ms
64 bytes from 192.168.0.157: icmp_seq=6 ttl=64 time=0.104 ms
64 bytes from 192.168.0.157: icmp_seq=7 ttl=64 time=0.113 ms
64 bytes from 192.168.0.157: icmp_seq=8 ttl=64 time=0.105 ms
64 bytes from 192.168.0.157: icmp_seq=9 ttl=64 time=0.104 ms
64 bytes from 192.168.0.157: icmp_seq=10 ttl=64 time=0.108 ms
64 bytes from 192.168.0.157: icmp_seq=11 ttl=64 time=0.101 ms
64 bytes from 192.168.0.157: icmp_seq=12 ttl=64 time=0.107 ms

--- 192.168.0.157 ping statistics ---
13 packets transmitted, 13 received, 0% packet loss, time 11998ms
rtt min/avg/max/mdev = 0.090/0.108/0.145/0.015 ms

[root@mojian ~]# ping 202.103.224.68               ///////////pingDNS
PING 202.103.224.68 (202.103.224.6 56(84) bytes of data.
[root@mojian ~]# ping 202.103.225.68
PING 202.103.225.68 (202.103.225.6 56(84) bytes of data.
[mojian@mojian ~]$ ping 202.103.225.38
PING 202.103.225.38 (202.103.225.3 56(84) bytes of data.
////////////////////////////////////////////////////////////////////////////////////////////
查看网络配置:



[root@mojian ~]# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=mojian
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/sysconfig/network" 2L, 31C
///////////////////////
网卡配置参数情况:

[root@mojian ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.0.1
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.0.157
USERCTL=yes
IPV6INIT=yes
PEERDNS=yes
BROADCAST=192.168.0.255
HWADDR=00:40:05:13:64:0c
ONBOOT=yes
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/sysconfig/network-scripts/ifcfg-eth0" 14L, 303C
//////////////////////////
DNS配置情况:

[root@mojian ~]# vi /etc/resolv.conf


; generated by /sbin/dhclient-script
nameserver 202.103.224.68
nameserver 202.103.225.68
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
"/etc/resolv.conf" 3L, 89C






///////////
激活:

[root@mojian ~]# ifdown eth0
[root@mojian ~]# ifup eth0
[root@mojian ~]#


nslookup  www.google.cn
nslookup www.hao123.com
nslookup www.baidu.com
nslookup www.sina.com.cn

都是通的 但是就只能打开百度,其余的一直卡在哪里,百度搜出来的网页打开,也是一直卡在哪里
换UBUNTU试情况和fedora一样。。。。。。。
发现问题,好像只可以上百度
,百度搜出来的网页也上不了
google和新浪,好123都上不了,卡在那里。。。。


[ 本帖最后由 codycody23 于 2008-7-10 12:26 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP