Skip navigation.
Home
The QNX Community Portal

View topic - Connecting one device to two network (NIC) cards

Connecting one device to two network (NIC) cards

Discussion about the QNX6 OS.

Connecting one device to two network (NIC) cards

Postby Ehabk71 » Mon Jan 10, 2011 12:44 am

Hi all
We have a device that should be connected to a motherboard with two NIC cards. We want to be able to let the device run properly by plugging it to any of the NIC cards that we have on the motherboard.
So let say for example that our external device has IP 130.1.1.20
And our motherboard has two NIC cards are as follows:
en0 IP is 130.1.1.1
en1 IP is 140.1.1.1
also en1 has 130.1.1.1 as an alias also
is it possible to run the system in this situation which means;
1- When external device is connected to en0 , then it will use en0 to communicate with the device.
2- When external device is connected to en1 , then it will use the alias to connect to the device.

My concern is will that cause an IP conflict when connecting the external device to either port.
And if somebody has an idea of how to accomplish this, please reply.

Thanks for all in Advance
Ehabk71
Active Member
 
Posts: 28
Joined: Tue Jun 27, 2006 2:14 pm

RE: Connecting one device to two network (NIC) cards

Postby maschoen » Tue Jan 11, 2011 4:37 pm

Hmmm,

When you say "plugging it to" are you connecting the device directly with a cable, do you mean through a hub?

For two TCP/IP nodes to communicate on the same physical network, they need to be on the same IP network, so the following would work

en0 192.168.0.1
en1 192.168.0.2

device 192.168.0.3

These all three are on the same 'C' network 192.168.0

Otherwise you would need an additional device on your network, a bridge or router to connect the logical networks.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

RE: Connecting one device to two network (NIC) cards

Postby Ehabk71 » Wed Jan 12, 2011 8:50 pm

Thanks for the reply ....I know that in order to communicate we need to have all devices on same network ,
but my question was if en0 and en1 can share same IP , but in one of then it is an alias to the original NIC.

but anyways we decided to go in a different direction in relation to this system

Thanks very much for the reply.
Ehabk71
Active Member
 
Posts: 28
Joined: Tue Jun 27, 2006 2:14 pm


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 2 guests