Help on Ethernet

Hello

We are having a single network interface card for each QNX node. This card
is a dual port Intel pro 10/100 (82559 chipset). So each QNX node has a
single NIC card, with each card having two ports. Considering only a single
node temporarily, we would like to use both the ports on this node for
communication. But we are not able to configure the second port of the
Ethernet card. So currently our test setup has only a single QNX node
connected to a win2k system through a hub.

The driver file required for the card is Net.ether82557. We are having this
file which supports the 82559 chipset. The drivers for the two port get
loaded succuessfully. This is tested through the netmap command. The command
used for running the driver is:

Net.ether82557 -I0 -l1 &
Net.ether82557 -I1 -l2 &

This starts the driver for the two ports, and is confirmed by the netmap
command.

Now two unique ip addresses need to be assigned to the two ports. We are
doing this with the Socklet and ifconfig commands. However, these commands
fail for the second port. I suppose, the sequence to configure the two ports
with two ip addresses should be:

Socklet mynode1 &
Socklet mynode2 &
ifconfig en1 mynode1
ifconfig en2 mynode2

The mynode1 and mynode2 tags are declared in the /etc/hosts file. We have
confirmed that both the en1 and en2 interfaces for the ifconfig commands
exist. But the above sequence of commands fails. The first Socklet command
is successful. However the second Socklet command gives the following error:

Socklet: unable to attach name: /qnx/socket

For the second ifconfig command we get the following error:

ifconfig: ioctl (SIOCAIFADDR): File exists

Is it required to run the Socklet command twice in our case? As both en1 and
en2 interfaces exist, what could be reason for the failure of second
ifconfig command?

Thanks & best regards,
Samir Prabhudesai
Control & Solutions (I) Pvt. Ltd.