QNX gateway woes

I am attempting to turn my QNX 4.25 system into a gateway by installing two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the 2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

Whenever I hear someone trying to put to network cards into a single CPU I
hear the words of Andrew Boyd. “Check your power supply!” This is
especialy true is ther are both 100 MBPS ethernet cards. It is even truer
if/when both cards are frequently transmitting at the same time.

Having said that, does your system still freeze if you don’t try to load the
drivers for those cards? If so, remove both cards and figure out what
interrupts are being used in the system without those cards. (I.E. sin ir)
Put the cards back in and check to see what interrupt BIOS wants to put
those cards at. You may have to change what interrupts are available to
each slot to get them to work.

If necessary, since they’re both PCI cards you can put them both on the same
interrupt.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9scb4a$cg0$1@inn.qnx.com

I am attempting to turn my QNX 4.25 system into a gateway by installing
two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The
problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card
at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same
interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to
the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the
2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

I would take a look at what BIOS is doing, if PnP OS
function is enabled or if you let BIOS assign IRQs
to the cards, sometimes it matters which PCI slot
you use. How about you leave both network cards
and boot with sysinit.1 without any references to
those two cards?

Zeljko


Jamie Campbell <jcampbel@loacheng.on.ca> wrote in message
news:9scb4a$cg0$1@inn.qnx.com

I am attempting to turn my QNX 4.25 system into a gateway by installing
two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The
problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card
at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same
interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to
the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the
2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

Previously, Jamie Campbell wrote in qdn.public.qnx4:

I am attempting to turn my QNX 4.25 system into a gateway by installing two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to the
sysinit.1 file is as follows:
Net &

You should not specify the port and irq for a PCI device, as this could
change if the card is moved or another card is inserted. Try starting the
driver as ‘Net.ether905 -I0 -l1 &’ and see if that works. If not, please
post the output from ‘sin ver’. Do you have ethernet cables attached to
both adapters and are they plugged into hubs?

Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the 2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

Try changing the brand of one of the cards. I had a windows NT system once
with (2) 3com NICs in it that just wouldn’t work. I replaced one of the
3com
cards with a different NIC and everything worked fine.

-Glenn

“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9scb4a$cg0$1@inn.qnx.com

I am attempting to turn my QNX 4.25 system into a gateway by installing
two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The
problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card
at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same
interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to
the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the
2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a little
red faced. I have installed many network cards before and I have been able
to have them unplugged (not on a network) for the systems to come on line.
However, with 2 cards, I guess you need to be on a network? I connected one
card to our LAN and the system was able to get past the ifconfig in the
sysinit.1 file. It did not matter which NIC was connect but one NIC needed
to be connected. If anyone knows why, I would be interested. Thanks.

However, I still have a problem. I cannot get to the other network via the
gateway QNX system. From the ‘gateway’ I can ping both networks, but when I
try to reach a net2 from a net1 computer via ping I get no response. In the
sysinit file I have the command:
/usr/ucb/Socket -d forward net2 &

I am probably missing something, but darn if I can figure it out.

Thanks again,
Jamie

“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9scb4a$cg0$1@inn.qnx.com

I am attempting to turn my QNX 4.25 system into a gateway by installing
two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The
problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card
at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same
interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to
the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the
2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie

Jamie Campbell wrote:

Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a little
red faced. I have installed many network cards before and I have been able
to have them unplugged (not on a network) for the systems to come on line.
However, with 2 cards, I guess you need to be on a network? I connected one
card to our LAN and the system was able to get past the ifconfig in the
sysinit.1 file. It did not matter which NIC was connect but one NIC needed
to be connected. If anyone knows why, I would be interested. Thanks.

I suspect the reason that it hangs up, is that it is in auto-negotiation
phase, looking for a hub or nic out there to establish either 10 or 100
mbit operation. Now, while I suspect that is the reason that it “hangs
up”, I don’t believe the driver is exhibiting correct behavior by
indefinately attempting to auto-negotiate. I think it should “give up”,
and then re-visit the process periodically, for short periods of time.

I have seen a number of network cards that would prevent a system from
booting if there was no network cable plugged in. And this happened even if
it was the only network card. I think it’s a poorly designed card.

I think you said that these cards are 10/100 MB cards. That means that they
will query the wire to determine what speed to initialize at. Perhaps if
you try to force the driver to one speed or another it may eliviate the need
that a cable be plugged in. I think the options is “-S100” or “-S10” but
check the docs.

Regarding your gateway problem:
Make sure that each host on each net has a netmat entry pointing to your
gateway host to get to the other network. I don’t think that a default
network path is sufficient.

