LinuxSir.cn,穿越时空的Linuxsir!

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

两个linux系统都上不了网?(查过一些帖子还是没法)

[复制链接]
发表于 2005-3-10 20:59:26 | 显示全部楼层 |阅读模式
两系统同一错误:

[root@localhost root]# adsl-start
[root@localhost root]# adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0      Link encapoint-to-Point Protocol
          inet addr:218.9.125.106  P-t-P:24.24.24.24  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:30 (30.0 b)  TX bytes:150 (150.0 b)

显然我已经得到 IP了
我根据一些帖子的提示:改了下route
(参照了window下上网时的 ipconfig 和 route 中的东西)

[root@localhost root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
24.24.24.24     *               255.255.255.255 UH    0      0        0 ppp0
default         24.24.24.24     0.0.0.0         UG    0      0        0 ppp0
[root@localhost root]# route del default gw 24.24.24.24
[root@localhost root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
24.24.24.24     *               255.255.255.255 UH    0      0        0 ppp0
[root@localhost root]# route add default gw 218.9.125.106 netmask 255.255.255.255
[root@localhost root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         218.9.125.106   255.255.255.255 UGH   0      0        0 ppp0
24.24.24.24     *               255.255.255.255 UH    0      0        0 ppp0
[root@localhost root]# route del destination 24.24.24.24
destination: Host name lookup failure

还是上不了
tcpdump能截到很多数据包
[root@localhost root]# tcpdump
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: listening on eth0
20:50:59.570659 PPPoE  [ses 0x1d6] 202.107.53.87.1203 > 218.9.122.4.3178: P 1930612349:1930612917(568) ack 3422440419 win 65447 (DF)
20:50:59.692144 PPPoE  [ses 0x1d6] 218.9.122.4.3178 > 202.107.53.87.1203: . ack 568 win 16712 (DF)
20:50:59.850733 PPPoE  [ses 0xcb] 219.133.41.147.7788 > 218.9.123.251.4354: S 2747362634:2747362634(0) ack 3387422847 win 5840 <mss 1460,nop,nop,sackOK> (DF)
20:50:59.852016 PPPoE  [ses 0xcb] 218.9.123.251.4354 > 219.133.41.147.7788: . ack 1 win 17280 (DF)
20:50:59.854118 PPPoE  [ses 0xcb] 218.9.123.251.4354 > 219.133.41.147.7788: P 1:315(314) ack 1 win 17280 (DF)
20:51:00.241240 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:00.296747 PPPoE  [ses 0xcb] 219.133.41.147.7788 > 218.9.123.251.4354: . ack 315 win 6432 (DF)
20:51:00.525344 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:00.584099 PPPoE  [ses 0xcb] 219.133.41.147.7788 > 218.9.123.251.4354: . 1:1441(1440) ack 315 win 6432 (DF)
20:51:00.584498 PPPoE  [ses 0xcb] 219.133.41.147.7788 > 218.9.123.251.4354: P 1441:2049(608) ack 315 win 6432 (DF)
20:51:00.584537 PPPoE  [ses 0xcb] 219.133.41.147.7788 > 218.9.123.251.4354: F 2049:2049(0) ack 315 win 6432 (DF)
20:51:00.585491 PPPoE  [ses 0xcb] 218.9.123.251.4354 > 219.133.41.147.7788: . ack 2049 win 17280 (DF)
20:51:00.585582 PPPoE  [ses 0xcb] 218.9.123.251.4354 > 219.133.41.147.7788: . ack 2050 win 17280 (DF)
20:51:00.655538 PPPoE  [ses 0xcb] 218.9.123.251.4113 > 219.133.38.177.http: R 2691308606:2691308606(0) win 0 (DF)
20:51:00.656577 PPPoE  [ses 0xcb] 218.9.123.251.4354 > 219.133.41.147.7788: R 3387423161:3387423161(0) win 0 (DF)
20:51:00.839068 0:e0:fc:9:bc:f9 1:80:c2:0:0:a 88a7 128:
                         0003 0000 01b4 f50d 0001 000e 0000 0000
                         00e0 fc24 9d52 0007 0012 5175 6964 7761
                         7920 5332 3430 3348 000e 000e 3234 3033
                         482d 3030 3133 0011 0013 5632 3030 5230
                         3035 4230 3344 3031 3100 0c00 1410 0000
                         0000
20:51:00.990502 PPPoE  [ses 0x549] Echo-Req(9), Magic-Num=9cc9d6cc
20:51:00.998889 PPPoE  [ses 0x549] Echo-Rep(9), Magic-Num=5093bde1
20:51:01.035996 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:01.541378 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:02.105606 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:02.129676 PPPoE  [ses 0x1d6] 218.24.73.224.3164 > 218.9.122.4.3081: udp 24
20:51:02.135924 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.61.137.146.2839: udp 24
20:51:02.136002 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.61.137.146.2839: udp 24
20:51:02.136088 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.24.73.224.3164: udp 24
20:51:02.682055 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:02.868299 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:02.978128 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:03.321742 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:03.705641 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:03.748505 PPPoE  [ses 0x1d6] 218.9.122.4.3043 > 61.129.48.11.1606: udp 112
20:51:03.767011 PPPoE  [ses 0xcb] 218.9.123.251.3487 > 192.168.0.1.3222: udp 74
20:51:03.907294 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:04.005527 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:04.142309 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:04.203968 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28
20:51:05.129308 PPPoE  [ses 0x1d6] 218.24.73.224.3164 > 218.9.122.4.3081: udp 24
20:51:05.130483 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.61.137.146.2839: udp 24
20:51:05.130563 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.61.137.146.2839: udp 24
20:51:05.130649 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 218.24.73.224.3164: udp 24
20:51:05.130734 PPPoE  [ses 0x1d6] 218.9.122.4.3081 > 202.107.53.87.1510: udp 24
20:51:05.297633 PPPoE  [ses 0x1d6] 202.107.53.87.1510 > 218.9.122.4.3081: udp 28

42 packets received by filter
0 packets dropped by kernel

请问这是怎么回事呀
发表于 2005-3-10 23:15:16 | 显示全部楼层
你的/etc/resolv.conf文件里的DNS解析地址是否写好了呀?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-11 06:17:47 | 显示全部楼层
Post by 7dehao
你的/etc/resolv.conf文件里的DNS解析地址是否写好了呀?

那倒没有?
应该怎么写呀
这真有些怪了,我以前在redhat9 和mandrake下从没有过这种情况,
redhat AS3第一次装是也能上网的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-11 20:09:02 | 显示全部楼层
大家帮帮忙吧!
没网的日子不好受呀

那位兄弟传一下你上网时的各项配置也行呀,认为有用的都传吧,
我旁边没有用linux的
回复 支持 反对

使用道具 举报

发表于 2005-3-13 23:42:22 | 显示全部楼层
adsl不是会有电信给你的dns的ip吗?
形如
nameserver 202.96.209.5
回复 支持 反对

使用道具 举报

发表于 2005-3-14 00:50:43 | 显示全部楼层
这个东西跟网卡的驱动程序有关,楼主现在用的网卡驱动可能有bug。

我原来在Mandrakelinux 10.1 Community中死活就上不了。后来到了10.1 Official的时候,Mandrakelinux 更新了网卡的驱动程序,就能上了。
回复 支持 反对

使用道具 举报

发表于 2005-4-26 19:28:39 | 显示全部楼层
我的也和楼主的一样问题,ADSL拔上去了,但就是上不了网,我是双系统的,98里也是一个样,拔号成功,就是上不了网,应该和楼上说的网卡的问题无关的。
我是昨天打雷的时候把路由器烧了,后来改用单机拔号上就不行,以前用路由器的时候也是这个系统用得好好的,用路由器的时候用的是DHCP,没有指定IP的,用拔号应该也不用指定吧。单机拔的时候我把原来那个NETWORK里的局域网的设置都删了,新建的一个xDSL连接,我用的是RH FC2系统,如果哪位大虾知道是怎么回事的,请指教,谢谢。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 19:36:57 | 显示全部楼层
哎,我是没解决,我换成了mandrake ,没有出现这个问题了
具体什么问题我搞不懂
回复 支持 反对

使用道具 举报

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

本版积分规则

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