Problem
I want to connect to a UnixWare 7.0.1 system via a modem PPP connection from an SCO OpenServer 5.0.4 system using SCO PPP (instead of PPP from Morning Star) link. How do I set this up?
Solution
In order to set up the connection between the two systems, there are several stages of configuration that need to be addressed on both systems. These are:
1. Modems must be physically attached to both systems and checked to make sure they are working.
2. UUCP must be present on the calling system. While UUCP is not used in its own right, some of the UUCP files such as Systems and Devices are used by PPP.
3. PPP (Point-to-Point Protocol) needs to be set up on both systems.
4. The PPP connection must be initiated. In the examples below, both "manual" and "dynamic" outgoing connections are configured on the calling system.
NOTE: In the first part of the example, the outgoing PPP connection is "manual" as opposed to "dynamic" in that the PPP connection is made first with the "pppattach" command. Dynamic bringup will run this automatically once, for example, a "ping" command is executed.
As an example only, two systems were set up as in Figure (a). The OpenServer 5.0.4 system is called SCOTEST and the UnixWare 7.0.1 system is called RODNEY. A modem is attached to COM2 on SCOTEST and to COM1 on RODNEY.
Make sure that the latest operating system and networking patches are installed on all the systems in use.
Figure (a)SCOTEST RODNEY+------------+ +---------------+
| | | |
| OpenServer | | UnixWare |
| 5.0.4 | | 7.0.1 |
| | | |
| | | |
+-----|------+ +-------|-------+
COM2 | (/dev/tty2A) (/dev/term/00m) | COM1
| |
MODEM MODEM
| |
| |
/-/-/-/-/-/-/-/- telephone line --/-/-/-/-/ppp-scotest ppp-rodney193.20.1.20 193.20.1.21pppattach rodney
|
+---------------------->ping ppp-rodney
|
+--------------------------->SCO OpenServer 5:
================(1) First, a modem is attached to a suitable serial port on the system, in this case COM2 or /dev/tty2A. The modem is attached to the port with a serial cable and another connection is run to the floor phone socket. By default, the first serial port is configured on the OpenServer 5 system so if the second serial port is used, as in this case, it must be configured into the system using the SCOadmin Hardware Manager.
The modem can be tested to see if it can dial out on the phone line by setting the following simple entries in the system UUCP files and testing it with the cu(C) command:
( /usr/lib/uucp/Systems )
...
modem Any mydialer 9600( /usr/lib/uucp/Devices )...
mydialer tty2A - 9600( /usr/lib/uucp/Dialers )...
mydialer "" "" ATZ OK-ATZ-OK ATD\s\T CONNECTIn this case, some simple AT dial commands are used to connect down to the modem where you can run the AT dial commands on the modem itself to connect to a remote phone number. For example:
# cu modem
Connected
at
OK
ate1 (to set echo on if you do not see any OK as above)
OK
atdt <telephone number>
CONNECT 9600/ARQ
...
...
etc.Again, this is only for a simple test to check the connections. The modem should be configured into the system by using the SCOadmin Modem Manager. Log in as the root user. Start the SCOadmin utility from the OpenServer GUI Desktop by double-clicking with the mouse on the "System Administration" icon or by opening a UNIX system window from the UNIX icon and running the command:
# scoadminChoose "Networks-> Modem Manager-> Modem-> Add-> Manual Configuration". Choose the manufacturer of your modem, in this case, US Robotics. Choose the model, in this case, Sportster 14400 Fax modem. Set the modem port /dev/tty2A, and the speed 9600 (which can be increased later), and set answer mode Off for the moment. Click on "OK" to record the settings.
(2) Next, UUCP (UNIX to UNIX Copy Program) is configured on the system. However, PPP relies on the underlying UUCP on the system. The UUCP files will be edited and entries added as part of configuring PPP in the next step. However, they must be edited, if necessary, at a later stage, after PPP configuration.
(3) Next, PPP must be set up. This is done in the process of adding a particular type of WAN (Wide Area Network) connection to the system network protocol stacks using the SCOadmin Network Configuration Manager.
Again, log in as the root user and run "scoadmin".
Choose "Network Configuration Manager-> Hardware-> Add new WAN
connection" and select the "SCO TCP/IP PPP driver". The Network
Configuration Manager will now prompt you for various options to
set on this new interface:Attach name rodney
Local host name ppp-scotest
Host IP address 193.20.1.20
Destination name ppp-rodney
Destination IP Address 193.20.1.21
Netmask 255.255.255.0
UUCP destination name uucprodney
Number of UUCP retries 5
Gateway No< Advanced Options ... >Debug level 2
Tag for /etc/pppfilter -
Inactivity timeout -
Async. control character map -
Line flow control -
Protocol field compression Yes
Address field compression Yes
IP address negociation Yes
Old IP address negociation No
Van Jaconson TCP header comp. Yes
Old PPP compatibility No
Authentication protocol -
Authentication timeout -
Local host ID ppp-scotest
Local host password -NOTE: PPP from Morning Star is also available as a PPP protocol for the SCO OpenServer 5 products; however, it is configured via its own interface apart from the Network Configuration Manager. SCO PPP and Morning Star PPP CANNOT coexist on the same system.
NOTE: The IP (Internet Protocol) addresses chosen above were invented for the systems. They need to be different from any other IP addresses that may be set on the system for LAN connections, for example. In this test system, both the OpenServer and UnixWare 7 systems were also connected to an internal LAN.
After adding the SCO PPP link, shut down and reboot the system.
Adding the PPP link should now have edited the following file:
(/etc/ppphosts)ppp-rodney:ppp-scotest attach=rodney uucp=uucprodney retry=5
debug=2 mask=255.2 55.255.0 accm=a0000The following UUCP files should now appear or be edited to appear as follows:
(/usr/lib/uucp/Systems)... uucprodney Any ACU 9600 6313 ogin:-@-ogin:-@-ogin: nppp ssword: jain1234
(/usr/lib/uucp/Devices)...
ACU tty2A - 9600 Sportster_14400_V-42bis(/usr/lib/uucp/Dialers)Nothing added here.UnixWare 7:
==========NOTE: Since the SCOadmin menu utilities are all interconnected, the modem may in fact be configured from within the "Network Configuration Manager" when PPP is being set up. Also, while the broad steps are outlined below, they may be arrived at in different stages. Once you have moved through the menu settings, double-check the settings and files with what is detailed below. The broad steps below are broken out for clarity.
(4) A modem is also attached to the UnixWare 7 system on the first serial port (COM1 or /dev/term/00m, in the case of UnixWare 7). The modem is configured into the system using the SCOadmin Modem Manager. Again, log in as the root user and start SCOadmin either from the command line in a UNIX window by typing "# scoadmin", or from the CDE (Common Desktop Environment) panner options at the bottom of the UnixWare 7 GUI.
Choose "Hardware-> Modem Manager-> Modem-> Add-> Manual Configuration". In this example, "(Standard Modem Types)" is chosen together with "Standard 9600 bps Modem" with the "Modem Port" as "term/00m". The actual modem port is configured on the same screen option with "Configure Port" and set with "Port Type" as "COM 1 modem" with "Incoming only" and "Speed" as "9600".
NOTE: The Modem Manager gives you the option to automatically detect your particular modem. If automatic detection is unsuccessful, manually configure the modem as above. Also, if your particular modem does not appear in the list of devices, try using one of the Standard Modem Types.
The connection down from the UnixWare 7 system to the modem can be tested as with OpenServer 5 above. For example:
# cu -l term/00mwill connect down to the modem. Note there is no "/dev" in front of the device name. The UUCP "Device" file is set as:
(/usr/lib/uucp/Devices)Direct term/00m,M - 9600 direct(5) Next, set up the user account that will be used to log in to the UnixWare 7 system and run the PPP shell.
Go into SCOadmin and choose "Account Manager-> Users-> Add New User":
Login npppAccept the defaults for User ID and the rest of the items on the screen
Change the "Login shell" to /usr/bin/pppshSet the passwordNOTE: Any login name can be set to run the PPP shell; by convention "nppp" is used.
NOTE: Swipe the existing option given for "Login Shell" and type in "/usr/bin/pppsh" as this is not presented as a choice in the picklist.
The system password file "/etc/passwd" should show:
nppp:x:108:1:PPP User Account:/home/nppp:/usr/bin/pppsh(6) Next, PPP is configured on the system.
NOTE: There is only one SCO PPP product available on UnixWare 7.
Again, start SCOadmin and choose "Networking -> Network Configuration Manager", and pick "View", "WAN" from the drop-down menu at the top of the window. The modem that was configured in (4) should be represented on the screen attached to the COM1 port, for example:
XXXX iasy
|
+--------- data over a modem (ACU) (INCOMING)
|
+---------- Standard 9600 bps ModemPPP must now be configured as a software service on top of these. Choose "Software-> Configure PPP ...".
Automatically create default Link Groups ? - Yes,
Create incoming and outgoing configurations by selecting add bundle from the menu .....
PPP has been configured over the modem on the port as above so that the PPP "Link" or hardware/physical component of PPP has been set up. Now the "Bundle" or logical instance of the connection must be configured.
Again, select the "Network Configuration Manager" and view the WAN, highlight the modem and choose "Software-> PPP Manager...-> Edit-> Add-> Bundle".
SetBundle name incom504
Type Incoming
Auto-detected PPP session No
Login user name npppClick "OK" to continue.You are then presented with another interface where the IP addresses are entered:
IP parameters:Local address assignment default
Local Address 193.20.1.21
Remote address assignment default
Remote Address 193.20.1.20Accept the default settings for the rest.
Network mask 255.255.255.0(7) Finally, reboot the system.Testing the connection:
======================To make a manual connection via PPP, run the following command on the SCO OpenServer 5 system:
# pppattach rodneyThis should return to the UNIX "#" command line prompt where you can run commands such as:
# ping ppp-rodneyNOTE: "ppp-rodney" is pinged rather than rodney. The "ppp-rodney" entry is set within the OpenServer 5 system "/etc/hosts" file as:
193.20.1.20 ppp-scotest
193.20.1.21 ppp-rodneyIn this case, DNS is also in use on the system via the system "/etc/resolv.conf" file.
This should return:# ping ppp-rodney
PING ppp-rodney (193.20.1.21): 56 data bytes
64 bytes from ppp-rodney (193.20.1.21):
icmp_seq=0 ttl=64 time=460 ms
64 bytes from ppp-rodney (193.20.1.21):
icmp_seq=1 ttl=64 time=460 ms
64 bytes from ppp-rodney (193.20.1.21):
icmp_seq=2 ttl=64 time=450 ms
64 bytes from ppp-rodney (193.20.1.21):
icmp_seq=3 ttl=64 time=460 ms
64 bytes from ppp-rodney (193.20.1.21):
icmp_seq=4 ttl=64 time=450 ms--- ppp-rodney ping statistics --- 6 packets transmitted, 5 packets received, 16% packet loss round-trip min/avg/max = 450/456/460 ms
On the UnixWare 7 side, the PPP interface can be seen using the "ifconfig" command:
# ifconfig -a... ppp0: flags=71<UP,POINTOPOINT,WANTIOCTLS,RUNNING> mtu 1500 inet 193.20.1.21 --> 193.20.1.20 netmask ffffff00 perf. params: recv size: 4096; send size: 8192; full-size frames: 1
Similarly, on the calling side an interface is up which is created once you "pppattach":
ppp0: flags=4075<UP,DEBUG,POINTOPOINT,WANTIOCTLS,RUNNING, MULTICAST> mtu 1500 debuglevel 2 inet 193.20.1.20 --> 193.20.1.21 netmask ffffff00 perf. params: recv size: 4096; send size: 8192; full-size frames: 1
The connection will stay up depending on the timeout value set in the "/etc/ppphosts" file, or if something else such as DNS is keeping the connection up. It may be broken by bringing down the interface using:
# ifconfig ppp0 downThis will also eventually kill the "/etc/pppd" daemon processes on the calling system. This daemon can be started manually if needed:
# pppattach rodney
pppattach: can't connect to pppd
# /etc/pppd
# pppattach rodney
#
# ps -ef |grep ppp
root 4200 4198 0 04:54:33 ? 00:00:00 /etc/pppd
root 4197 1 0 04:54:24 ? 00:00:00 /etc/pppd
root 4198 4197 0 04:54:24 ? 00:00:00 /etc/pppdThe above is a successful connection but it may not work immediately if the configuration is incorrect. Some testing at each stage of the process may be required. It is best to start from the calling side and work out through the modem to make sure you can connect to the remote side, and then investigate the incoming connection on that side.
As mentioned before, confirm that you are able to connect down to the calling side modem. Connect to it and run an AT dial command to the remote modem and make sure it answers.
Next, since PPP runs over UUCP, make a UUCP connection over to the UnixWare 7 system. As root, run the following command:
# /usr/lib/uucp/uutry -x9 uucprodney./uucico -r1 -Suucprod -x9 >/tmp/uucprod 2>&1&
tail -f /tmp/uucprod: press <DEL> to quit when done
_Request (FALSE), _Switch (TRUE), _CallBack (FALSE),
_MyName (), _Commands rmail
chdir(/usr/spool/uucp/uucprod)
lockname(/usr/spool/uucp/LCK..uucprod)
conn(uucprod)
Device Type ACU wanted
lockname(/usr/spool/uucp/LCK..tty2a)
mlock tty2A succeeded
fixline(7, 9600)
processdev: calling setdevcfg(uucico, ACU)
dialer args :/usr/lib/uucp/Sportster_14400_V-42bis:-x9:
/dev/tty2A:6313:9600
hangup - timeout 15
mlock tty2A succeeded
fixline(7, 9600)
processdev: calling setdevcfg(uucico, ACU)
dialer args :/usr/lib/uucp/Sportster_14400_V-42bis:-x9:
/dev/tty2A:6313:9600
hangup - timeout 15
Sent MODEM <<+++>>-OK
Sent MODEM <<ATQ0^M>>-OK
Sent MODEM <<ATH^M>>-OK
MODEM returned <<^M^JOK^M>>-OK
Sent MODEM <<AT&FE0V1&A3&B1&D2&S0&H1&R2&I0&M4^M>>-OK
MODEM returned <<^J^M^JOK^M>>-OK
Sent MODEM <<ATM0^M>>-OK
MODEM returned <<^J^M^JOK^M>>-OK
sending dial string
Sent MODEM <<ATDT6313^M>>-OK
wait for connect - timeMODEM returned <<^J^M^JOK^M>>-OK
Sent MODEM <<ATM0^M>>-OK
MODEM returned <<^J^M^JOK^M>>-OK
sending dial string
Sent MODEM <<ATDT6313^M>>-OK
wait for connect - timeout 73
MODEM returned <<^J^M^JCONNECT 9600/ARQ/V32/LAPM^M>>-CONNECT
Exit with 0
Forked 4222 Wait got 4222 Status 0
getto ret 7
expect: (ogin:)
^Jtimed out
sendthem (@^M)
expect: (ogin:)
^M^M^J^M^M^JWelcome to UnixWare 7.0.1^M^M^JThe system's name
is rodney.^M^M^J^M^
M^Jlogin:got it
sendthem (nppp^M)
expect: (ssword:)
nppp^M^JPassword:got it
sendthem (jain1234^M)
ISTRIP cleared
msg >^M^JUnixWare 7.0.1^M^Jrodney^M^JCopyright (c)
1976-1998 The Santa Cruz Operation, Inc.
...
< deleted here >
...
1:03 1998 on term/00m^M^J~}#@!}!}+} }.}%}&_Ez}'}"}(}"}
7^C~~}#@!}!}+} }.}%}&_Ez}'
...
etc.The last section shows the response from the PPP daemon on the UnixWare 7 system, once the login by "nppp" is complete.
Once the modem and UUCP connection is shown to be working, investigate the PPP connection. Debug has been set in the calling systems UUCP "/etc/ppphosts" file at level 2 so the connection will be traced in the OpenServer 5 "/usr/adm/syslog". For example, run the "pppattach" command again:
# pppattach rodney
#
# tail /usr/adm/syslog...
...
Oct 8 17:11:40 scotest pppd[4198]: ppp_rdstack_cnf:
failed to open stack configuration file /etc/pppstack,
will use defaults
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ICP:
administrative open,Initial->Starting
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ICP:
low layer up,Starting->Req_sent
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ICP:
Send config_req
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ppp send:
FF03FEFF0101000C01080004284230F0
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ppp receive:
FF03FEFF0101000C01080004284230F0
Oct 8 17:11:40 scotest pppd[4197]: Link id(463):ICP:Receive
config_req+,Req_sent->Ack_Sent
etc.
etc.Another way (perhaps clearer) to follow the progress of the system dialing out, is to start the pppd daemon with the "-d9" debug flag and observe the call-out on the OpenServer character screen (switched to by <Ctrl + Alt + F1). Stop the existing pppd daemon and restart, for example:
# /etc/pppd -d9Then run the "pppattach/ping" commands from the character screen.
Debug can be switched on on the UnixWare 7 side on PPP with the commands:
# ppptalk list bundle incom504 |grep "links"=> maxlists = 1
minlinks = 1
links = link_0# ppptalk debug high link link_0The debug is logged in the file "/var/adm/log/ppp.log", for example:
Oct 08 16:53:45 : Bundle incom504 : AUDIT incoming incom504. Disconnected. Total connection time 0:02:40. Data 0 Kbytes Oct 08 16:54:54 : Incoming call: login 'nppp', callerid '' Oct 08 17:07:30 : Incoming call: login 'nppp', callerid ''
The ppptalk(1M) utility can also be used interactively as follows:
# ppp
ppp >list bundles
bundle
----------------------------------------
incom504
ppp >or:ppp >list bundle incom504
bundle incom504 {
type = in
protocols = ip_incom504
mrru = 1500
ssn = enabled
maxlinks = 1
minlinks = 1
links = link_0
ed = enabled
etc.
etc...or:ppp >stats bundle incom504
Bundle incom504
Time Stamp : Thu Oct 8 18:21:52 1998
Connected at : Thu Oct 8 17:07:30 1998
0 bytes sent
0 bytes receivedppp >The pppstatus(1M) command may also be used to display the status of a PPP bundle. For example "pppstatus -10 incom504" will display every 10 seconds on screen until interrupted, that is:
Bundle
incom504 Phase:Network
Open Links : 1
Total Links : 1Bundle protocolsIPCP State:SucceededLink protocolslink_0 Phase:Network Status:Incoming
CHAP Status: Local Initial : Peer Initial
PAP Status: Local Initial : Peer Initial
LCP State:Succeeded See "/etc/ppp.d/.pppcfg" for more settingsOther:
=====Debug messages like the following may be seen in certain circumstances:
Oct 07 14:13:56 : ULR User Requests links for bundle 'incom504' Oct 07 14:14:47 : Incoming call: login 'ppptest', callerid '' Oct 07 14:14:47 : Incoming call: dev '/dev/pts016', speed '9600' Oct 07 14:14:47 : Incoming call: No Suitable active link on which to accept call
This indicates that the PPP on the UnixWare 7 side is having a problem interfacing with the hardware side of the incoming connection -- "Link" generally refers to the physical hardware side, and "Bundle" to the logical side of the connection. In this case, the modem interface to a US Robotics modem in use had to be switched to use a Standard Modem interface within the SCOadmin Modem Manager.
Dynamic Outgoing:
================In order to configure a dynamic outgoing connection from the calling OpenServer 5 system, the initial PPP manual connection must be removed.
As root, enter SCOadmin and start the Network Configuration Manager. Highlight the existing SCO TCP/IP PPP driver, choose "Hardware-> Remove Network Device". Then configure the new connection by choosing "Hardware-> Add new WAN Connection-> SCO TCP/IP PPP Driver-> Continue":
Select one networking product to
be added to SCO TCP/IP PPP driver: SCO TCP/IPAddPlease choose a connection type: Dynamic OutgoingLocal host name: ppp-scotestHost IP address: 190.20.1.20Destination Name: ppp-rodneyDestination IP address: 190.20.1.21Netmask: 255.255.255.0UUCP destination name : uucp-rodneyNumber of UUCP retires: 3Gateway: NoNo "Advanced Options" are changed from the default.
Relink the kernel and reboot the system.
The OpenServer system files should appear as follows;
(/etc/ppphosts)...
ppp-rodney:ppp-scotest uucp=uucprodney retry=3 debug=2
mask=255.255.255.0The UUCP files are as the manual configuration:
(/usr/lib/uucp/Systems)uucprodney Any ACU 9600 6313 ogin:-@-ogin:-@-ogin: nppp ssword: jain123
(/usr/lib/uucp/Devices)ACU tty2A - 9600 Sportster_14400_V-42bisThis time the connection is simply made with the "ping" command alone, for example:
# ping ppp-rodney
PING ppp-rodney (193.20.1.21): 56 data bytes
64 bytes from ppp-rodney (193.20.1.21): icmp_seq=0
ttl=64 time=450 ms
64 bytes from ppp-rodney (193.20.1.21): icmp_seq=1
ttl=64 time=460 ms
etc.
etc.Again, the connection can be monitored with the debug options mentioned above.
See also
ppp(ADMN), ppptalk(1M), ppp(7), ifconfig(1Mtcp), ifconfig(ADMN),
ppphosts(SFF).ta105424, "What do the different stages in PPP negotiation signify?"
ta109390, "How to add an unsupported modem to the SCO Modemmanager."
SCO OpenServer and UnixWare 7 online documentation via SCOhelp.