In the same time to use two network card!

Dear all
I write a image for QNX in the Flash HD. now I want to use two network card in the same time. before I use a network card that is OK. I can use the telnet and ftp. if there a new idea, please for me.
help! thanks.

What is your question? Do you need help making an image that supports two network cards?

Yes ! How do I make two network cards in an image?

You must put the driver in the image if it’s not already there.

Then you must start the driver. Either by customizing io-net startup or by manually mouting it with mount -Tio-net -d…

They are my image:

#i82544 net card
io-net -di82544 vid=0x8086,did=0x109a,verbose=4 -pttcpip if=en0:10.153.29.95:255.255.255.0 -v &
#d-link ver C1 net card
io-net -dvia-rhine vid=0x1106,did=0x3106,verbose=4 -pttcpip if=en1:10.153.29.101:255.255.255.0 -v &

They can’t work in the same time.

Do not start two session of io-net (this is well documented). Start both drivers with one io-net.

All in one line, if there is a “,”, no space before or after it…

io-net -di82544 vid=0x8086,did=0x109a,verbose=4 -dvia-rhine vid=0x1106,did=0x3106,verbose=4 -pttcpip if=en0:10.153.29.95:255.255.255.0,if=en1:10.153.29.101:255.255.255.0 -v &

I do not understand the question? What is your problem?

I do not understand the question? What is your problem?

My question is :
If I make a image. now I can use a network in my image. because the case needs two network cards in the same time, so I must mount and use two network in my image.
so, my question : How do I make the two network cards in my image at the same time?

If you want to use TCPIP on two network cards(1 for work with other comp, 2 for debug with qconn), you must do like this …
en0:10.153.29.95:255.255.255.0
en1:10.153.28.101:255.255.255.0 (but I am not assured)

I try two solutions:

solution1:

io-net -di82544 vid=0x8086,did=0x109a,verbose=4 -dvia-rhine vid=0x1106,did=0x3106,verbose=4 -pttcpip if=en0:10.153.29.95:255.255.255.0,if=en1:10.153.29.101:255.255.255.0 -v &

solution2:
Mount T io-net -di82544 vid=0x8086,did=0x109a,verbose=4 pttcpip if=en0:10.153.29.95:255.255.255.0 v &

Mount T -dvia-rhine vid=0x1106,did=0x3106,verbose=4 pttcpip if=en1:10.153.29.101:255.255.255.0 -v &

but I still don’t drive the two network cards in the same time in my image.
now. thanks qnxloader’s answer. but my envirnment is my image, it isn’t in qnx host.
if anybody have any solution , send me!

I don’t think you can have two cards on the same subnet.

It actually should be possible, in example for trafficsharing on webservers :stuck_out_tongue_winking_eye:
but i never done this in QNX

Edit:
By sharing i do not mean 2 webservers, but 2 cards (100mbit/1gbit) to have the traffic coming in being able to read at all, if the input line much higher for example

I once did this under QNX 4 and it worked fine, sort of. We were trying to create a redundant system.
The problem that did come was unique to QNX and maybe QNX 4. In a QNX 4 network, you could have one node running TCP/IP with one IP. All nodes would then have access to this TCP/IP, so they would look to the TCP/IP network like a single node. The strange consequence was that when if you had two nodes running both TCP/IP and you tried to do a connect between them, QNX would sometimes do a QNET hop, and then the TCP/IP connection was local to a node. I don’t know if QNX 6 has this same a, feature, but it wouldn’t affect the configuration you describe.

I’ll rephrase, i don’t think it’s possible with the Tiny Stack.

On QNX4, it is SOCK=// to use tcpip stack on a different node. Same thing on QNX6, that you can do SOCK=/net/.

The difference is, even without SOCK=//, the socket() call in library would check for a TCPIP at local, if there is none, it will AUTOMATICLLY try to find one on the FLEET network. (sometime could be confusing :slight_smile: )

ON QNX4 i’v never had to use the prefix // ???

