Gervais Mulongoy
|
Re: Verifying for a hardware loopback connection
|
Gervais Mulongoy
06/18/2014 7:27 AM
post110742
|
Re: Verifying for a hardware loopback connection
If your interfaces are on the same layer 3 network then this won't work
since all packets will always leave from only one interface because of
how the routing table works. To work around this you would either need
make sure the interfaces are on different layer 3 networks and setup
static routes for each OR you will need to run two instances of io-pkt,
one for each interface then you can have both interfaces on the same
layer 3 - you will also need to give set io-pkt option "-ptcpip
prefix=/altX" (where X is the instance number) for each instance so that
applications can target a specific instance:
SOCK=/alt1 ping <destination address2>
SOCK=/alt2 ping <destination address1>
See the online documentation for io-pkt for details.
On 14-06-18 06:14 AM, Prashant Singh Parihar wrote:
> Hi,
>
> I had a requirement in which I need to verify for a hardware loopback connection running in QNX on a Target Board. In
order to test for the loopback connection I need to ping via one interface (assume en0) to other interface ( assume wm0
) and vice versa. The ping should only respond if the two interfaces are physically connected, and shouldn't respond
when not connected physically.
> I am not able to find any suitable method to implement this, as QNX doesnt have support for ping via interface as in
Linux using '-I' as selected interface neither it has support for IP Tables in my knowledge.
> Any guidance to implement hardware loopback connection will be of great help.
>
> Thanks,
> Prashant.
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post110740
> To cancel your subscription to this discussion, please e-mail general-networking-unsubscribe@community.qnx.com
|
|
|