QNXRTP with 2 ethernet cards

I’ve tried to install 2 network cards in the same PC for two ethernet
networks. I use 3C905C cards supported by QNX RTP 6. I have no problem
installing only one of them but QNX doesn’t detect the second card if
they are installed together. I can see only en0 device but not en1. Is
there any way to configure them together for each time I boot my
computer?. Thanks in advance for any solution.

Adam

Hi Adam,

Have you run the nettrap utility from the command line yet?

What happens if you do a mount with io-net?

i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so




Adam Zembala <adam.zembala@opal-rt.com> wrote:

I’ve tried to install 2 network cards in the same PC for two ethernet
networks. I use 3C905C cards supported by QNX RTP 6. I have no problem
installing only one of them but QNX doesn’t detect the second card if
they are installed together. I can see only en0 device but not en1. Is
there any way to configure them together for each time I boot my
computer?. Thanks in advance for any solution.

Adam

Hardware Support Account <hw@qnx.com> wrote:
: Hi Adam,

: Have you run the nettrap utility from the command line yet?

: What happens if you do a mount with io-net?

: i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so


I’ve done the following:

io-net -d epic -dtulip lan=1 -pttcpip if=en0:<ip 1>,if=en1:<ip 2>
and then both came up fine. (note you have to specify one of the
card with a lan number and not the default of 0.)

Once you get a command that works, put it in your rc.local file.

Peter


: Adam Zembala <adam.zembala@opal-rt.com> wrote:
:> I’ve tried to install 2 network cards in the same PC for two ethernet
:> networks. I use 3C905C cards supported by QNX RTP 6. I have no problem
:> installing only one of them but QNX doesn’t detect the second card if
:> they are installed together. I can see only en0 device but not en1. Is
:> there any way to configure them together for each time I boot my
:> computer?. Thanks in advance for any solution.

:> Adam

Peter Martin <peterm@qnx.com> wrote:
: Hardware Support Account <hw@qnx.com> wrote:
: : Hi Adam,

: : Have you run the nettrap utility from the command line yet?

: : What happens if you do a mount with io-net?

: : i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so


: I’ve done the following:

: io-net -d epic -dtulip lan=1 -pttcpip if=en0:<ip 1>,if=en1:<ip 2>
: and then both came up fine. (note you have to specify one of the
: card with a lan number and not the default of 0.)

: Once you get a command that works, put it in your rc.local file.

: Peter

Don’t think the lan=1 is required. io-net should hand these out
as they come and go.

-seanb

I can set both cards manually using ifconfig. My problem was keeping the
setup each time I reboot my computer. After several tests I finally can
reboot it and get two cards functioning with specific IP addresses ( I set
them manually). But, I still have error message during the boot and my
gateway address is reset.
To set two cards I created rc.local file. I put in it io-net with
appropriate driver. It looks like this:

slay io-net
sleep 3
io-net -del900 -pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

It works but not completely.
Looking for the solution I found the example in the Neutrino Online help for
io-net.
I tried to start NIC driver twice following this example.

slay io-net
sleep 3
io-net -del900 irq=10 pci=0x0
-del900 irq=11 pci=0x1
-pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

but I got the same results, it means I got the errors during the boot
process.
After the lines:
Starting inetd
Starting extra run commands
Login:
I have the message:
netmanager error: Could not set interface en1
state: Bad file descriptor
However both cards are functioning only gateway address (attached to the
second card network) is reset and I have to enter its IP address manually,
that is still unacceptable for our customers. I don’t know well Neutrino
boot process. When et where io-net is set up,do I need to kill it first in
rc.local file. Maybe there is another file where I can put my network card
setting.

Adam



Hardware Support Account wrote:

Hi Adam,

Have you run the nettrap utility from the command line yet?

What happens if you do a mount with io-net?

i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so

Adam Zembala <> adam.zembala@opal-rt.com> > wrote:
I’ve tried to install 2 network cards in the same PC for two ethernet

Not sure why netmanager is complaining (or where it’s being run),
but you can put your gateway on the io-net line:

