Multiple Ethernet cards

I’m having to temporarily support some QNX4.25 boxes, and as part of the transition I need to talk TCP/IP to a new device. Most of the machines don’t have TCP/IP set up, and that’s not a problem. But one box has two network cards, one of which is already running TCP/IP. I don’t quite know how to enable TCP/IP on the second card. Oh, and it’s an older version of TCP/IP as well, so it uses Socket instead of Tcpip. Do I run Socket twice? Do I run inetd twice? Clearly I need a “/usr/ucb/ifconfig en2 foo” line in netstart and a line for “foo” in hosts. Is that sufficient? Is there something I’m missing?

Howdy from across the street,

One instance of Socket or Socklet will allow you to configure tcpip on all of your ethernet interfaces.
Inetd will also listen on all your interfaces.
Running ifconfig twice should be all that is necessary for the second card.

/usr/ucb/Socket node1 &
/usr/ucb/ifconfig en1 IPADDRESS1 &
/usr/ucb/ifconfig en2 IPADDRESS2 &
/usr/ucb/route add default GWIPADDRESS &

Verify that both cards are seen by qnx with “netinfo -l”.

Thanks, that confirms what I thought. And hello, too!