
SCSxx05/SCSxx20 User Guide 9: Port Access
9-5
IP Address per Serial Port Feature
The IP Address per Serial Port feature allows you to set multiple network
addresses on the same low-level network device driver (e.g., two IP addresses in
one Ethernet card). It is typically used for services that act differently based on
the address they listen on (e.g., multihosting, virtual domains, or virtual hosting
services).
Setting up an IP Address per serial port is only slightly more involved than setting
up the IP port number per serial port. It involves editing /lci/lwip_serial.conf
and creating a five-line config file per distinct IP address. You do not have to
change /etc/inetd.conf.
Setting the IP Addresses
The first file to edit is /lci/lwip_serial.conf. In this file we specify the IP
addresses for the corresponding serial ports. In the example below we chose the
IP addresses 192.168.202.11 through 192.168.202.26. These correspond to
serial ports 1 through 16 respectively. The IP addresses do not need to be in
consecutive order. Obtain or choose IP addresses that are appropriate for your
site.
1. Log in to the sysadmin account and then go into the bash shell.
sysadmin>bash
sysadmin@km3210 /var/tmp$ su
Password:
root@km3210 /var/tmp# cd /lci
root@km3210 /lci# vi lwip_serial.conf
2. Modify the entries for the serial ports to be similar to:
1 192.168.202.11 - 1
2 192.168.202.12 - 1
3 192.168.202.13 - 1
*
*
16 192.168.202.26 - 1
3. Save and exit vi.
4. Set up the aliased IP addresses on the console server. There will be one
config file per aliased IP address.
The config files will reside in /etc/sysconfig/network-scripts/ and are
named ifcfgeth0:nn, where nn corresponds to the aliased device number
(0, 1, 2, … 16).
You may find it easier to create these files on your workstation and then scp
them to /etc/sysconfig/network-scripts/ on the console server. The first file
is named ifcfgeth0:0, the second file is ifcfg-eth0:1, and so on.
root@km3210 /lci# cd /etc/sysconfig/network-scripts
Commentaires sur ces manuels