If that doesn’t help post your netmaps here.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9seijd$pt1$1@inn.qnx.com

Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a little
red faced. I have installed many network cards before and I have been able
to have them unplugged (not on a network) for the systems to come on line.
However, with 2 cards, I guess you need to be on a network? I connected
one
card to our LAN and the system was able to get past the ifconfig in the
sysinit.1 file. It did not matter which NIC was connect but one NIC needed
to be connected. If anyone knows why, I would be interested. Thanks.

However, I still have a problem. I cannot get to the other network via the
gateway QNX system. From the ‘gateway’ I can ping both networks, but when
I
try to reach a net2 from a net1 computer via ping I get no response. In
the
sysinit file I have the command:
/usr/ucb/Socket -d forward net2 &

I am probably missing something, but darn if I can figure it out.

Thanks again,
Jamie

I still can’t reach any computers on netb from neta? I added a route on a
neta computer to the second network (route add 10.1.1.1 207.164.20.111) and
now I can ping the second card (netb) from a neta computer, but I can not
reach any other hosts on that netb network? I tried to do a route add via
the network (10.0.0.0) 'cause I thought that might help - but nope. I do not
follow what to do with the netmap table you reference below. I am learning
more than I wanted to but I am still swimming.
If you have any more tips I will try them.
Thanks.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:9sel4s$rl4$1@inn.qnx.com

I have seen a number of network cards that would prevent a system from
booting if there was no network cable plugged in. And this happened even
if
it was the only network card. I think it’s a poorly designed card.

I think you said that these cards are 10/100 MB cards. That means that
they
will query the wire to determine what speed to initialize at. Perhaps if
you try to force the driver to one speed or another it may eliviate the
need
that a cable be plugged in. I think the options is “-S100” or “-S10” but
check the docs.

Regarding your gateway problem:
Make sure that each host on each net has a netmat entry pointing to your
gateway host to get to the other network. I don’t think that a default
network path is sufficient.

If that doesn’t help post your netmaps here.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jamie Campbell” <> jcampbel@loacheng.on.ca> > wrote in message
news:9seijd$pt1$> 1@inn.qnx.com> …
Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a
little
red faced. I have installed many network cards before and I have been
able
to have them unplugged (not on a network) for the systems to come on
line.
However, with 2 cards, I guess you need to be on a network? I connected
one
card to our LAN and the system was able to get past the ifconfig in the
sysinit.1 file. It did not matter which NIC was connect but one NIC
needed
to be connected. If anyone knows why, I would be interested. Thanks.

However, I still have a problem. I cannot get to the other network via
the
gateway QNX system. From the ‘gateway’ I can ping both networks, but
when
I
try to reach a net2 from a net1 computer via ping I get no response. In
the
sysinit file I have the command:
/usr/ucb/Socket -d forward net2 &

I am probably missing something, but darn if I can figure it out.

Thanks again,
Jamie

In article <9setd1$37k$1@inn.qnx.com>, jcampbel@loacheng.on.ca says…

I still can’t reach any computers on netb from neta? I added a route on a
neta computer to the second network (route add 10.1.1.1 207.164.20.111) and
now I can ping the second card (netb) from a neta computer, but I can not
reach any other hosts on that netb network? I tried to do a route add via
the network (10.0.0.0) 'cause I thought that might help - but nope. I do not
follow what to do with the netmap table you reference below. I am learning
more than I wanted to but I am still swimming.
If you have any more tips I will try them.
Thanks.

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:9sel4s$rl4$> 1@inn.qnx.com> …
I have seen a number of network cards that would prevent a system from
booting if there was no network cable plugged in. And this happened even
if
it was the only network card. I think it’s a poorly designed card.

I think you said that these cards are 10/100 MB cards. That means that
they
will query the wire to determine what speed to initialize at. Perhaps if
you try to force the driver to one speed or another it may eliviate the
need
that a cable be plugged in. I think the options is “-S100” or “-S10” but
check the docs.

Regarding your gateway problem:
Make sure that each host on each net has a netmat entry pointing to your
gateway host to get to the other network. I don’t think that a default
network path is sufficient.

If that doesn’t help post your netmaps here.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jamie Campbell” <> jcampbel@loacheng.on.ca> > wrote in message
news:9seijd$pt1$> 1@inn.qnx.com> …
Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a
little
red faced. I have installed many network cards before and I have been
able
to have them unplugged (not on a network) for the systems to come on
line.
However, with 2 cards, I guess you need to be on a network? I connected
one
card to our LAN and the system was able to get past the ifconfig in the
sysinit.1 file. It did not matter which NIC was connect but one NIC
needed
to be connected. If anyone knows why, I would be interested. Thanks.

However, I still have a problem. I cannot get to the other network via
the
gateway QNX system. From the ‘gateway’ I can ping both networks, but
when
I
try to reach a net2 from a net1 computer via ping I get no response. In
the
sysinit file I have the command:
/usr/ucb/Socket -d forward net2 &

