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!

PPP/Serial Dialup Issue

Status
Not open for further replies.

gs07sef

Technical User
Nov 8, 2003
2
US
I have a SCO UNIX 4.x machine with a modem attached to /dev/tty2A (for dial out and dial in connections) and /dev/tty2a for getty (what ever that is...some type of bi-directional communication) The user dials in from a remote location (using term- vt100 or scoansi) and gets disconnected immediately or recieive garbled display at her end...she is using term and dialing out to the modem attached to the server. Is this a emulation issue? or something to do with the baud rate between the two modems.


 
Probably not emulation, except for baud rate.
Assumption that 2a is enabled instead of 2A. Look in /etc/inittab to see which is enabled. One will be off the other enabled.
And what gettydefs token is involved (speeds and controls are in /etc/gettydefs) and what modem does the machine set up when it boots (look in /usr/lib/uucp/Devices for dialer type and either the dialer file or Dialers if it is a standard. You can also lock the baudrate on some modems by putting the correct speed controls in the init and hangup strings.
Since there is garbage it sounds like either baudrate or the wrong device.
It would be best if you chose one of the emulations and specify it in /etc/ttytype. But will require you to change the user .profile to force the choice.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
For dialin modem, tty2a should be disabled and tty2A should be enabled.

For a modem to work correctly, you need to have the correct configurations in /etc/gettydefs, /etc/inittab, and /usr/lib/uucp/Devices.

Is this a new setup, or a problem that just started from an existing setup?
 
It Looks like I resolved the issue. I disabled /dev/tty2A and enabled /dev/tty2a. But does the user have to do this when they go switch from dial out to allow the user to dial in??
Here are my settings:

1) /etc/inittab
se2A:234:respawn:/etc/getty tty2A m

2) /etc/gettydefs

#b9600 hupcl #b9600 cs8 sane hucpl tab 3 echo # \r\nlogin:#s

3)/etc/ttytype

ansi tty2A ansi tty2a

4) /usr/lib/uucp/Devices
acu tty2A -2400-9600 Hayes 2408 \d
ditect tty2a - 9600 direct

5) .profile

has statement
eval tset -s

 
I have several modems currently being used for both dialin and dialout. If your modems are set up correctly, they will work seamlessly for both without need for any administration.

The inittab you show does not match the gettydef you listed. What is the gettydef for entry "m"

Your setup is also wrong. tty2a should NOT be enabled, and the Devices file direct entry should refer to port tty2A, NOT tty2a.


I recommend you do the following:

1) Disable both tty2A and tty2a

2) Create a new entry in /etc/gettydefs that looks like...

Code:
o1 # B38400  HUPCL # B38400  CS8 SANE HUPCL TAB3 RTSFLOW CTSFLOW #\r\nlogin: # o1[code]

3) Change the lines in both /etc/inittab and /etc/conf/init.d/sio to...

[code]Se1a:2:off:/etc/getty tty1a o1
Se1A:2:off:/etc/getty -t60 tty1A o1[code]

4) Change the /usr/lib/uucp/Devices lines to...

[code]ACU tty2A - 9600 Hayes 2408 \d
direct tty2A - 9600 direct

5) Re-enable tty2A, but NOT tty2a
 
apeasecpc, while 9600 and not 38400 in the Devices file ?
 
To PHV

I agree that 38400 would be ideal, however their original settings were for 9600 so I thought they should leave them at that. To go up to 38400 they would probably need to change dialers anyway.

These speeds in the Devices file also correspond to the speed settings in the /usr/lib/uucp/Systems file, so they would need to update the System entries to reflect the changed Device speed if they went to 38400, in fact if they have current System entries at 2400 or 4800 they will no longer work with with these Device entries.
 
are they using uucp. Then only yeu would need Systems file. else even upto 115200 speed, u do not require it



[ponder]
----------------
ur feedback is a very welcome desire
 
tshot

In addition to uucp, you can also cu to systems defined in /usr/lib/uucp/Systems, so normal dialout might be effected as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top