Find the answer to your Linux question:
Results 1 to 4 of 4
my broadband connection often drops because it quite a poor provider. I would like to automate the process of reconnecting the line every time it drops without having to type ...
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    24

    permanent connection to the net with ppp

    my broadband connection often drops because it quite a poor provider. I would like to automate the process of reconnecting the line every time it drops without having to type anything.
    From the tdlp site http://www.tldp.org/HOWTO/NET3-4-HOWTO-7.html i have part of the solution. But this is based on me issuing a pppd command in order to connect.
    But on my ubuntu system, to connect to the internet if the connection is dropped i issue the command

    pppd call speedtch
    (speedtch being the file location for the router firmware)

    How can i automate it so that all i have to do is type pppd at the command prompt using root privileges ??? and this would then allow me to automate reconnection to the broadband server.

    the way i set up my broadband connection is detailed at
    http://www.linux-usb.org/SpeedTouch/ubuntu/index.html

    anyone??

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Hey, Enabling persist option should solve your problem...

    If the persist options is eneabled, whenever your link goes down, pppd will start redialling automatically..

    Cheers

  3. #3
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78
    u could use a simple shell script, but i don't see where the benifit is. i wonder if ifplugd could manage pppd. i use ifplugd to manage hotplugging of my ethernet connection.

    there is some information about using ifplugd or hotplug to handle hotplugging the network, according to http://www.debian.org/doc/manuals/re...ateway.en.html ppp is considered a network connection so these packages might help you. i never have to actually do anything on the command line when the network comes up. look at sections 10.8.2 and 10.8.3

  4. #4
    Just Joined!
    Join Date
    May 2006
    Posts
    24
    thanks for the advice, activating the persist option seems to have worked a treat. cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •