DSL dial-on-demand; How can I tell if it is dropping out as it should?
Hi All
I have just installed an ADSL modem, and I can connect to the internet just fine. I am currently bringing the connection (ppp0) up using 'ifup ppp0'. Because we get charged based on time connected, I want to make a "dial-on-demand" system. After struggling to find information directly related to ADSL, I ended up going with 'roaring penguin'. I ran adsl-setup and went through all the setup proceedures. I set demand for 120 sec (2 min.). After exiting setup, I checked the changes made to ifcfg-ppp0. Most of the changes were there, except the DEMAND option. so I added that one manually ("DEMAND=120"). Ok all very nice. I now bring up ppp0 again using 'ifup ppp0'. The GUI Network Configuration Tool also shows ppp0 as being active. I now wait for two minutes. I carefully check the incoming/outgoing packets on ppp0 (as I want to confirm there is no network traffice for 2 mins). After two minutes, the ppp0 connection is still active (at least according to the GUI Network Configuration Tool).
So either one of two things is happening:
1. DEMAND is not working as it should; or
2. DEMAND works differently to how I expected.
If the later is true, how does it work exactly? Does ppp0 remain active and some how drop the connection after 2 minutes without turning the actual interface off? I can I confirm that the connection is being dropped, if ppp0 is always active.
Some useful facts
-I am using RH8
-ifcfg-ppp0 is as follows:
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
DEMAND=120
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=MASQUERADE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth1
PROVIDER=CNC
USER=1234567890123
PEERDNS=no
Last edited by beng; 06-10-2003 at 05:57 AM.
|