Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem setting up a PPP connection

Reply
Thread Tools Display Modes

problem setting up a PPP connection

 
 
Shanthi Paladugu
Guest
Posts: n/a

 
      05-18-2004, 02:57 PM
I am trying to set up a PPP server on a Linux machine(2.4.19). I am
trying to use another Linux machine as a client. On the server and the
client modems are hooked up to /dev/ttyS0 and /dev/modem ( this ia a
link to /dev/ttyS0) respectively. I have this entry on the server
machine in /etc/inittab: cp:2345:respawn:/sbin/mgetty -x 9 ttyS0. And
the rest of the configuration for the mgetty is the default config. On
the server, /etc/ppp/options has the following entries:
asyncmap 0
netmask 255.255.255.0
proxyarp
lock
crtscts
modem
require-pap

and /etc/ppp/options.ttyS0 has this entry:
192.168.0.1:192.168.0.2
in /etc/ppp/pap-secrets file I added <"username" * "password" *>

On the client machine:
/etc/ppp/options has the following entries:
lock
modem
debug
crtscts
defaultroute
passive
hide-password
user root
lcp-max-configure 50
/etc/ppp/pap-secrets has the entry "username * password *"
I can access /dev/modem on client using minicom and dial out to the
modem connected to the server at /dev/ttyS0 and I get the login prompt
as expected. I can log on but then when I try to establish a ppp
connection I initiate the ppp daemon by invoking "/usr/sbin/pppd
/dev/ttyS0 -detach" and then on the client issue
"pppd /dev/ttyS0 -detach"

at this point logs on the server has the following:
May 18 08:51:41 cp_node1 pppd[26157]: pppd 2.4.1 started by root, uid
0
May 18 08:51:41 cp_node1 pppd[26157]: Using interface ppp0
May 18 08:51:41 cp_node1 pppd[26157]: Connect: ppp0 <--> /dev/ttyS0
May 18 08:51:41 cp_node1 /etc/hotplug/net.agent: assuming ppp0 is
already up
May 18 08:51:41 cp_node1 pppd[26157]: pppd 2.4.1 started by root, uid
0
May 18 08:51:41 cp_node1 pppd[26157]: Using interface ppp0
May 18 08:51:41 cp_node1 pppd[26157]: Connect: ppp0 <--> /dev/ttyS0
May 18 08:51:41 cp_node1 /etc/hotplug/net.agent: assuming ppp0 is
already up
May 18 08:52:11 cp_node1 pppd[26157]: LCP: timeout sending
Config-Requests
May 18 08:52:11 cp_node1 pppd[26157]: Connection terminated.
May 18 08:52:11 cp_node1 pppd[26157]: Exit.
May 18 08:52:11 cp_node1 /etc/hotplug/net.agent: NET unregister event
not supported
May 18 08:52:11 cp_node1 pppd[26157]: LCP: timeout sending
Config-Requests
May 18 08:52:11 cp_node1 pppd[26157]: Connection terminated.
May 18 08:52:11 cp_node1 pppd[26157]: Exit.
May 18 08:52:11 cp_node1 /etc/hotplug/net.agent: NET unregister event
not supported


Logs on the client:
May 18 09:03:33 lustre1 pppd[10017]: pppd 2.4.1 started by root, uid 0

Any help would be greatly appreciated.

Thanks,
Shanthi.
 
Reply With Quote
 
 
 
 
Bill Unruh
Guest
Posts: n/a

 
      05-18-2004, 03:27 PM
(E-Mail Removed) (Shanthi Paladugu) writes:

]I am trying to set up a PPP server on a Linux machine(2.4.19). I am
]trying to use another Linux machine as a client. On the server and the
]client modems are hooked up to /dev/ttyS0 and /dev/modem ( this ia a
]link to /dev/ttyS0) respectively. I have this entry on the server
]machine in /etc/inittab: cp:2345:respawn:/sbin/mgetty -x 9 ttyS0. And
]the rest of the configuration for the mgetty is the default config. On
]the server, /etc/ppp/options has the following entries:
]asyncmap 0
]netmask 255.255.255.0

^
Get rid of this line. It makes no sense for ppp.


]proxyarp
]lock
]crtscts
]modem
]require-pap

]and /etc/ppp/options.ttyS0 has this entry:
]192.168.0.1:192.168.0.2
]in /etc/ppp/pap-secrets file I added <"username" * "password" *>

Without the <..> I assume.


]On the client machine:
]/etc/ppp/options has the following entries:
]lock
]modem
]debug
]crtscts
]defaultroute

