[root@adsl log]# ifup ppp0
(这一步我估计应该就可以拔上号了,日志部分没有记录,或者应该还是不行,否则不会有下一步的表现了) [root@adsl log]# service network restart
停用 ppp0 介面卡: [ 確定 ]
停用 eth0 介面卡: [ 確定 ]
停用 eth1 介面卡: [ 確定 ]
停用 loopback 介面卡: [ 確定 ]
停用 IPv4 封包傳遞: [ 確定 ]
設定網路參數: [ 確定 ]
啟動 loopback 介面卡: [ 確定 ]
啟動 eth0 介面卡: [ 確定 ]
啟動 ppp0 介面卡: [ 確定 ]
[root@adsl log]# adsl-status
adsl-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:121.34.225.137 P-t-P:121.34.224.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:611 (611.0 b) TX bytes:2012 (1.9 KiB)
(network服务重新启动一下,终于可以拔上号了) (以下查看一下为什么昨天改的参数没有启用,在这里发现了,顺利解释一下这几个参数) [root@adsl log]#cat /etc/sysconfig/network-scripts/ifcfg-ppp0
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=MASQUERADE
PING=.
PPPOE_TIMEOUT=0 CONNECT_TIMEOUT=0 LCP_FAILURE=15 LCP_INTERVAL=80 CLAMPMSS=1412
CONNECT_POLL=6
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth1
PROVIDER=DSLppp0
USER=szjlkj88@163.gd
PEERDNS=no
DEMAND=no
[root@adsl sbin]# man pppoe.conf
CONNECT_TIMEOUT
How long (in seconds) adsl-start should wait for a new PPP interface to come up before concluding that adsl-connect has failed and killing the session.
(这个是等待时间,在建立一个新的PPP接口(即建立新连接)之前,判定ADSL链接失败和关掉这个对话,adsl-start所需等待多长时间(用分钟表示)) LCP_INTERVAL
How often (in seconds) pppd sends out LCP echo-request packets.
(pppd多久发送一次"LCP echo-request"数据包,时间间隔(用分种表示))
LCP_FAILURE
How many unanswered LCP echo-requests must occur before pppd concludes the link is dead.
(在pppd结束这个死掉的连接之前,应该产生多少次未应答的"LCP echo-requests"信号)
PPPOE_TIMEOUT
If this many seconds elapse without any activity seen by pppoe, then pppoe exits.
(如果这些时间过去了,还没有看到一些活动的pppoe,那么pppoe将退出) DEMAND
If set to a number, the link is activated on demand and brought down after after DEMAND seconds.
If set to no,the link is kept up all the time rather than being activated on demand.
(如果设置了一个数字,这个连接是按需求连接的和如果这个数字的分钟内没有需求将停止ADSL,如果设置为no,这个连接将一直保持在线状态)
再去测试一下, root@adsl log]# ifdown eth1
[root@adsl ~]# adsl-status
adsl-status: Link is down -- could not find interface corresponding to pppd pid 2453
看来近期ADSL断线现象,的确是由于启动ADSL相关网卡eth1挡掉引起的,是病毒攻击还是硬体原因?以后再查了, 等过了三分钟左右,pppoe.sh脚本启动,OK,adsl终于又起来了