Installing TCP/IP on Motorola SVR3
TCP/IP
- required software: NSE: Network Services Extensions.
- it comes on a separate streamer tape labeled: NSE
- 8x20: e.g. 8420: NSE comes standard
- 8x40: e.g. 8640: NSE extra cost option
- required hardware:
- MVME 374 Ethernet Controller
- transition module (cable from controller to back of machine)
Step by step procedure:
1. Make sure o/s and data are backed up
2. Make sure no other users are logged in
3. Check that "sysgen" is set to "standard", not "tapeboot"
# sysgen
sysgen: Loading configuration information from /usr/src/uts/mot/sysgen.
SYSGEN V1.5
-> Standard Configuration for 88k standard
Stripped down Configuration for m88k Bootable Tape tapeboot
If standard: q to quit, N to avoid update, proceed to next step
If tapeboot:
use arrow to select "standard"
q to quit, make sure no other users are logged in
answer Y (no CR) to update questions, wait for system prompt #
reboot
4. Make sure system node name is set correctly
----------------------------------------------
# sysadm
SYSTEM ADMINISTRATION
1 diagnostics system diagnostics menu
2 diskmgmt disk management menu
3 filemgmt file management menu
4 machinemgmt machine management menu
5 packagemgmt package management menu
6 softwaremgmt software management menu
7 syssetup system setup menu
8 ttymgmt tty management menu
9 usermgmt user management menu
Enter a number, a name, the initial part of a name, or
? or ? for HELP, q to QUIT: 7
SYSTEM SETUP
1 admpasswd assign or change administrative passwords
2 datetime set the date, time, time zone and daylight savings time
3 devsetup tape and floppy device setup menu
4 nodename set the node name of this machine
5 setup set up your machine the very first time
6 syspasswd assign system passwords
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 4
This machine is currently called "unix".
Do you want to change it? [y, n, ?, q] y
What name do you want to give it? [q] m8640
Press the RETURN key to see the syssetup menu [?, ^, q]: ^
5. If 8x40, install NSE from streamer tape labeled: NSE
-------------------------------------------------------
SYSTEM ADMINISTRATION
1 diagnostics system diagnostics menu
2 diskmgmt disk management menu
3 filemgmt file management menu
4 machinemgmt machine management menu
5 packagemgmt package management menu
6 softwaremgmt software management menu
7 syssetup system setup menu
8 ttymgmt tty management menu
9 usermgmt user management menu
Enter a number, a name, the initial part of a name, or
? or ? for HELP, q to QUIT: 6
Double check that nse is not already installed.
SOFTWARE MANAGEMENT
1 installpkg install new software package onto built-in disk
2 listpkg list packages already installed
3 removepkg remove previously installed package from built-in disk
4 runpkg run software package without installing it
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 2
The following software packages have been installed:
BOS SYSTEM V/88 Base Operating System R32V3.2 FH32.32 RM01
olmp On-line Manual Pages Object Package (OLMP) BOS
tot On-line Problem Descriptions (Tars on Tape) BOS
Press the RETURN key to see the softwaremgmt menu [?, ^, q]:
SOFTWARE MANAGEMENT
1 installpkg install new software package onto built-in disk
2 listpkg list packages already installed
3 removepkg remove previously installed package from built-in disk
4 runpkg run software package without installing it
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 1
Insert the removable medium for the package you want to install
into the ctape drive.
Press when ready. Type q to quit.
Installing "SYS V/88 Network Services Extension R32V3.2 NT32.32 RM01"
Press to continue, type q to quit.
180 blocks
***> Installing NSE
12890 blocks
1670 blocks
20 blocks
50 blocks
***> Disabling the following sysgen descriptions:
strbufs.jls strbufs.gse strbufs strbufs.ns4
***> Selecting greater than 4 meg configuration
***> Enabling the following sysgen descriptions:
if37x tpimux du pty vme37x nfs nsetune en596 ifhwk376 sockets strbufs.ns4+
***> Merging in new sysgen parameters
***> Merging configuration 'standard'.
***> standard: Disabling obsolete/changed collection 'tpimux'.
***> standard: Enabling new collection 'tpimux'.
************************************************************
* Notice: *
* *
* You must rebuild the kernel using the command *
* *
* sysgen -bgi *
* *
* and reboot the system to complete the *
* NSE upgrade or installation procedure. *
************************************************************
"SYS V/88 Network Services Extension R32V3.2 NT32.32 RM01" is now installed
Press the RETURN key to see the softwaremgmt menu [?, ^, q]: q
Double check that list s/w packages now shows nse is installed.
SOFTWARE MANAGEMENT
1 installpkg install new software package onto built-in disk
2 listpkg list packages already installed
3 removepkg remove previously installed package from built-in disk
4 runpkg run software package without installing it
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 2
The following software packages have been installed:
BOS SYSTEM V/88 Base Operating System R32V3.2 FH32.32 RM01
nse SYS V/88 Network Services Extension R32V3.2 NT32.32 RM01 NT32.32
olmp On-line Manual Pages Object Package (OLMP) BOS
tot On-line Problem Descriptions (Tars on Tape) BOS
Press the RETURN key to see the softwaremgmt menu [?, ^, q]:
# sysgen -big
make -f io.mk MAKE=make FRC= DASHG= DASHO=-O -X311 INCRT=/usr/include LIBDIR=../cf/m88k SYS=3.2 CC=cc -F0 AR=ar CFLAGS=-O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI CPU=m88k
make -f m88kio.mk "MAKE=make" "AR=ar" "CC=cc -F0" "FRC=" "CPU=m88k" "INCRT=/usr/include" "CFLAGS=-O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI" "DASHO=-O -X311"
make -f scsi.mk "MAKE=make" "CPU=m88k" "AR=ar" "CC=cc -F0" "FRC=" "INCRT=/usr/include" "CFLAGS=-O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI" "DASHO=-O -X311"
make -f sbc_scsi.mk "MAKE=make" "CPU=m88k" "AR=ar" "CC=cc -F0" "FRC=" "INCRT=/usr/include" "CFLAGS=-O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI" "DASHO=-O -X311"
./build_sdl_mk >sdl.mk
make -f sdl.mk "MAKE=make" "CPU=m88k" "AR=ar" "CC=cc -F0" "FRC=" "INCRT=/usr/include" "CFLAGS=-O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI" "DASHO=-O -X311"
sed "/^version[ ]/s/\".*\"/\"`date +%y%m%d`\"/" master \
>tmp && mv tmp master
./config -m master dfile
cc -F0 -c -O -X311 -I/usr/include -DINKERNEL -DSTREAMS -DREM -Dm88k -DREVCCMMU -DMULTI -DBIOMULTI conf.c
C-88000 1.8.6m1 Copyright (C) 1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993 Green Hills Software, Inc. All rights reserved.
rm -f unix unix.nm
ld -o unix ld.VME18X m88kvec.o conf.o lib.ml lib.os lib.io lib.s5 lib.du lib.tcpip lib.nfs lib.kdb lib.c37x lib.cd lib.nsedebug lib.sbc lib.scsi lib.ml lib.os lib.io lib.s5 lib.du lib.tcpip lib.nfs lib.kdb lib.c37x lib.cd lib.nsedebug lib.sbc lib.scsi lib.stub
strip -u -S unix
mcs -da "System V/88 3.2" unix
chmod 775 unix
../../kdb/kdbnm88 -q unix
../../kdb/kdbnm88: 153600 bytes were reserved for symbols, 110787 bytes were used
unix made.
#
6. Listing of /etc/rc2.d scripts added by NSE installation
----------------------------------------------------------
# cd /etc/rc2.d
# ls -CF
K30fumounts* S02CHKDUMP* S20sysetup S47strlog* S75cron
K40rumounts* S03PRESERVE S21perf S50nls_inet* S79port_hold
K50rfs* S04LPSETUP S30acct +S55yp* S80lpsched
S00VDSK S05RMTMPFILES S34errlog +S60netcmds*
S00nodename* S10disks S40c37x* +S65routes*
S01LINKBOOT S10m332xt +S40enp* S70uucp
S01MOUNTFSYS S10m337 +S45inetdaemon* +S72nfs*
+ sign added above manually to these handouts
indicates rc2.d script did not exist previously
added during install of NSE
7. Reboot the system after NSE installation
-------------------------------------------
# ps -ef
UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 11:13:22 ? 0:00 sched
root 1 0 0 11:13:22 ? 0:01 /etc/init
root 2 0 0 11:13:22 ? 0:00 vhand
root 3 0 0 11:13:22 ? 0:00 bdflush
root 4 0 0 11:13:22 ? 0:00 streams
root 6 1 0 11:13:22 ? 0:00 /local/bin/console_log
root 646 1 0 11:14:41 console 0:00 /etc/getty console console
root 434 1 0 11:14:23 ? 0:00 /usr/bin/strerr
root 365 1 0 11:14:00 ? 0:00 /usr/lib/errdemon
root 409 1 0 11:14:20 ? + 0:00 /usr/etc/inet/tpid
root 420 1 0 11:14:21 ? + 0:00 /usr/etc/inet/inetd
root 501 1 0 11:14:28 ? + 0:00 /usr/etc/rwalld
root 633 1 0 11:14:35 ? 0:00 /local/bin/port_hold
root 630 1 0 11:14:35 ? 0:00 /etc/cron
root 647 1 1 11:14:41 tty000 0:00 ksh
root 640 1 0 11:14:41 ? 0:00 /usr/lib/lpsched
root 682 647 1 11:18:14 tty000 0:00 ps -ef
+ sign added above manually to these handouts
shows new processes after installing NSE
but before setting up TCP/IP
8. Set up TCP/IP on SVR3
------------------------
# sysadm
SYSTEM ADMINISTRATION
1 diagnostics system diagnostics menu
2 diskmgmt disk management menu
3 filemgmt file management menu
4 machinemgmt machine management menu
5 packagemgmt package management menu
6 softwaremgmt software management menu
7 syssetup system setup menu
8 ttymgmt tty management menu
9 usermgmt user management menu
10 ypusermgmt yellow pages user management menu
Enter a number, a name, the initial part of a name, or
? or ? for HELP, q to QUIT: 5
PACKAGE MANAGEMENT
1 FACE FACE management menu
2 lpmgmt LP print service management menu
3 nfsmgmt NFS management menu
4 rfsmgmt remote file sharing management menu
5 transpmgmt transport provider management menu
6 uucpmgmt basic networking utilities menu
7 ypmgmt Lachman Yellow Pages Database Package for the 3B
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 5
TRANSPORT PROVIDER MANAGEMENT
1 tcpip tcpip management menu
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 1
TCPIP MANAGEMENT
1 addrmgmt tcpip transport provider address management menu
2 restarttcpip kill and restart tcpip transport provider
3 setuptcpip set up tcpip transport provider
Enter a number, a name, the initial part of a name, or
? or ? for HELP, ^ to GO BACK, q to QUIT: 3
If you are not sure how to answer any prompt, type "?" for HELP.
If you want to QUIT the subcommand at any time, type "q".
SET UP TCPIP TRANSPORT PROVIDER
If you have not set up the tcpip transport provider, this subcommand will
walk you through all of the steps necessary to set it up. These steps are:
* entering the addresses of all the machines you want to
communicate with (including your machine address)
* setting up the network listener
* starting the tcpip transport provider
In some cases, the "setuptcpip" subcommand will call other Tcpip Management
subcommands to do specific tasks. Later, when you want to do these
tasks as part of your ongoing tcpip transport provider administration,
you will use these specific Tcpip Management sysadm menus.
There are tasks (that you won't need to do very often) that can not be
done through the specific menus. To do these you will have to rerun this
"setuptcpip" subcommand. Currently the only task that must be done
withrthisTsubcommandnisnsetting up the network listener after your
machine address has been changed.
Enter to continue:
SET UP MACHINE ADDRESSES ...
All machines that use the tcpip transport provider to communicate with
other machines must be uniquely identified by a host name and address.
These hostname/address pairs are stored in the tcpip transport provider
database. The addresses are stored in Internet dot notation (Ex:100.2.3.47).
Before you continue, there must be address entries in the tcpip transport
provider database for all of the machines you want to communicate with over
the network using the following services; RFS, UUCP, or internet
utilities.
IT IS VERY IMPORTANT THAT YOUR MACHINE AND ADDRESS BE ADDED TO THE
TCPIP TRANSPORT PROVIDER DATABASE ALSO!
Would you like to add any host addresses to the tcpip transport
provider database? [y, n, q] y
Now calling the "addaddr" subcommand from the Address Management
Menu. Entering "q" to any prompt in the subcommand will quit the
"addaddr" subcommand and return you to the "setuptcpip"
subcommand.
If you are not sure how to answer any prompt, type "?" for HELP.
If you want to quit the subcommand at any time, type "q".
ADD HOST ADDRESS TO TCPIP TRANSPORT PROVIDER DATABASE
To enable your machine to communicate with other machines on the
network, you must know its address. The addresses used by this
tcpip transport provider are called Internet addresses and
are expressed in Internet dot notation (for example, 100.2.12.4).
Enter the HOST NAME to be added to the tcpip transport
provider database [?, q]: ?
The name of a host machine is the system name of that machine. It
may be up to 8 characters long.
Enter the HOST NAME to be added to the tcpip transport
provider database [?, q]: m8640
Enter the HOST ADDRESS to be added to the tcpip transport
provider database [?, q]: ?
Enter the host address. It must be specified in Internet dot notation
and be unique.
Example: 100.3.45.10
Enter the HOST ADDRESS to be added to the tcpip transport
provider database [?, q]: 200.1.1.1
Entry for "m8640" with address "200.1.1.1" added to tcpip transport
provider database.
Do you want the super-user on "m8640" to have super-user permission
on your system for copying files and logging in? [y, n, ?, q] ?
Your machine can be setup so the super-user on "m8640" can log in as
root on your machine without a password or copy files to and from your
machine as if he were the super-user. This is used to extend
super-user privilege to select machines.
Do you want the super-user on "m8640" to have super-user permission
on your system for copying files and logging in? [y, n, ?, q] n
Do you want users other than the super-user on "m8640" to have equal
permissions on your system for copying files and logging in? [y, n, ?, q] ?
Your machine can be setup so the all users other than super-user on
"m8640" can log into your machine without a password. They may also
copy files to and from your machine as if they were logged on your
machine. This is used to extend user privilege to select machines.
Do you want users other than the super-user on "m8640" to have equal
permissions on your system for copying files and logging in? [y, n, ?, q] n
Do you want to add another host? [y, n, q] y
Enter the HOST NAME to be added to the tcpip transport
provider database [?, q]: pc486
Enter the HOST ADDRESS to be added to the tcpip transport
provider database [?, q]: 200.1.1.2
Entry for "pc486" with address "200.1.1.2" added to tcpip transport
provider database.
Do you want the super-user on "pc486" to have super-user permission
on your system for copying files and logging in? [y, n, ?, q] n
Do you want users other than the super-user on "pc486" to have equal
permissions on your system for copying files and logging in? [y, n, ?, q] n
Do you want to add another host? [y, n, q] n
To add tcpip transport provider addresses in the future use the "addaddr"
subcommand on the Address Management Menu.
SET UP NETWORK LISTENER ...
The network listener is a process that "listens" on the network for
incoming requests for service. These service requests may include RFS
requests and UUCP requests. The listen process listens on your machine
address so other machines may connect to your machine.
Network listener setup complete.
network listener for net_spec "tcpip"
listen address: \x00020401c8010101
listen services: rfsetup, uucico, network management
Enter to continue:
START TCPIP TRANSPORT PROVIDER ...
Now that the tcpip transport provider configuration is complete, this
transport provider must be started before it can be used. There are
several processes that make up this transport provider service. One
process, tpid(1M), links together the necessary kernel streams modules to
provide this service. Other processes are network listeners for
various services.
Would you like to start the tcpip transport provider? [y, n, q] y
Now calling the "restarttcpip" subcommand from the Tcpip Management
Menu. Entering "q" to any prompt in the subcommand will quit the
"restarttcpip" subcommand and return you to the "setuptcpip"
subcommand.
If you are not sure how to answer any prompt, type "?" for HELP.
If you want to quit the subcommand at any time, type "q".
RESTART TCPIP TRANSPORT PROVIDER
This subcommand allows you to restart the tcpip transport provider. All known
system processes using this transport provider will also be restarted.
This subcommand should only be used in extreme cases in the event of an
isolated network hardware or software failure or initial setup.
Do you want to continue? [y, n, q] y
Shutting down services.
NFS shutdown: [NFS Shutdown Complete]
Internet services removed.
Shutting down Transport Provider daemon.
Starting services.
374_2 downloaded.
Transport Provider daemon started.
Internet services provided.
portmap started.
Starting network listener service.
routed started.
Network Commands: rwalld
NFS Startup...
ONC daemons:
NFS daemons:
Lock manager:
NFS Startup complete.
Attempt to restart tcpip transport provider complete.
To restart the tcpip transport provider in the future without
rebooting, use the "restarttcpip" subcommand on the Tcpip Management Menu.
Press the RETURN key to see the tcpip menu [?, ^, q]: q
#
9. Use ping to test TCP/IP; also telnet localhost
-------------------------------------------------
# ping m8640
PING m8640: 56 data bytes
64 bytes from 200.1.1.1: seq=0. time=17. ms
64 bytes from 200.1.1.1: seq=1. time=0. ms
64 bytes from 200.1.1.1: seq=2. time=0. ms
64 bytes from 200.1.1.1: seq=3. time=0. ms
64 bytes from 200.1.1.1: seq=4. time=0. ms
64 bytes from 200.1.1.1: seq=5. time=0. ms
Press DEL after about 5 successful packets.
----m8640 PING Statistics----
6 packets transmitted, 6 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/2/17
# telnet localhost
Should allow you to login to local system.
10. Listing of processes/daemons used by TCP/IP
-----------------------------------------------
# ps -ef
UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 11:13:22 ? 0:00 sched
root 1 0 0 11:13:22 ? 0:07 /etc/init
root 2 0 0 11:13:22 ? 0:00 vhand
root 3 0 0 11:13:22 ? 0:00 bdflush
root 4 0 0 11:13:22 ? 0:00 streams
root 6 1 0 11:13:22 ? 0:00 /local/bin/console_log
root 646 1 0 11:14:41 console 0:00 /etc/getty console console
root 434 1 0 11:14:23 ? 0:00 /usr/bin/strerr
root 365 1 0 11:14:00 ? 0:00 /usr/lib/errdemon
root 1154 647 2 11:55:02 tty000 0:00 ps -ef
root 1040 1 0 11:44:27 tty000 + 0:00 /usr/etc/rwalld
root 633 1 0 11:14:35 ? 0:00 /local/bin/port_hold
root 630 1 0 11:14:35 ? 0:00 /etc/cron
root 647 1 0 11:14:41 tty000 0:00 ksh
root 640 1 0 11:14:41 ? 0:00 /usr/lib/lpsched
root 932 1 0 11:44:21 ? + 0:00 /usr/etc/inet/tpid
root 943 1 0 11:44:22 ? + 0:00 /usr/etc/inet/inetd
root 954 1 0 11:44:22 ? ++ 0:00 /usr/etc/portmap
root 967 1 0 11:44:24 ? ++ 0:00 listen -n tcpip -l 00020401C8010101
-r 000204FFC8010101
root 982 1 0 11:44:24 ? ++ 0:00 /etc/routed -q
#
+ sign added above manually to these handouts; shows new processes:
+ after installing NSE and rebooting
++ after setting up TCP/IP and starting it
11. Pseudo-ttys available on SVR3
---------------------------------
# cd /dev
# ls tty[p-z]* | wc -l
64
# ls -CF tty[p-z]*
ttyp0 ttyp7 ttype ttyq5 ttyqc ttyr3 ttyra ttys1 ttys8 ttysf
ttyp1 ttyp8 ttypf ttyq6 ttyqd ttyr4 ttyrb ttys2 ttys9
ttyp2 ttyp9 ttyq0 ttyq7 ttyqe ttyr5 ttyrc ttys3 ttysa
ttyp3 ttypa ttyq1 ttyq8 ttyqf ttyr6 ttyrd ttys4 ttysb
ttyp4 ttypb ttyq2 ttyq9 ttyr0 ttyr7 ttyre ttys5 ttysc
ttyp5 ttypc ttyq3 ttyqa ttyr1 ttyr8 ttyrf ttys6 ttysd
ttyp6 ttypd ttyq4 ttyqb ttyr2 ttyr9 ttys0 ttys7 ttyse
# ls -l tty[p-z]* | pg
crw--w--w- 1 root sys 14, 0 Apr 13 23:37 ttyp0
crw--w--w- 1 root sys 14, 1 Apr 13 23:22 ttyp1
crw-rw-rw- 1 root root 14, 2 Feb 4 10:39 ttyp2
crw-rw-rw- 1 root root 14, 3 Feb 4 10:39 ttyp3
crw-rw-rw- 1 root root 14, 4 Feb 4 10:39 ttyp4
crw-rw-rw- 1 root root 14, 5 Feb 4 10:39 ttyp5
crw-rw-rw- 1 root root 14, 6 Feb 4 10:39 ttyp6
crw-rw-rw- 1 root root 14, 7 Feb 4 10:39 ttyp7
crw-rw-rw- 1 root root 14, 8 Feb 4 10:39 ttyp8
crw-rw-rw- 1 root root 14, 9 Feb 4 10:39 ttyp9
crw-rw-rw- 1 root root 14, 10 Feb 4 10:39 ttypa
crw-rw-rw- 1 root root 14, 11 Feb 4 10:39 ttypb
crw-rw-rw- 1 root root 14, 12 Feb 4 10:39 ttypc
crw-rw-rw- 1 root root 14, 13 Feb 4 10:39 ttypd
crw-rw-rw- 1 root root 14, 14 Feb 4 10:39 ttype
crw--w--w- 1 root root 14, 15 Feb 4 10:39 ttypf
crw-rw-rw- 1 root root 14, 16 Feb 4 10:39 ttyq0
crw-rw-rw- 1 root root 14, 17 Feb 4 10:39 ttyq1
crw-rw-rw- 1 root root 14, 18 Feb 4 10:39 ttyq2
crw-rw-rw- 1 root root 14, 19 Feb 4 10:39 ttyq3
crw-rw-rw- 1 root root 14, 20 Feb 4 10:39 ttyq4
crw-rw-rw- 1 root root 14, 21 Feb 4 10:39 ttyq5
crw-rw-rw- 1 root root 14, 22 Feb 4 10:39 ttyq6
etc.
- For TCP/IP, do not mention pseudo-ttys in /etc/inittab.
12. How to disable TCP/IP on SVR3
---------------------------------
- If you remove Ethernet card
- disable TCP/IP
- to avoid boot and excessive collision errors
- In /etc/rc2.d
- change TCP/IP script names from cap S to lower case s
e.g. mv S40c37x s40c37x
- List of TCP/IP rc2.d scripts
S40c37x: start up MVME374 Ethernet driver
S40enp: download to Ethernet boards
S45inetdaemon: start up inet daemon
S50nls_inet: start up network listener
S55yp: start up NIS (yellow pages)
S60netcmds: start up network daemons not disabled in nettab
S65routes: start up routed or set up static network routes
S72nfs: start up NFS
S99pci: start up PC-Interface