How do I add multiple IP addresses to a SCO OS5 Network Card?

Export to PDF | Export to DOC

Problem: How do I add multiple IP addresses to a SCO OS5 Network Card?

Cause: Using the SCO Network Manager netconfig you are only allowed to enter on IP address.  The need often arises to multihome the system for multiple IP addresses.

Solution: Use the /etc/ifconfig command to alias another IP address to the network card.  The ifconfig can be inserted into /etc/tcp to multihome when TCP starts or can be used on the command line:

ifconfig net1 alias 128.0.0.200 netmask 255.255.255.0

Where net1 is the network interface card to multihome and 128.0.0.200 is the IP adress to multihome to.  The netmask can be changed to accommodate the network.

 

The entry in /etc/tcp should be placed just under the initial mapping of the default IP address:

if [ “$do_ifs” = 1 ]; then
#
# Interface configuration — edit as appropriate.
#
ifconfig lo0 127.0.0.1 perf 57344 57344 1
ifconfig -p net1 10.0.0.69 netmask 255.0.0.0 broadcast 10.255.2
55.255 perf 24576 24576 1
# ifconfig en0 `uname -n` $NETMASK $BROADCAST
/etc/route add 224.0.0.0 10.0.0.69 0 > /dev/null 2>&1
#/etc/route add 224.0.0.0 128.0.0.200 0 > /dev/null 2>&1
ifconfig net1 alias 128.0.0.200 netmask 255.255.255.0 # Added ifconfig alias here for multihoming
fi 

Leave a Reply

Your email address will not be published. Required fields are marked *