免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1954 | 回复: 0

[网络管理] 配置好网卡和adsl却不能上网的问题 [复制链接]

论坛徽章:
0
发表于 2007-01-28 13:05 |显示全部楼层
系统是Centos x86_64,安装好后配置网卡和adsl都没有问题,拨号后也能获得外网的IP地址
但就是不能浏览网页,无法解析主机,直接输入IP地址也不行,ping外网IP地址时得到如下显示:

[root@server ~]# ping -c 5 59.61.250.213
PING 59.61.250.213 (59.61.250.213) 56(84) bytes of data.
64 bytes from 59.61.250.213: icmp_seq=0 ttl=252 time=49.5 ms
wrong data byte #22 should be 0x16 but was 0xca
#16     10 11 12 13 14 15 ca 4 64 31 ca 4 64 31 ca 4 64 31 ca 4 64 31 16 17 18 15 16 17 18 19 16 17
#48     18 19 16 17 18 19 3a 61
64 bytes from 59.61.250.213: icmp_seq=1 ttl=252 time=51.2 ms
wrong data byte #22 should be 0x16 but was 0x38
#16     10 11 12 13 14 15 38 8f 0 46 38 8f 0 46 38 8f 0 46 38 8f 0 46 16 17 18 15 16 17 18 19 16 17
#48     18 19 16 17 18 19 75 be
64 bytes from 59.61.250.213: icmp_seq=2 ttl=252 time=50.0 ms
wrong data byte #22 should be 0x16 but was 0x0
#16     10 11 12 13 14 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 18 15 16 17 18 19 16 17
#48     18 19 16 17 18 19 0 0
64 bytes from 59.61.250.213: icmp_seq=3 ttl=252 time=49.8 ms
wrong data byte #22 should be 0x16 but was 0x3a
#16     10 11 12 13 14 15 3a 71 34 3a 3a 71 34 3a 3a 71 34 3a 3a 71 34 3a 16 17 18 15 16 17 18 19 16 17
#48     18 19 16 17 18 19 70 69
64 bytes from 59.61.250.213: icmp_seq=4 ttl=252 time=50.6 ms
wrong data byte #22 should be 0x16 but was 0x66
#16     10 11 12 13 14 15 66 f6 65 31 66 f6 65 31 66 f6 65 31 66 f6 65 31 16 17 18 15 16 17 18 19 16 17
#48     18 19 16 17 18 19 3a 71

--- 59.61.250.213 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 49.501/50.280/51.289/0.657 ms, pipe 2
在这里每一次ping外网时有显示这一行:
wrong data byte #22 should be 0x16 but was  后面的结果有的是0xca 有的是0x38 这是什么意思?
刚开始不能上网的时候我以为是DNS问题,所以检查了/etc/resolv.conf这个文件,没有问题,里面有DNS的IP地址,
后来在浏览器里直接输入IP地址也不行,解析主机的时候显示如下:

[root@server ~]# host www.163.com
;; connection timed out; no servers could be reached

ping外网域名这样显示:
[root@server ~]# ping -c 5 www.google.com
ping: unknown host www.google.com

ping网关192.168.1.1的时候也显示
wrong data byte #22 should be 0x16 but was  0x66 等信息

这是网络信息
[root@server ~]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:E0:4C:B1:B8:3B
          inet addr:192.168.1.55  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:147139 errors:0 dropped:0 overruns:0 frame:0
          TX packets:146857 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8848724 (8.4 MiB)  TX bytes:7933480 (7.5 MiB)
          Interrupt:169 Base address:0xc000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2084596 (1.9 MiB)  TX bytes:2084596 (1.9 MiB)

ppp0      Link encapoint-to-Point Protocol
          inet addr:222.79.211.10  P-t-P:10.10.10.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:197 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:25707 (25.1 KiB)  TX bytes:4834 (4.7 KiB)
  


这是硬件信息
[root@localhost ~]# dmesg  |grep eth
divert: not allocating divert_blk for non-ethernet device lo
divert: allocating divert_blk for eth0
eth0: ADMtek Comet rev 17 at 0xffffff000001c000, 00:E0:4C:B1:B8:3B, IRQ 169.
divert: allocating divert_blk for eth1
eth1: RealTek RTL8139 at 0xc400, 00:0f:ea:8c:9f:88, IRQ 169
eth1:  Identified 8139 chip type 'RTL-8100B/8139D'
eth1: Setting full-duplex based on MII#1 link partner capability of 41e1.
eth1: Setting full-duplex based on MII#1 link partner capability of 41e1.
eth1: Setting full-duplex based on MII#1 link partner capability of 41e1.
eth1: Setting full-duplex based on MII#1 link partner capability of 41e1.


[root@localhost ~]# lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. K8T800Pro Host Bridge
        Subsystem: VIA Technologies, Inc. K8T800Pro Host Bridge
        Flags: bus master, 66Mhz, medium devsel, latency 8
        Memory at f0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [80] AGP version 3.0
        Capabilities: [50] Power Management version 2
        Capabilities: [60] HyperTransport: Slave or Primary Interface
        Capabilities: [58] HyperTransport: Interrupt Discovery and Configuration



00:0a.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
        Subsystem: Accton Technology Corporation: Unknown device 1216
        Flags: bus master, medium devsel, latency 64, IRQ 169
        I/O ports at 9000 [size=256]
        Memory at f7000000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [c0] Power Management version 2


00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI])
        Subsystem: Giga-byte Technology GA-7VAX Mainboard
        Flags: bus master, medium devsel, latency 32, IRQ 185
        I/O ports at bc00

        Capabilities: [80] Power Management version 2




00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Giga-byte Technology GA-7VM400M/7VT600 Motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 169
        I/O ports at c400
        Memory at f7002000 (32-bit, non-prefetchable)
        Capabilities: [50] Power Management version 2


需要说明一下的是,我有两张网卡,系统自带的eth0用的是Realtek8139芯片,eth0因雷击而损坏,系统能识别但不能使用,
所以eth0没有插网线,我又另加了一块PCI网卡eth1,用的是Linksys NC100芯片,我这台机器上的另一个
系统FC4可以用eth1上网,说明硬件没有问题

请问我的网络配置有没有错,有的话错在哪里,谢谢


[ 本帖最后由 zzmv00 于 2007-1-28 23:02 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP