LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-10-2003, 04:56 AM   #1
beng
LQ Newbie
 
Registered: May 2003
Location: Beijing, China
Distribution: RedHat 8/9
Posts: 13

Rep: Reputation: 0
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 04:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dsl on demand in suse 8.0, and installing dsl paul62 SUSE / openSUSE 2 01-04-2005 09:32 PM
DIAL on demand sqn Slackware 4 08-15-2003 03:58 AM
Has anyone got dial-on-demand working for DSL?? beng Linux - Networking 0 07-18-2003 04:32 AM
Dial On Demand awtoc123 Linux - Networking 0 04-01-2002 11:12 AM
DSL Dial-on-Demand / pppd terminates DJFauß Linux - Networking 0 01-12-2002 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration