SCSxx05/SCSxx20 User Guide
9: Port Access
9-3
Assigning an IP Port Number to a Serial Port
You need to modify two files to assign an IP port number to a serial port.
In our example we specify that:
IP port number 9001 correlates to serial port 1
IP port number 9002 correlates to serial port 2
and so on, up to 9048 correlating to device port 48 in the SCS4805. These IP
addresses are simply the default values and the convention chosen in this
example. If you choose your own port numbers, ensure that they do not conflict
with existing entries in
/etc/inetd.conf
.
1. The first file to edit is
/etc/inetd.conf
.
In this file, uncomment the existing
entries in the (supplied
)
/etc/inetd.conf
, as follows:
a) Log in to the sysadmin account:
sysadmin>bash
sysadmin@km3210 /var/tmp$ su
Password:
root@km3210 /var/tmp# cd /etc
root@km3210 /etc# vi inetd.conf
b) Uncomment the entries for ports 9001 to 9017. Save and exit vi. The
entries should look like:
9001 stream tcp nowait root /usr/sbin/tcpd in.telnetd
c) Tell the inetd process to re-read the
/etc/inetd.conf file
:
root@km3210 /etc# kill –SIGHUP `cat /var/run/inetd.pid`
2. Edit the second file,
/lci/lwip_serial.conf
, as follows:
root@km3210 /etc# cd /lci
root@km3210 /lci# vi lwip_serial.conf
3. Uncomment the entries that correspond to the IP port numbers 9001 to 9017
for device ports 1 through 17. The entries should look like:
1 0.0.0.0 9001 1
2 0.0.0.0 9002 1
3 0.0.0.0 9003 1
...
16 0.0.0.0 9016 1
17 0.0.0.0 9017 1
and so on.
Summary of Contents for SCSxx05
Page 10: ...ix ...
Page 11: ...x ...
Page 12: ...xi ...
Page 13: ...xii ...
Page 14: ...xiii ...
Page 15: ...xiv ...
Page 47: ...SCSxx05 SCSxx20 User Guide 4 Configuration 4 7 ...