I am probably missing something, but darn if I can figure it out.

Thanks again,
Jamie






Are you specifying “forward” on the command line when you start

Socket/Tcpip?


Stephen Munnings
Software Developer
Corman Technologies Inc.

Hi Steve
I am using Socket as follows:

Socket -d forward &

Thanks
“Stephen Munnings” <steve@cormantech.com> wrote in message
news:MPG.1654c66679f8582b9896e2@inn.qnx.com

In article <9setd1$37k$> 1@inn.qnx.com> >, > jcampbel@loacheng.on.ca > says…
I still can’t reach any computers on netb from neta? I added a route on
a
neta computer to the second network (route add 10.1.1.1 207.164.20.111)
and
now I can ping the second card (netb) from a neta computer, but I can
not
reach any other hosts on that netb network? I tried to do a route add
via
the network (10.0.0.0) 'cause I thought that might help - but nope. I do
not
follow what to do with the netmap table you reference below. I am
learning
more than I wanted to but I am still swimming.
If you have any more tips I will try them.
Thanks.

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:9sel4s$rl4$> 1@inn.qnx.com> …
I have seen a number of network cards that would prevent a system from
booting if there was no network cable plugged in. And this happened
even
if
it was the only network card. I think it’s a poorly designed card.

I think you said that these cards are 10/100 MB cards. That means
that
they
will query the wire to determine what speed to initialize at. Perhaps
if
you try to force the driver to one speed or another it may eliviate
the
need
that a cable be plugged in. I think the options is “-S100” or “-S10”
but
check the docs.

Regarding your gateway problem:
Make sure that each host on each net has a netmat entry pointing to
your
gateway host to get to the other network. I don’t think that a
default
network path is sufficient.

If that doesn’t help post your netmaps here.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jamie Campbell” <> jcampbel@loacheng.on.ca> > wrote in message
news:9seijd$pt1$> 1@inn.qnx.com> …
Thanks Bill, Zeljko, and Hugh. I got it to finally work and I am a
little
red faced. I have installed many network cards before and I have
been
able
to have them unplugged (not on a network) for the systems to come on
line.
However, with 2 cards, I guess you need to be on a network? I
connected
one
card to our LAN and the system was able to get past the ifconfig in
the
sysinit.1 file. It did not matter which NIC was connect but one NIC
needed
to be connected. If anyone knows why, I would be interested. Thanks.

However, I still have a problem. I cannot get to the other network
via
the
gateway QNX system. From the ‘gateway’ I can ping both networks, but
when
I
try to reach a net2 from a net1 computer via ping I get no response.
In
the
sysinit file I have the command:
/usr/ucb/Socket -d forward net2 &

I am probably missing something, but darn if I can figure it out.

Thanks again,
Jamie






Are you specifying “forward” on the command line when you start
Socket/Tcpip?


Stephen Munnings
Software Developer
Corman Technologies Inc.

“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9sgnn6$9bg$1@inn.qnx.com

Hi Steve
I am using Socket as follows:

Socket -d forward &

If you can post your routing tables for both neta and netb. Do a
netstat -rn, netstat -i and a netstat -d

-Adam

Thanks to everyone who gave me some input.
I now have a QNX gateway computer. Lessons learned:

  1. ensure cards are plugged into the network
  2. use the proper netmask
  3. add the proper route on the gateway to the second network
  4. leave it and comeback later

“Jamie Campbell” <jcampbel@loacheng.on.ca> wrote in message
news:9scb4a$cg0$1@inn.qnx.com

I am attempting to turn my QNX 4.25 system into a gateway by installing
two
(2) 3C905B-TXNM fast etherlink PCI cards in my QNX 4.25 system. The
problem
is I can not get both cards to come up and the system freezes during
startup. The freeze occurs during the first ifconfig of en1. It does not
seem to be a card or PCI slot issue, since I am able to install one card
at
a time (single network). However, as soon as I install two cards it locks
up. I thought it might be a interrupt problem, but I use the same
interrupts
when I install the cards one at a time? I used nettrap query to get the
details about the two cards - and they both show up. The modification to
the
sysinit.1 file is as follows:
Net &
Net.ether905 -pdc00 -i9 -I0 -l1 &
sleep 2
Net.ether905 -pd800 -i12 -I1 -l2 &
sleep 2
/usr/ucb/Socket -d forward &
/usr/ucb/ifconfig en1 netmask 255.255.255.0 up
sleep 2
/usr/ucb/ifconfig en2 netmask 255.255.255.192 up
sleep 2

That is the skinny. I have changed the file various ways but nothing seems
to work. The documentation for the 905 driver made reference to the
/etc/config/netmap driver, but to modify it I need ‘Net’ running with the
2
cards, right?

If someone has some input, I will definitely take it gratefully.

Thanks in advance,
Jamie