Why passive?

]passive
]hide-password
]user root
]lcp-max-configure 50
]/etc/ppp/pap-secrets has the entry "username * password *"
]I can access /dev/modem on client using minicom and dial out to the
]modem connected to the server at /dev/ttyS0 and I get the login prompt
]as expected. I can log on but then when I try to establish a ppp
]connection I initiate the ppp daemon by invoking "/usr/sbin/pppd
]/dev/ttyS0 -detach" and then on the client issue
]"pppd /dev/ttyS0 -detach"

]at this point logs on the server has the following:
]May 18 08:51:41 cp_node1 pppd[26157]: pppd 2.4.1 started by root, uid
]0
]May 18 08:51:41 cp_node1 pppd[26157]: Using interface ppp0
]May 18 08:51:41 cp_node1 pppd[26157]: Connect: ppp0 <--> /dev/ttyS0
]May 18 08:51:41 cp_node1 /etc/hotplug/net.agent: assuming ppp0 is
]already up
]May 18 08:51:41 cp_node1 pppd[26157]: pppd 2.4.1 started by root, uid
]0
]May 18 08:51:41 cp_node1 pppd[26157]: Using interface ppp0
]May 18 08:51:41 cp_node1 pppd[26157]: Connect: ppp0 <--> /dev/ttyS0
]May 18 08:51:41 cp_node1 /etc/hotplug/net.agent: assuming ppp0 is
]already up
]May 18 08:52:11 cp_node1 pppd[26157]: LCP: timeout sending
]Config-Requests

That means that the far end is not responding to ppp requests.
You do not show us the crucial lines in /etc/mgetty*/login.config




]Logs on the client:
]May 18 09:03:33 lustre1 pppd[10017]: pppd 2.4.1 started by root, uid 0

Well you did tell it to be passive for some completely unknown reason.


You also do not show us the chat script or the chat debug output


 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-18-2004, 06:12 PM
Shanthi Paladugu <(E-Mail Removed)> wrote:
> I am trying to set up a PPP server on a Linux machine(2.4.19). I am
> trying to use another Linux machine as a client. On the server and the
> client modems are hooked up to /dev/ttyS0 and /dev/modem ( this ia a
> link to /dev/ttyS0) respectively. I have this entry on the server
> machine in /etc/inittab: cp:2345:respawn:/sbin/mgetty -x 9 ttyS0. And
> the rest of the configuration for the mgetty is the default config. On
> the server, /etc/ppp/options has the following entries:
> asyncmap 0
> netmask 255.255.255.0

^^^^^^^^^^^^^^^^^^^^^
As Bill Unruh says, this is meaningless.

> proxyarp
> lock
> crtscts
> modem
> require-pap


> and /etc/ppp/options.ttyS0 has this entry:
> 192.168.0.1:192.168.0.2
> in /etc/ppp/pap-secrets file I added <"username" * "password" *>


> On the client machine:
> /etc/ppp/options has the following entries:
> lock
> modem
> debug
> crtscts
> defaultroute
> passive
> hide-password
> user root
> lcp-max-configure 50
> /etc/ppp/pap-secrets has the entry "username * password *"


> I can access /dev/modem on client using minicom and dial out to the
> modem connected to the server at /dev/ttyS0 and I get the login prompt
> as expected. I can log on but then when I try to establish a ppp
> connection I initiate the ppp daemon by invoking "/usr/sbin/pppd
> /dev/ttyS0 -detach" and then on the client issue
> "pppd /dev/ttyS0 -detach"


If you don't want to bother setting up mgetty with AutoPPP (AutoPPP
won't work when you login and start pppd on the "server") then try
dialing in with this chat script by using the option "connect chat
-f <script>" on the command line of the "client" pppd:

ABORT "NO DIALTONE"
ABORT BUSY
ABORT "NO CARRIER"
"" ATZ
OK \dATDTxxx-xxxx
CONNECT\s--CONNECT\s \K
TIMEOUT 15
ogin:--ogin: YourLoginName
word: \qYourPassword
$ stty\s-echo;exec\s/usr/sbin/pppd\spassive

You will also need to remove "user root" and "passive" from the
"client" pppd configuration and should add the "asyncmap 0" option.
You should also remove the "lcp-max-configure 50" since it's not
likely that more than the default 10 retries will be of any benefit.
If you expect other LAN hosts to communicate with the client then
you must turn on IP forwarding on the server host. If you will have
a shell prompt from the "server" other than "$" then use it.

Note that this script was written years ago when I first became
interested in Linux and PPP so it's a bit clumsy. Quotes could be
used to eliminate the need to use the separator \s and ATZ likely
should be replaced by a modem initialization string you know works.
The \K is probably not needed when using mgetty and the entire line
beginning with CONNECT could likely be replaced with `CONNECT \d\c'
without causing any problem.

Finally you will need to drop the pppd option "require-pap" on
the server. Moreover, no secrets files are needed to make a PPP
connection this way.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* I gave up on politics when no matter who I voted for, I regretted it.
* -- Pepper...and Salt, WSJ */
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up ad-hoc connection L.S. Windows Networking 3 09-11-2008 04:46 PM
XP PRO--Setting up a network connection-Problem with passphrase Tony V Wireless Networks 4 10-09-2006 04:21 AM
Problem setting up VPN connection using D-link DSL-G604T router jamesbaggott@gmail.com Network Routers 0 03-05-2006 09:40 PM
Problem setting interet connection sharing in W2K3 SP1 Eddy Windows Networking 1 07-12-2005 06:54 PM
Problem setting up wireless lan connection insomniux Linux Networking 1 01-15-2005 09:46 AM



1 2 3 4 5 6 7 8 9 10 11