Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modem setup/config for dialin

Status
Not open for further replies.

johny2K

Technical User
Dec 19, 2001
184
CA
hi experts,

i am trying to configure my server to accommodate incoming (dialin) login under redhat 9. can anyone share some help on this?

is redhat9 has a device auto-detect features?

 
I think I remember seeing a ppp server on RH 9.0. I don't use the gui so I don't know how to set it up.
 
setup a line in your inittab file to run mgetty like:
modem:2345:respawn:/sbin/mgetty -s 19200 /dev/ttyS04
after you insert the line , enter "init q" to reexamine
the inittab file. man mgetty for more options
 
hello there,

i checked, i don't have mgetty in my RedHat9 server instead mingetty & agetty only.

i can connect using winxp hyperterminal but couldn't see the login prompt. it just showed you, you are connected at the left-bottom of the hyperterminal.

i added up modem:2345:respawn:/sbin/agetty -s 115200 /dev/ttyS0 under /etc/inittab but still the same result. using linux xwin network device, i can query modem.

i even tried mingetty, but same result and it's for console only?

anything i missed?
 
I am not familiar with agetty but man agetty shows an inittab entry more like:
modem:2345:respawn:/sbin/agetty -mt60 ttyS0 19200

you should try to connect at 8-1-N , also, you can do a ps command to make sure that agetty is even running (listening)
You are apparently using an external modem , correct?
 
yes. i am using an external usrobotics modem 56k.

i tried the ff, and i can see the modem:

Internet->More Internet Applications->Kpp->

Device (folder)

Modem Device : /dev/ttyS0
Flow Control : Hardware [(CRTSCTS)]
Line Termination : CR
Connection Speed : 57600
/ Use lock File
Modem Timeout : 60 sec

Modem (folder)

Busy Wait 0
Modem Commands - OK
Query Modem - OK (i can query on modem)

anything else i missed? i put the line under /etc/inittab:
d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100

and grep show me the following:

root 866 1 0 Aug17 tty1 00:00:00 /sbin/mingetty tty1
root 867 1 0 Aug17 tty2 00:00:00 /sbin/mingetty tty2
root 868 1 0 Aug17 tty3 00:00:00 /sbin/mingetty tty3
root 869 1 0 Aug17 tty4 00:00:00 /sbin/mingetty tty4
root 870 1 0 Aug17 tty5 00:00:00 /sbin/mingetty tty5
root 871 1 0 Aug17 tty6 00:00:00 /sbin/mingetty tty6
root 11249 1 0 11:05 ttyS0 00:00:00 [login]
root 11420 10377 0 13:14 pts/0 00:00:00 grep tty

i can establish modem-to-modem communication, but no LOGIN screen.


 
Your grep would indicate that agetty is not running. Did you run 'init q' to restart the inittab?. Look in /var/log to see if their is an agetty.log
 
sorry - i gave you incomplete information.

here's what i got from my system:

1. under /etc/inittab

d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100

2. ps -ef | grep tty => shows these:

root 866 1 0 Aug17 tty1 00:00:00 /sbin/mingetty tty1
root 867 1 0 Aug17 tty2 00:00:00 /sbin/mingetty tty2
root 868 1 0 Aug17 tty3 00:00:00 /sbin/mingetty tty3
root 869 1 0 Aug17 tty4 00:00:00 /sbin/mingetty tty4
root 870 1 0 Aug17 tty5 00:00:00 /sbin/mingetty tty5
root 871 1 0 Aug17 tty6 00:00:00 /sbin/mingetty tty6
root 11920 1 0 Aug20 ttyS0 00:00:00 [login]
root 16009 1 0 15:47 ttyS1 00:00:00 /sbin/agetty -mt60 38400 19200 9600 2400 1200 ttyS1 vt100
root 16052 16010 0 15:47 pts/0 00:00:00 grep tty

what could possibly wrong?
 
The 'ps' is showing a login process active on ttyS0. Kill this process (kill -9 11920) and retry. How old is the modem? Can you talk directly to it with 'cu' and display the modem settings?
 
hello there,

i don't think i have "cu" command in my redhat linux9.

my modem is a brand new external 56k USRobotics.
 
Try setting your speed to a fixed value from the pc you are dialing from, such as 19200. Are you sure the cable you are using is a modem cable? You should have cu. Type 'whereis cu'. You should be able to communicate with the device directly with command such as "cu -s 19200 -l /dev/ttyS0". Use ~. (tilde period) to end the session. What are the settings of /dev/ttyS0 -owner, group, permissions? Can you call out using the modem?
 
Try this form.

Setting up PPP on Linux

Summary:

This document will show how to set up a dial in connection using PPP.

Steps to resolve:
· Install latest PPP rpm.
· Install libgr-progs rpm.
· Install latest mgetty rpm.

Server Setup:

· Step 1: add the following lines to the bottom of /etc/inittab for each modem:

Ex:

#For Modem

S1 :2345 :respawn:/sbin/mgetty -D ttyS1

#end of modem

· Step 2: Edit the /etc/mgetty+sendfax/login.config file. Uncomment the Autoppp line, this will enable it.

It looks like this:

/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug

· Step 3: Now edit /etc/ppp/pap-secrets, type the information under each of the following, they are like headers, it looks like this:

# Secrets for authentication using PAP
# client server secret acceptable local IP addresses
{$client_name} * {$password} *

Definitions:
Client = the account you will be logging in with.
Server = the name of the computer that does the authentication, for us this isn’t
Important, use a * this indicates “any.”
Secret = the password for the account.
Acceptable IP = this is the IP required for connection to be made.

· Step 4: edit /etc/ppp/options:

Example:

lock
-detach
modem
crtscts
proxyarp
asyncmap 0
defaultroute /dev/ttyS”X” (specify which COM port you are using).
netmask 255.0.0.0 (use the appropriate netmask)

· Step 5: create in the /etc/ppp directory a file called options.ttyS”x”. In this, place the following information:

IpofServer:IpofClient

· NOTE: When you set up your dial up connection, in the network settings, use the IP address that was just put in as the “IpofClient.”


Client Setup:

· Step 1: Using MS Dial Up Networking, create a new connection.
· Step 2: Use appropriate phone number. Enter through remaining screens, with appropriate answers.
· Step 3: At the “connect” screen, put in the user name and password that were used in step 3 of the Server Setup.
· Step 4: Select Properties.
· Step 5: Select Networking tab.
· Step 6: Select the Internet Component (TCP/IP), and choose properties.
· Step 7: Select Obtain an IP address automatically. Press O.K. until you are back at the “connect” screen. It is now ready to dial.



If you have questions let me know.

 
hi sstilton,
i was wondering.. im doing the same thing and i cant make it work.. i just want to clarify something.. ive installed all the rpms needed.. if ill be adding in username and passwords " foo * bar * " (w/o the quotes) in pap-secrets do i still have to add those account as system users?
im getting this error..

Aug 30 18:40:07 devserver login[15993]: FAILED LOGIN 2 FROM (null) FOR egmanmi, Authentication failure
Aug 30 18:43:34 devserver mgetty[15994]: data dev=ttyS0, pid=15994, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/bin/login', user='foo'

assuming that i dont want to add foo as a system user? is pap-secrets sufficient?

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top