[问题]adsl 201卡拨号无法上网[已解决]

为当前最终发行版之前的所有版本提供支持
回复
litroncn
帖子: 7
注册时间: 2006-03-25 23:56
送出感谢: 0
接收感谢: 0

[问题]adsl 201卡拨号无法上网[已解决]

#1

帖子 litroncn » 2007-04-11 14:13

由于学校上国际网很贵,上过内网也不快,申请了个adsl,在windows下能上网;但在linux(Ubuntu 6.06)不能上网
我是这样配置的
1 . pppoeconfig
2 . pon dsl-provider

用plog查看内容如下:
Apr 11 13:56:07 localhost pppd[31419]: Remote message: Authentication success,Welcome!
Apr 11 13:56:07 localhost pppd[31419]: PAP authentication succeeded
Apr 11 13:56:07 localhost pppd[31419]: kernel does not support PPP filtering
Apr 11 13:56:07 localhost pppd[31419]: not replacing existing default route via 10.26.14.1
Apr 11 13:56:07 localhost pppd[31419]: Cannot determine ethernet address for proxy ARP
Apr 11 13:56:07 localhost pppd[31419]: local IP address 222.131.58.178
Apr 11 13:56:07 localhost pppd[31419]: remote IP address 222.131.56.1
Apr 11 13:56:07 localhost pppd[31419]: primary DNS address 202.106.0.20
Apr 11 13:56:07 localhost pppd[31419]: secondary DNS address 202.106.46.151

ping www.163.com 没有任何反应

ifconfig 内容如下

eth0 Link encap:Ethernet HWaddr 00:05:5D:60:D7:D0
inet addr:10.26.14.35 Bcast:10.26.14.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34366 errors:0 dropped:0 overruns:0 frame:0
TX packets:59510 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12417106 (11.8 MiB) TX bytes:61477120 (58.6 MiB)
Interrupt:11 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:195 errors:0 dropped:0 overruns:0 frame:0
TX packets:195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15443 (15.0 KiB) TX bytes:15443 (15.0 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:222.131.58.178 P-t-P:222.131.56.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3939 (3.8 KiB) TX bytes:82 (82.0 b)


用netstat -r 如下

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
222.131.56.1 * 255.255.255.255 UH 0 0 0 ppp0
10.26.14.0 * 255.255.255.0 U 0 0 0 eth0
default 10.26.14.1 0.0.0.0 UG 0 0 0 eth0


/etc/network/interfaces内容如下

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

iface dsl-provider inet ppp
provider dsl-provider

我是实在 没有办法了,希望各位给点意见

Any suggestion will be appreciated !
上次由 litroncn 在 2007-04-11 14:57,总共编辑 1 次。
头像
Nile
帖子: 990
注册时间: 2006-07-15 11:20
来自: 枫叶刀市
送出感谢: 2 次
接收感谢: 0

#2

帖子 Nile » 2007-04-11 14:26

ppp0 Link encap:Point-to-Point Protocol
inet addr:222.131.58.178 P-t-P:222.131.56.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3939 (3.8 KiB) TX bytes:82 (82.0 b)
呵呵,感觉你的ppp0连接的子网掩码好奇怪。。。。
Thinkpad T400
litroncn
帖子: 7
注册时间: 2006-03-25 23:56
送出感谢: 0
接收感谢: 0

#3

帖子 litroncn » 2007-04-11 14:34

Nile 写了:
ppp0 Link encap:Point-to-Point Protocol
inet addr:222.131.58.178 P-t-P:222.131.56.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1412 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3939 (3.8 KiB) TX bytes:82 (82.0 b)
呵呵,感觉你的ppp0连接的子网掩码好奇怪。。。。
这个我没有手动设置子网掩码,这个掩码应该没有问题吧?我感觉我是拨号成功了的,可就是不能上网
litroncn
帖子: 7
注册时间: 2006-03-25 23:56
送出感谢: 0
接收感谢: 0

#4

帖子 litroncn » 2007-04-11 15:01

我在/etc/ppp/peers/dls-provider中加入
replacedefaultroute

在拨号后 plog

Apr 11 14:53:04 localhost pppd[31789]: Remote message: Authentication success,Welcome!
Apr 11 14:53:04 localhost pppd[31789]: PAP authentication succeeded
Apr 11 14:53:04 localhost pppd[31789]: kernel does not support PPP filtering
Apr 11 14:53:04 localhost pppd[31789]: replacing old default route to eth0 [192.168.1.1]
Apr 11 14:53:04 localhost pppd[31789]: Cannot determine ethernet address for proxy ARP
Apr 11 14:53:04 localhost pppd[31789]: local IP address 222.131.58.42
Apr 11 14:53:04 localhost pppd[31789]: remote IP address 222.131.56.1
Apr 11 14:53:04 localhost pppd[31789]: primary DNS address 202.106.0.20
Apr 11 14:53:04 localhost pppd[31789]: secondary DNS address 202.106.46.151

此时能上网,无比兴奋~~~~~~~~~~~~~~~~~
头像
Nile
帖子: 990
注册时间: 2006-07-15 11:20
来自: 枫叶刀市
送出感谢: 2 次
接收感谢: 0

#5

帖子 Nile » 2007-04-11 18:24

能解释一下具体原理吗?

看样子系统好像开始误用eth0的网关(路由器)192.168.1.1,才上不了网的。

也不知猜的对不对 :lol: :lol:
Thinkpad T400
头像
eldxyldx
帖子: 150
注册时间: 2007-04-26 17:32
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 eldxyldx » 2007-04-28 19:37

就是啊, 说一下原理. 你是怎么想到在里面加一句的
回复

回到 “老旧版本支持”