Running multiple instances of the TCP/IP stack

In some situations, you may need to run multiple instances of the TCP/IP stack.

To start multiple instances of the stack:

  1. Start the first instance of the TCP/IP stack by invoking io-pkt* as follows:
    io-pkt-v4 -del900 pci=0x0
      
  2. Start the second instance of the TCP/IP stack by invoking io-pkt* as follows:
    io-pkt-v4 -i1 -del900 pci=0x1 -ptcpip prefix=/sock2
      

    You can get the PCI index of your NIC cards by using the pci -vvv command. If you're using different types of NIC cards, you don't have to specify the PCI index.

The -i option in the second instance of TCP/IP tells io-pkt-v4 to register itself as io-pkt1. The prefix option to io-pkt causes the second stack to be registered as /sock2/dev/socket instead of the default, /dev/socket. TCP/IP applications that wish to use the second stack must specify the environment variable SOCK. For example:

SOCK=/sock2 telnet 10.59

or:

SOCK=/sock2 netstat -in

or:

SOCK=/sock2 ifconfig if_name 192.168.2.10

where if_name is the interface name that the driver uses. If you don't specify SOCK, the command uses the first TCP/IP stack.