I’m afraid that there is question of conflicting each other, so change into one respectively network card of RTL and D-link, the following is your doubt:

#pci

PCI version =2.10

Class = Mass Storage (IDE)
Vendor ID =1039h, Silicon Integrated Systems [SiS]
Device ID =5518h, Unknown Unknown
PCI IO Address = f000h enabled
PCI Int Pin =NC
Interrupt line =0
CPU Interrupt =0h

Class = Multimedia (Audio)
Vendor ID =1039h, Silicon Integrated Systems [SiS]
Device ID =7012h, AC’97 Sound Controller
PCI index =0h
PCI IO Address = d800h enabled
PCI IO Address = dc00h enabled
PCI Int Pin =INT C
Interrupt line =10
CPU Interrupt = ah

Class = Network (Ethernet)
Vendor ID =1106h, VIA Technologies, Inc.
Device ID =3065h, VT6102 [Rhine-II]
PCI index =0h
PCI IO Address = e000h enabled
PCI Mem Address = ef002000h enabled
PCI Expansion ROM =0h disabled
PCI Int Pin =INT A
Interrupt line =10
CPU Interrupt = ah

Class = Network (Ethernet)
Vendor ID =1113h, Accton Technology Corporation
Device ID =1211h, SMC2-1211TX
PCI index =0h
PCI IO Address = e400h enabled
PCI Mem Address = ef004000h enabled
PCI Expansion ROM =0h disabled
PCI Int Pin =INT A
Interrupt line =11
CPU Interrupt = bh

Class = Display (VGA)
Vendor ID =10deh, nVidia Corporation
Device ID =181h, NV18 [GeForce4 MX 440 AGP 8x]
PCI index =0h
PCI Mem Address = ec000000h enabled
PCI Mem Address = e0000000h enabled
PCI Expansion ROM =0h disabled
PCI Int Pin =INT A
Interrupt line =11
CPU Interrupt = bh

#sloginfo

Time Sev Major Minor Args
Dec 13 23:00:22 2 19 1500 devb-ahci 1.00A (Sep 14 2006 15:38:41)
Dec 13 23:00:22 2 19 0 devb-eide 1.00A (Sep 14 2006 15:35:04)
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: SiS-MuTIOL 5518 vid 1039, did 5518, class 10180 rev 0, busno 0, dfunc 15
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: cmd _ addr 1f0, cntl _ addr 3f4, irq e, chnl 0, udma 6, mdma 2, sdma 0, pio 4
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: probing dev 0 status 50, error 0
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: probing dev 1 status 0, error 0
Dec 13 23:00:22 2 19 0 eide _ parse _ identify: IDENTIFY DRIVE CMD cksum failure
Dec 13 23:00:22 2 19 0 eide _ display _ devices: WDC WD800JB-00JJ tid 0, cable 80, max udma 5, cur udma 5, max mdma 2, cur mdma 0, max sdma -1, cur sdma -1, pio 4, mblk 16
Dec 13 23:00:22 2 19 0 eide _ init _ devices: WDC WD800JB-00JJ path 0, tid 0, udma 5, mdma 2, sdma -1, pio 4, mblk 16
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: SiS-MuTIOL 5518 vid 1039, did 5518, class 10180 rev 0, busno 0, dfunc 15
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: cmd _ addr 170, cntl _ addr 374, irq f, chnl 1, udma 6, mdma 2, sdma 0, pio 4
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: probing dev 0 status 50, error 0
Dec 13 23:00:22 2 19 0 eide _ identify _ devices: probing dev 1 status 50, error 0
Dec 13 23:00:22 2 19 0 eide _ identify: chk 4 cmd ec, tid 0, status 1, astatus 1, error 4
Dec 13 23:00:22 2 19 0 eide _ parse _ identify: IDENTIFY DRIVE CMD cksum failure
Dec 13 23:00:22 2 19 0 eide _ display _ devices: BENQ DVD-ROM tid 0, cable 40, max udma 4, cur udma 4, max mdma 2, cur mdma 0, max sdma -1, cur sdma -1, pio 4, mblk 0
Dec 13 23:00:22 2 19 0 eide _ display _ devices: 1024MB ATA Fla tid 1, cable 40, max udma -1, cur udma -1, max mdma 2, cur mdma 2, max sdma -1, cur sdma -1, pio 4, mblk 1
Dec 13 23:00:22 2 19 0 eide _ init _ devices: BENQ DVD-ROM path 0, tid 0, udma 2, mdma 2, sdma -1, pio 4, mblk 0
Dec 13 23:00:22 2 19 0 eide _ init _ devices: 1024MB ATA Fla path 0, tid 1, udma -1, mdma 2, sdma -1, pio 4, mblk 1
Dec 13 23:00:26 2 19 1600 devb-mvSata 1.00A (May 4 2006 15:48:57)
Dec 13 23:00:28 5 6 200 Installing /dev/par port 378
Dec 13 23:00:29 5 14 0 tcpip starting
Dec 13 23:00:29 3 14 0 Using pseudo random generator. See " random" option
Dec 13 23:00:45 1 8 0 phfont _ init
Dec 13 23:00:45 1 8 0 phfontXX started OK
Dec 13 23:00:46 5 8 0 Process fontsleuth initialized.
Dec 13 23:00:47 1 8 0 phfont _ init
Dec 13 23:00:47 1 8 0 phfontXX started OK
Dec 13 23:00:47 6 8 0 VGA primary : bus 0x1 dev/func 0x0
Dec 13 23:00:47 6 8 0 Found 1 PCI/AGP display devices
Dec 13 23:00:47 6 8 0 pci _ init: found PCI device 10de:181
Dec 13 23:00:47 6 8 0 SetDisplayOffset pos: 0 0
Dec 13 23:00:47 6 8 0 SetDisplayOffset pos: 0 0
Dec 13 23:00:47 5 8 0 Attached /dev/io-graphics/vesabios0, id =0

# nicinfo -c -r en0
RealTek (SMC-1211) Ethernet Controller

Physical Node ID … 0010B5 AF573E
Current Physical Node ID … 0010B5 AF573E
Current Operation Rate … 10.00 Mb/s half-duplex
Active Interface Type … MII
Active PHY address … 0
Maximum Transmittable data Unit … 1514
Maximum Receivable data Unit … 1514
Hardware Interrupt … 0xb
I/O Aperture … 0xe400 - 0xe4ff
Memory Aperture … 0xef004000 - 0xef0040ff
Promiscuous Mode … Off
Multicast Support … Enabled

# nicinfo -c -r en1
VT86C100A VIA Ethernet Controller

Physical Node ID … 0050BA 0F851E
Current Physical Node ID … 0050BA 0F851E
Current Operation Rate … 100.00 Mb/s full-duplex
Active Interface Type … MII
Active PHY address … 8
Maximum Transmittable data Unit … 1514
Maximum Receivable data Unit … 1514
Hardware Interrupt … 0xa
I/O Aperture … 0xe000 - 0xe0ff
Promiscuous Mode … Off
Multicast Support … Enabled

1ã€

Are you have /lib/dll/devn-rtl.so in your image?

This from my sysinit it is work fine:
io-net -dspeedo -di82544 -ptcpip
waitfor /dev/socket
waitfor /dev/io-net/en0
waitfor /dev/io-net/en1
waitfor /dev/io-net/ip_en
ifconfig en0 10.0.86.92 netmask 255.255.255.0
ifconfig en1 192.168.21.40 netmask 255.255.255.0

did you export LD_LIBRARY_PATH?

