How do I ping thru 2 NICs?

I’ve got a QNX 4.25 box with 2 NICs. For troubleshooting purposes, how do I specify or know thru which NIC I’m pinging?

Get rid the IP address of one NIC (ifconfig en0 delete), then you only got one interface to sendto/recvfrom.

How do I get it back?

ifconfig en0 [ipadress] netmask [netmask] up, example :
ifconfig en0 netmask up
regards HELGE

Thanks, but will doing this end TCP/IP connectivity on the NIC? What if I want to just troubleshoot without disturbing comm?

And is it necessary to specify the netmask if either or both of the following are true:

  1. Both NICs are using the same netmask
  2. The netmask is