cht電腦資訊Linux
adm Find login register

pppoe/pppd 自動結束、不正常結束

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
1subject: pppoe/pppd 自動結束、不正常結束Promote 0 Bookmark 02011-11-12quote  

pppoe 在線路(光世代、ADSL) 長時間斷線時會自動結束。啟動 pppoe/pppd 時要用

persist maxfail 0

這樣就會一直 reconnect 不會結束。

Nov 11 01:51:13 www pppd[1807]: No response to 3 echo-requests
Nov 11 01:51:13 www pppd[1807]: Serial link appears to be disconnected.
Nov 11 01:51:13 www pppd[1807]: Connect time 21846.3 minutes.
Nov 11 01:51:13 www pppd[1807]: Sent 585577668 bytes, received 3500804833 bytes.
Nov 11 01:51:19 www pppd[1807]: Connection terminated.
Nov 11 01:51:19 www pppd[1807]: Modem hangup

Nov 11 01:51:19 www pppoe[1763]: read (asyncReadFromPPP): Session 11561: Input/output error
Nov 11 01:51:19 www pppoe[1763]: Sent PADT
Nov 11 01:51:23 www pppd[1807]: Using interface ppp0
Nov 11 01:51:23 www pppd[1807]: Connect: ppp0 <--> /dev/pts/0
Nov 11 01:53:39 www pppd[1807]: LCP: timeout sending Config-Requests
Nov 11 01:53:39 www pppd[1807]: Connection terminated.
Nov 11 01:53:39 www pppd[1807]: Modem hangup
Nov 11 01:53:43 www pppd[1807]: Using interface ppp0
Nov 11 01:53:43 www pppd[1807]: Connect: ppp0 <--> /dev/pts/0
Nov 11 01:53:43 www pppoe[17082]: Timeout waiting for PADO packets
Nov 11 01:54:14 www pppd[1807]: LCP: timeout sending Config-Requests
Nov 11 01:54:14 www pppd[1807]: Connection terminated.
Nov 11 01:54:14 www pppd[1807]: Modem hangup
Nov 11 01:54:18 www pppoe[17089]: Timeout waiting for PADO packets
Nov 11 01:54:19 www pppd[1807]: Exit.

edited: 3
eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02017-05-26quote  

maxfail 0 好像沒用。

我後來改成

maxfail 10000

就 ok.

cht電腦資訊Linux
adm Find login register
views:10933