Skip navigation.
Home
The QNX Community Portal

View topic - Multiple Ethernet cards

Multiple Ethernet cards

For the old QNX2 and QNX4 RTOS

Multiple Ethernet cards

Postby ingraham » Wed Mar 09, 2016 4:53 pm

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?
ingraham
Senior Member
 
Posts: 160
Joined: Wed Nov 05, 2003 2:25 pm
Location: Texas

Re: Multiple Ethernet cards

Postby space » Mon Mar 14, 2016 6:14 pm

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/inetd
/usr/ucb/route add default GWIPADDRESS &

Verify that both cards are seen by qnx with "netinfo -l".
space
Active Member
 
Posts: 16
Joined: Fri Mar 09, 2007 6:03 pm
Location: Texas

Re: Multiple Ethernet cards

Postby ingraham » Thu Mar 17, 2016 6:19 pm

Thanks, that confirms what I thought. And hello, too!
ingraham
Senior Member
 
Posts: 160
Joined: Wed Nov 05, 2003 2:25 pm
Location: Texas


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests