Main Page | Report this Page
Linux Forum Index  »  Linux Development - System  »  ppp over serial with dial in functionality...
Page 1 of 1    

ppp over serial with dial in functionality...

Author Message
zix...
Posted: Mon Sep 07, 2009 4:54 am
Guest
Hi Everybody,
I am supporting pppos for our target box. As we
have 1 single serial for console and pppos, so I am blocking getty in /
etc/inittab. Now, I have to support the dial in functionality. I think
for this support, we need to run agetty/mgetty. Can anybody give some
idea how to go about this? I am wondering if I run getty, can ppp over
serial run? I thing its possible, but now idea how to go about it. Any
help wil be great.

Thanks a lot for your time,
zix
 
zix...
Posted: Mon Sep 07, 2009 4:59 am
Guest
Quote:
sorry, not the entire dial in, we have to support only incoming call.

thanks,
zix
 
Doug Mitton...
Posted: Tue Sep 08, 2009 7:04 am
Guest
zix <zixenus at (no spam) gmail.com> wrote:

Quote:
Hi Everybody,
I am supporting pppos for our target box. As we
have 1 single serial for console and pppos, so I am blocking getty in /
etc/inittab. Now, I have to support the dial in functionality. I think
for this support, we need to run agetty/mgetty. Can anybody give some
idea how to go about this? I am wondering if I run getty, can ppp over
serial run? I thing its possible, but now idea how to go about it. Any
help wil be great.

Thanks a lot for your time,
zix

I use this regularly. I use mgetty and all the config is default
except for:

(Sorry about the line wrap.)

login.config:
/AutoPPP/ - - /usr/sbin/pppd nodefaultroute auth -chap +pap
192.168.10.1:192.168.10.253 ms-dns 192.168.10.1

* - - /bin/login at (no spam)

You also have to have pap configured with id/passwords in
`pap-secrets` under "etc/ppp/".

I initiate it in `inittab` with:

T3:5:respawn:/sbin/mgetty -D -R 60 -n 2 -x 0 -p " at (no spam) Login:" -i
"/etc/issue.dial" -s 115200 -m '"" ATZM0 OK' ttyS2

This works well and reliably. I can:
- dial out
- dial in and login for a command prompt
- dial in and initiate a PPP connection

Just to keep out idle rif-raf I also use the "ringback" mode.

Good luck!
--
-------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove ".invalid" from my domain.
-------------------------------------------------
 
zix...
Posted: Wed Sep 09, 2009 5:35 am
Guest
Quote:
I use this regularly.  I use mgetty and all the config is default
except for:

(Sorry about the line wrap.)

login.config:
/AutoPPP/ -    -   /usr/sbin/pppd nodefaultroute auth -chap +pap
192.168.10.1:192.168.10.253 ms-dns 192.168.10.1

*       -       -       /bin/login at (no spam)

You also have to have pap configured with id/passwords in
`pap-secrets` under "etc/ppp/".

I initiate it in `inittab` with:

T3:5:respawn:/sbin/mgetty -D -R 60 -n 2 -x 0 -p " at (no spam) Login:" -i
"/etc/issue.dial" -s 115200 -m '"" ATZM0 OK' ttyS2

This works well and reliably.  I can:
- dial out
- dial in and login for a command prompt
- dial in and initiate a PPP connection

Just to keep out idle rif-raf I also use the "ringback" mode.

Good luck!
--
-------------------------------------------------
       http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove ".invalid" from my domain.
-------------------------------------------------


Hi, thanks for your response..well, some points are unclear to me. You
are respawning the mgetty over the only serial port, so how can pppos
for internet work over the same? I think ppp when runs needs the
exclusive access over serial, but if mgetty runs over the same
everytime, how do i run ppp over serial for internet?
lemem say it in a bit detail...
(1) First I get a call, so as mgetty is running it calls ppp and let
teh process continue...then I hangup, can i now run pppd client over
serial to connect my isp and connect to the internet?
(2) If (1) is possible, then the reverse is also possible. But can I
do that in middle? I mean can I receive any call while in the middle
of surfing? or start the internet connection while I am also connected
over the phone line?

Thanks and Regards,
zix
Please let me know a bit in detail....
 
zix...
Posted: Wed Sep 09, 2009 5:35 am
Guest
Quote:
I use this regularly. I use mgetty and all the config is default
except for:

(Sorry about the line wrap.)

login.config:
/AutoPPP/ - - /usr/sbin/pppd nodefaultroute auth -chap +pap
192.168.10.1:192.168.10.253 ms-dns 192.168.10.1

* - - /bin/login at (no spam)

You also have to have pap configured with id/passwords in
`pap-secrets` under "etc/ppp/".

I initiate it in `inittab` with:

T3:5:respawn:/sbin/mgetty -D -R 60 -n 2 -x 0 -p " at (no spam) Login:" -i
"/etc/issue.dial" -s 115200 -m '"" ATZM0 OK' ttyS2

This works well and reliably. I can:
- dial out
- dial in and login for a command prompt
- dial in and initiate a PPP connection

Just to keep out idle rif-raf I also use the "ringback" mode.

Good luck!
--
-------------------------------------------------
http://www3.sympatico.ca/dmitton
SPAM Reduction: Remove ".invalid" from my domain.
-------------------------------------------------


Hi, thanks for your response..well, some points are unclear to me. You
are respawning the mgetty over the only serial port, so how can pppos
for internet work over the same? I think ppp when runs needs the
exclusive access over serial, but if mgetty runs over the same
everytime, how do i run ppp over serial for internet?
lemem say it in a bit detail...
(1) First I get a call, so as mgetty is running it calls ppp and let
teh process continue...then I hangup, can i now run pppd client over
serial to connect my isp and connect to the internet?
(2) If (1) is possible, then the reverse is also possible. But can I
do that in middle? I mean can I receive any call while in the middle
of surfing? or start the internet connection while I am also connected
over the phone line?

Please let me know in a bit detail....

Thanks a lot,
zix
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Fri Dec 11, 2009 3:18 am