mike gerlach
|
ethernet loopback with multiple/different IP addresses on the same device/board
|
mike gerlach
02/17/2010 5:11 PM
post47614
|
ethernet loopback with multiple/different IP addresses on the same device/board
I have a board that uses the MPC8347 cpu. This board has three separate
IP addresses on it; en0, en1, en2.
I am using en0 connected to my pc network for downloading files etc.
I am trying to create a functional loopback test for en1 and en2 where I
connect them via a cross-over cable.
I wrote two quick applications using UDP sockets to sendto and recvfrom
a command line address...
When I run them, everything appears to work fine (send: packet =
"123456", recv: packet = "123456").
The problem comes when I disconnect the loopback. The same messages
appear. It appears QNX knows the two IP addresses are on the same
machine and bypasses the external connection. I read up all about route
and ifconfig but must be missing something. Is this a limitation within
QNX, or do I have to configure something differently?
I am running io-net and it is setup with dhcp.clients. Also I ifconfig
each en# at boot up
|
|
|