View topic - 2-ethernet cards

2-ethernet cards

Discussion about the general applications that run on QNX6

2-ethernet cards

Postby JSV » Thu Oct 22, 2009 3:29 pm

I have an embedded PC with two ethernet interfaces, one in the own CPU and the other in a standard ethernet board, over a PCI bus.
How could I assign en0 or en1 to each board?

Thanks
JSV
New Member
 
Posts: 6
Joined: Thu Oct 23, 2003 4:00 pm

Postby Tim » Thu Oct 22, 2009 5:17 pm

JSV,

The first thing to do is make sure your ethernet cards are supported under QNX. So you'll need to find out the chipsets the cards use. You can use the 'pci' command to get details on the Ethernet chip sets. Then you go to the QNX web site and confirm that those are supported.

While you are on the QNX website you'll see which driver you need for the ethernet card. You then start 'io-net' with the appropriate drivers.

Then you'll configure en0 and en1 (DHCP/static, routing information etc) either in photon or by editing the net.cfg file in the /etc directory

All this and more is in the help files.

Tim
Tim
Senior Member
 
Posts: 1503
Joined: Wed Mar 10, 2004 12:28 am

Postby JSV » Thu Oct 22, 2009 5:23 pm

Thanks Tim,
Both ethernet card work properly, the problem is that with some HW (PC) the en0 and en1 configurations are swapped.

JSV
JSV
New Member
 
Posts: 6
Joined: Thu Oct 23, 2003 4:00 pm

Postby Tim » Thu Oct 22, 2009 8:43 pm

JSV,

Ah, OK.

And I am guessing you want a specific card to always be en0. Then you pass that option to io-net when you start the individual drivers. From the doc's (io-net):

io-net -del900 -ptcpip if=en0:192.168.0.1

I am not sure if you have to specify the IP address or if just putting if=en0 is good enough and the static/DHCP part can be done via net.cfg + netmanager.

Tim
Tim
Senior Member
 
Posts: 1503
Joined: Wed Mar 10, 2004 12:28 am


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests