Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-16-2005, 09:19 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Vancouver, Canada
Distribution: debian testing / ubuntu
Posts: 11

Rep: Reputation: 0
how to keep alive a pptp connection being timed-out by remote router?

I'm connecting to a remote lan using pptp. The connection works fine (standard set up as per but the router at the other end (over which i have no control) drops the connection if it's inactive for only a few minutes, which can be really frustrating. Does anyone know how I can keep the connection alive, e.g. setup a ping to the remote router every few minutes while the connection is up... I don't know how to do this. Or maybe there's another way?

Thanks for your help
Old 02-17-2005, 08:03 AM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
in my /etc/ppp/options in slackware i found this option:

# If this option is given, pppd will send an LCP echo-request frame to
# the peer every n seconds. Under Linux, the echo-request is sent when
# no packets have been received from the peer for n seconds. Normally
# the peer should respond to the echo-request by sending an echo-reply.
# This option can be used with the lcp-echo-failure option to detect
# that the peer is no longer connected.
# lcp-echo-interval 30

# If this option is given, pppd will presume the peer to be dead if n
# LCP echo-requests are sent without receiving a valid LCP echo-reply.
# If this happens, pppd will terminate the connection.  Use of this
# option requires a non-zero value for the lcp-echo-interval parameter.
# This option can be used to enable pppd to terminate after the physical
# connection has been broken (e.g., the modem has hung up) in
# situations where no hardware modem control lines are available.
# lcp-echo-failure 4
You may use the lcp-echo-interval, if you use the pppd.
1 members found this post helpful.


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
PPTP VPN remote connection from home powah Linux - Networking 0 05-02-2005 09:10 PM
PPTP and remote X apps clergykid Linux - Newbie 2 10-09-2004 10:46 PM
remote system error connection timed out geodo Linux - Networking 0 10-07-2004 04:13 AM
Keeping the connection alive? NonSumPisces Linux - Networking 2 07-08-2004 05:12 PM
imap+xinetd: connection not kept alive foogy Linux - Networking 3 07-08-2003 03:18 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 PM.

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