slay io-net
sleep 3
io-net -del900 irq=10,pci=0x0
-del900 irq=11,pci=0x1
-pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250,
default=<gateway_ip>

Notice the extra commas on your driver args.

-seanb

Adam Zembala <adam.zembala@opal-rt.com> wrote:
: I can set both cards manually using ifconfig. My problem was keeping the
: setup each time I reboot my computer. After several tests I finally can
: reboot it and get two cards functioning with specific IP addresses ( I set
: them manually). But, I still have error message during the boot and my
: gateway address is reset.
: To set two cards I created rc.local file. I put in it io-net with
: appropriate driver. It looks like this:

: slay io-net
: sleep 3
: io-net -del900 -pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

: It works but not completely.
: Looking for the solution I found the example in the Neutrino Online help for
: io-net.
: I tried to start NIC driver twice following this example.

: slay io-net
: sleep 3
: io-net -del900 irq=10 pci=0x0
: -del900 irq=11 pci=0x1
: -pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

: but I got the same results, it means I got the errors during the boot
: process.
: After the lines:
: Starting inetd
: Starting extra run commands
: Login:
: I have the message:
: netmanager error: Could not set interface en1
: state: Bad file descriptor
: However both cards are functioning only gateway address (attached to the
: second card network) is reset and I have to enter its IP address manually,
: that is still unacceptable for our customers. I don’t know well Neutrino
: boot process. When et where io-net is set up,do I need to kill it first in
: rc.local file. Maybe there is another file where I can put my network card
: setting.

: Adam



: Hardware Support Account wrote:

:> Hi Adam,
:>
:> Have you run the nettrap utility from the command line yet?
:>
:> What happens if you do a mount with io-net?
:>
:> i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so
:>
:> Adam Zembala <adam.zembala@opal-rt.com> wrote:
:> > I’ve tried to install 2 network cards in the same PC for two ethernet
:>

Yes, I forgot two commas. I don’t have any error message now because I lost my
second card, I don’t see it any more. Sorry, it doesn’t work in this way.

Adam

Sean Boudreau wrote:

Not sure why netmanager is complaining (or where it’s being run),
but you can put your gateway on the io-net line:

slay io-net
sleep 3
io-net -del900 irq=10,pci=0x0
-del900 irq=11,pci=0x1
-pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250,
default=<gateway_ip

Notice the extra commas on your driver args.

-seanb

Adam Zembala <> adam.zembala@opal-rt.com> > wrote:
: I can set both cards manually using ifconfig. My problem was keeping the
: setup each time I reboot my computer. After several tests I finally can
: reboot it and get two cards functioning with specific IP addresses ( I set
: them manually). But, I still have error message during the boot and my
: gateway address is reset.
: To set two cards I created rc.local file. I put in it io-net with
: appropriate driver. It looks like this:

: slay io-net
: sleep 3
: io-net -del900 -pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

: It works but not completely.
: Looking for the solution I found the example in the Neutrino Online help for
: io-net.
: I tried to start NIC driver twice following this example.

: slay io-net
: sleep 3
: io-net -del900 irq=10 pci=0x0
: -del900 irq=11 pci=0x1
: -pttcpip if=en0:192.1.250.100,if=en1:192.1.100.250

: but I got the same results, it means I got the errors during the boot
: process.
: After the lines:
: Starting inetd
: Starting extra run commands
: Login:
: I have the message:
: netmanager error: Could not set interface en1
: state: Bad file descriptor
: However both cards are functioning only gateway address (attached to the
: second card network) is reset and I have to enter its IP address manually,
: that is still unacceptable for our customers. I don’t know well Neutrino
: boot process. When et where io-net is set up,do I need to kill it first in
: rc.local file. Maybe there is another file where I can put my network card
: setting.

: Adam

: Hardware Support Account wrote:

:> Hi Adam,
:
:> Have you run the nettrap utility from the command line yet?
:
:> What happens if you do a mount with io-net?
:
:> i.e. mount -T io-net -o if=en1:10.163 npm-ttcpip.so
:
:> Adam Zembala <> adam.zembala@opal-rt.com> > wrote:
:> > I’ve tried to install 2 network cards in the same PC for two ethernet
: