pppd ignoring carrier drop - Ubuntu

This is a discussion on pppd ignoring carrier drop - Ubuntu ; I have already used "modem" in my options.server for the ppp connection. But sometimes, for whatever reason (hardware issue? modulation error?), pppd wasn't aware of a phone disconnection. As a result, pppd remained active and I would not be able ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: pppd ignoring carrier drop

  1. pppd ignoring carrier drop


    I have already used "modem" in my options.server for the ppp connection.
    But sometimes, for whatever reason (hardware issue? modulation error?),
    pppd wasn't aware of a phone disconnection. As a result, pppd remained
    active and I would not be able to dial to my server again.

    So why?

    --
    @~@ Might, Courage, Vision, SINCERITY.
    / v \ Simplicity is Beauty! May the Force and Farce be with you!
    /( _ )\ (Xubuntu 8.04.1) Linux 2.6.26
    ^ ^ 12:23:01 up 1 day 1:49 1 user load average: 1.00 1.02 1.00
    ? ? (CSSA):
    http://www.swd.gov.hk/tc/index/site_...ub_addressesa/

  2. Re: pppd ignoring carrier drop


    BTW, the modem is an expensive US Robotics 5610C internal PCI modem.

    --
    @~@ Might, Courage, Vision, SINCERITY.
    / v \ Simplicity is Beauty! May the Force and Farce be with you!
    /( _ )\ (Xubuntu 8.04.1) Linux 2.6.26
    ^ ^ 12:25:01 up 1 day 1:51 1 user load average: 1.00 1.01 1.00
    (CSSA):
    http://www.swd.gov.hk/tc/index/site_...ub_addressesa/

  3. Re: pppd ignoring carrier drop

    Man-wai Chang ToDie (33.6k) wrote:
    > BTW, the modem is an expensive US Robotics 5610C internal PCI modem.


    I now am using a ping to test the connection, and if I could not ping
    the other end of the pppd, then the script will kill pppd so that mgetty
    could listen to the phone line again.

    --
    @~@ Might, Courage, Vision, SINCERITY.
    / v \ Simplicity is Beauty! May the Force and Farce be with you!
    /( _ )\ (Xubuntu 8.04.1) Linux 2.6.26
    ^ ^ 17:58:01 up 1 day 7:24 2 users load average: 1.00 1.10 1.17
    (CSSA):
    http://www.swd.gov.hk/tc/index/site_...ub_addressesa/

  4. Re: pppd ignoring carrier drop



    *** quote ***

    In the ppp options file (/etc/ppp/options on Mandriva systems), add two
    lines
    lcp-echo-interval x
    lcp-echo-failure y
    replace x with the number of seconds between sending the echo requests
    replace y with the number of echoes that have to have failed to get a reply,
    before pppd should assume the connection has been lost.

    For example, to duplicate your script, having the echo sent every 9 minutes,
    and terminating after one failure, put
    lcp-echo-interval 840
    lcp-echo-failure 1

    Note that link control protocol echo is not the same as tcp/udp echo.

    Regards, Dave Hodgins

    --
    @~@ Might, Courage, Vision, SINCERITY.
    / v \ Simplicity is Beauty! May the Force and Farce be with you!
    /( _ )\ (Xubuntu 8.04.1) Linux 2.6.26
    ^ ^ 13:38:01 up 3 days 3:04 3 users load average: 1.01 1.06 1.02
    (CSSA):
    http://www.swd.gov.hk/tc/index/site_...ub_addressesa/

+ Reply to Thread