代码: 全选
新装ubuntu差不多都会碰到这个,不是楼主所说的“是ADSL的自动分配IP地址的模式导致”
ppp 的很多选项都是默认的,其中lcp-echo-failure次数被设为4,而lcp-echo-interval设为30秒。也就是说,如果120秒钟之内,ADSL服务器没有给回echo-reply信号,UBuntu便会认为网络已经出了问题,就会断开网络,搞得人非常不爽。症结找到了,问题就要解决了,打开配置文件/etc/ppp/options,将lcp-echo-failure次数设为一个较大的数值就行了,我将该值修改为15,后面上网就比较顺利了。
正确答案!!加精 方便查找
在XP下上网基本不掉线,到了ubuntu,快是快,可是
uu@ubuntu:~$ plog
Jan 27 02:12:40 ubuntu pppd[6281]: Connect: ppp1 <--> eth0
Jan 27 02:12:40 ubuntu pppd[6281]: CHAP authentication succeeded: Authentication success,Welcome!
Jan 27 02:12:40 ubuntu pppd[6281]: CHAP authentication succeeded
Jan 27 02:12:40 ubuntu pppd[6281]: peer from calling number 00:E0:FC:A6:9D:CC authorized
Jan 27 02:12:40 ubuntu pppd[6281]: not replacing existing default route through ppp0
Jan 27 02:12:40 ubuntu pppd[6281]: Cannot determine ethernet address for proxy ARP
Jan 27 02:12:40 ubuntu pppd[6281]: local IP address 124.115.33.86
Jan 27 02:12:40 ubuntu pppd[6281]: remote IP address 124.115.32.1
Jan 27 02:12:40 ubuntu pppd[6281]: primary DNS address 61.134.1.4
Jan 27 02:12:40 ubuntu pppd[6281]: secondary DNS address 218.30.19.40
间隔不到一分钟 uu@ubuntu:~$ plog
Jan 27 02:12:40 ubuntu pppd[6281]: local IP address 124.115.33.86
Jan 27 02:12:40 ubuntu pppd[6281]: remote IP address 124.115.32.1
Jan 27 02:12:40 ubuntu pppd[6281]: primary DNS address 61.134.1.4
Jan 27 02:12:40 ubuntu pppd[6281]: secondary DNS address 218.30.19.40
Jan 27 02:14:58 ubuntu pppd[4646]: No response to 4 echo-requests
Jan 27 02:14:58 ubuntu pppd[4646]: Serial link appears to be disconnected.
Jan 27 02:14:58 ubuntu pppd[4646]: Connect time 3.5 minutes.
Jan 27 02:14:58 ubuntu pppd[4646]: Sent 0 bytes, received 0 bytes.
Jan 27 02:15:04 ubuntu pppd[4646]: Connection terminated.
Jan 27 02:15:04 ubuntu pppd[4646]: Modem hangup
就这样断线了
但过一会儿又好了
怎么回事呢?
以前没出现啥问题啊
也没改啥呀?
有点郁闷~~
谁有办法
讨论一下嘛