Here is my list of files:
/lib
/lib/libsocket.so.2
/lib/libm.so.2
/lib/libcpp.so.4
/lib/libfont.a
/lib/libfont.so.1
/lib/libfontharnessutils.so.1
/lib/libblkcache.so.2
/lib/libfontutils.so.1
/lib/libFF-T2K-cache.so.2
/lib/libAp.so.3
/lib/libFF-T2K-fm.so.1
/lib/libFF-T2K.so.2
/lib/libc.so.2
/lib/dll
/lib/dll/npm-qnet.so
/lib/dll/npm-tcpip.so
/lib/dll/npm-tcpip-v4.so
/lib/dll/npm-qnet-l4_lite.so
/lib/dll/tews_pci_carrier.so
/lib/dll/tip630.so
/lib/dll/devn-el900.so
/lib/dll/devn-i82544.so
/lib/dll/sbs_pci_carrier.so
/lib/dll/devn-speedo.so
/lib/dll/phfont.so
/lib/dll/gri-photon.so
/lib/dll/devg-tnt.so
/lib/dll/font
/lib/dll/font/FCcore.so
/lib/dll/font/PHFcore.so
/lib/dll/font/ttfFFcore.so
/lib/dll/devg-i830.so
/lib/dll/devu-ehci.so
/lib/dll/devu-ohci.so
/lib/dll/devu-uhci.so
/lib/dll/fs-cd.so
/lib/dll/fs-dos.so
/lib/dll/io-blk.so
/lib/dll/cam-disk.so
/lib/dll/fs-qnx4.so
/lib/libusbdi.so.2
/lib/libcam.so.2

/usr/lib
/usr/lib/libgri.so.2
/usr/lib/libphexlib.so.3
/usr/lib/libph.so.3
/usr/lib/libdisputil.so.2
/usr/lib/libffb.so.2
/usr/lib/wframe_updated.so
/usr/lib/pt_multihook.so
/usr/lib/vgr_javanpl.so
/usr/lib/terminfo
/usr/lib/terminfo/terminfo.src
/usr/lib/terminfo/a
/usr/lib/terminfo/a/ansi
/usr/lib/terminfo/q
/usr/lib/terminfo/q/qansi
/usr/lib/terminfo/q/qansi-g
/usr/lib/terminfo/q/qansi-m
/usr/lib/terminfo/q/qansi-t
/usr/lib/terminfo/q/qansi-w
/usr/lib/terminfo/q/qnx
/usr/lib/terminfo/q/qnx2
/usr/lib/terminfo/q/qnx4
/usr/lib/terminfo/q/qnxm
/usr/lib/terminfo/q/qnxs2
/usr/lib/terminfo/q/qnxt
/usr/lib/terminfo/q/qnxt2
/usr/lib/terminfo/q/qnxt4
/usr/lib/terminfo/q/qnxtmono
/usr/lib/terminfo/q/qnxw
/usr/lib/terminfo/q/qvt101
/usr/lib/terminfo/q/qvt102
/usr/lib/terminfo/q/qvt108
/usr/lib/terminfo/t
/usr/lib/terminfo/t/test
/usr/lib/terminfo/v
/usr/lib/terminfo/v/vi200-f
/usr/lib/terminfo/v/viewpoint
/usr/lib/terminfo/v/visual
/usr/lib/terminfo/v/vs100
/usr/lib/terminfo/v/vs100s
/usr/lib/terminfo/v/vt100
/usr/lib/terminfo/v/vt100-am
/usr/lib/terminfo/v/vt102
/usr/lib/terminfo/v/vt102-am
/usr/lib/terminfo/v/vt102-plus
/usr/lib/terminfo/v/vt52
/usr/lib/terminfo/x
/usr/lib/terminfo/x/xterm
/usr/lib/terminfo/x/xterm-m
/usr/lib/terminfo/x/xterm-q
/usr/lib/terminfo/x/xterms
/usr/lib/malloc_g
/usr/lib/malloc_g/libmalloc.so
/usr/lib/malloc_g/libmalloc.so.2
/usr/lib/malloc_g/libmallocS.a
/usr/lib/libmalloc_g.so
/usr/lib/ldqnx.so.2
/usr/lib/libmalloc_g.so.1
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.5
it is also for Photon.
May be you need one of this listed DLL.