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 05-24-2002, 05:06 PM   #1
LQ Newbie
Registered: May 2002
Posts: 1

Rep: Reputation: 0
Unhappy dial-in service supports PPP, and and provides routing to LAN

Am a new user of Linux and trying to setup of the dial-in service that supports PPP, and provides routing to all machines on the local area network
I edited the mgetty.config file to add the following lines in the global section:

modem-type data
rings 3
and changed the init sequence to ATZ AT&K3 :

port ttyS1
init-chat "" \dATZ OK \dAT&K3 OK
and edited the /etc/inittab file to start mgetty by adding:
d3:12345:respawn:/usr/local/sbin/mgetty ttyS1
I restarted the system, and looked at the mgetty log. The log show that commands have been sent to the modem and OK's found. The last line read waiting.

PPP Configuration:
I Set the PPP dial in options in the /etc/ppp/options.ppp-in file, changing the defaults. I know that This configuration does not use any authentication, either pap or chap:

dns-addr <addr of dns, for Win95 connections>
asyncmap 0 #async map to 0
crtscts #use hardware flow control
lock #ensure use of locking
modem #use modem control lines
-chap #don't use CHAP
proxyarp #ensure routing thru the PPP interface
login #use system password database for authentication
I created another options file that contains the IP address to issue to the incoming dial-in machine: /etc/ppp/options.ttyS1.ppp-in. it contain the line:
where IP of my Linux box and IP of a Windows machine in the LAN
I Created a user for the PPP login using adduser. By Seting the initial group to root, and the default shell to be the ppp deamon at /usr/sbin/pppd and Setting the password.
Now, I creat adial-up connetion to dialin my linux box, but the connection is establish for 0.1 minute, I looked at the /var/log/messages and found:
May 22 23:04:33 localhost mgetty[1704]: data dev=ttyS1, pid=1704, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
May 22 23:04:33 localhost pppd[1704]: pppd 2.4.0 started by LOGIN, uid 0
May 22 23:04:33 localhost pppd[1704]: Using interface ppp0
May 22 23:04:33 localhost pppd[1704]: Connect: ppp0 <--> /dev/ttyS1
May 22 23:04:37 localhost pppd[1704]: Could not determine local IP address
May 22 23:04:39 localhost pppd[1704]: Connection terminated.
May 22 23:04:39 localhost pppd[1704]: Connect time 0.1 minutes.
May 22 23:04:39 localhost pppd[1704]: Sent 123 bytes, received 131 bytes.
May 22 23:04:39 localhost pppd[1704]: Exit.

What is wrong in my configuration?
And how can I dialin from out the LAN?
Thanks in advance.
Old 05-27-2002, 06:57 AM   #2
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
pppd needs localip:remoteip

Hi ,

I had faced similar problem one year back while configuring dialin server with mgetty and pppd.

I had to specify local-ip and remote-ip as parameters to the pppd process ( i think i specified it in /etc/ppp/options file .. iam not sure). And i found the answer from the obvious place ... "MAN" pages .... YEH its mentioned there, just check it out.

So try putting in ur /etc/ppp/options file the following :

for example

Here 192..... is my ip and the 10.20.... is the IP of the remote machine.

and then at ur client end, put in the client options file :


If u still face problem try using the "nodefaultip" option of pppd.

I hope this might help you. You should also read the ppp HOWTO at .... its very helpfull .


Last edited by xanthium; 05-27-2002 at 06:59 AM.


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
Dial-In PPP dial-in server/ Cable-modem & LAN / Setting up "dannyboyOnline" dannyboy259 Linux - Networking 2 01-12-2007 01:40 AM
Dial In service Dovid Linux - Software 1 01-27-2005 02:16 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 03:35 PM
Possible Routing / DNS Issue with Dial-Up connection on LAN connected PC geesloper Linux - Networking 2 12-06-2003 07:55 PM
PPP for dial in. <Rockman> Linux - Networking 14 01-04-2003 12:30 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration