Multiple TCP/IP ports
You can modify the services file to take advantage of having multiple Ethernet cards.
To take advantage of multiple Ethernet cards:
- Make an entry in the services file for each
port the database server uses, as in the following example:
#servicename port/protocol alias soc1 21/tcp soc2 22/tcp
Each port of a single IP address must be unique. Separate ethernet cards can use unique or shared port numbers. You might want to use the same port number on ethernet cards connecting to the same database server. (In this scenario, the service name is the same.)
- Put one entry per ethernet card in the hosts file
with a separate IP address, as in the following example:
#address hostname alias 192.147.104.19 svc8 192.147.104.20 svc81
- In the onconfig file, set DBSERVERNAME configuration
parameter for one of the ethernet cards and the DBSERVERALIASES configuration
parameter for the other ethernet card. The following lines show sample
entries in the onconfig file:
DBSERVERNAME chicago1 DBSERVERALIASES chicago2
- Add one sqlhosts entry for each ethernet
card. That is, make an entry for the DBSERVERNAME and another entry
for the DBSERVERALIASES.
#dbservername nettype hostname servicename options chicago1 onsoctcp svc8 soc1 chicago2 onsoctcp svc81 soc2
After this configuration is in place, the application communicates through the ethernet card assigned to the dbserver name that the INFORMIXSERVER environment variable provides.