Hardware autodetect

Hi, All!
I have some questions about autodetect of network hardware. There is a
net where every node has some net card (above than 1) from same
producer. All cards connected by PCI (Plug & Play). I run autodetect (or
I run Net.* without -p and -i parameters). As result, all netware
drivers are go and I don’t know LAN id that were set each card.
Can I change the LAN id for running Net.* driver at run-time from
programm?
Can I specify the LAN id for each card when run autodetect?

The -l option to both nettrap and Net.* will force the drivers to use a
specific lan.

Donald


Eugene A. Kislov wrote in message
<39865E7D.7E8E5DA8@asutp.yorp.yaroslavl.ru>…

Hi, All!
I have some questions about autodetect of network hardware. There is a
net where every node has some net card (above than 1) from same
producer. All cards connected by PCI (Plug & Play). I run autodetect (or
I run Net.* without -p and -i parameters). As result, all netware
drivers are go and I don’t know LAN id that were set each card.
Can I change the LAN id for running Net.* driver at run-time from
programm?
Can I specify the LAN id for each card when run autodetect?

Let I give you example.
There are two cards from the same producer. One of them have MAC adress
AAAAAA and another have adress BBBBBBB.
All cards is Plug&Play connection. Can I do follow configuration:
card with AAAAAAAA - lan 1
card with BBBBBBBB - lan 2
And How I can bind MAC adress and lan ID?


Donald Lalonde wrote:

The -l option to both nettrap and Net.* will force the drivers to use a
specific lan.

Donald

Eugene A. Kislov wrote in message
39865E7D.7E8E5DA8@asutp.yorp.yaroslavl.ru> >…
Hi, All!
I have some questions about autodetect of network hardware. There is a
net where every node has some net card (above than 1) from same
producer. All cards connected by PCI (Plug & Play). I run autodetect (or
I run Net.* without -p and -i parameters). As result, all netware
drivers are go and I don’t know LAN id that were set each card.
Can I change the LAN id for running Net.* driver at run-time from
programm?
Can I specify the LAN id for each card when run autodetect?

Previously, Eugene A. Kislov wrote in qdn.public.qnx4:

Let I give you example.
There are two cards from the same producer. One of them have MAC adress
AAAAAA and another have adress BBBBBBB.
All cards is Plug&Play connection. Can I do follow configuration:
card with AAAAAAAA - lan 1
card with BBBBBBBB - lan 2
And How I can bind MAC adress and lan ID?

I don’t know what type of network cards you have, but in general, if you
have 2 network cards the same, the best way to start them is as follows:

Net.xxxxxx -l1 -I0 & # For lan 1
Net.xxxxxx -l2 -I1 & # For lan 2

If you need to have the cards the othe way around, then change the -Ix
options around.

The autodetect will always set the adapter with index 0 to lan 1 and
index 1 to lan 2.

Donald Lalonde wrote:

The -l option to both nettrap and Net.* will force the drivers to use a
specific lan.

Donald

Eugene A. Kislov wrote in message
39865E7D.7E8E5DA8@asutp.yorp.yaroslavl.ru> >…
Hi, All!
I have some questions about autodetect of network hardware. There is a
net where every node has some net card (above than 1) from same
producer. All cards connected by PCI (Plug & Play). I run autodetect (or
I run Net.* without -p and -i parameters). As result, all netware
drivers are go and I don’t know LAN id that were set each card.
Can I change the LAN id for running Net.* driver at run-time from
programm?
Can I specify the LAN id for each card when run autodetect?

HI Hugh,

I don’t have a -I option to my Net.* drivers.

Do you mean -p (The PCI Index)?

Hugh Brown <hsbrown@qnx.com> wrote in message
news:Voyager.000802084149.970D@qnx.com

I don’t know what type of network cards you have, but in general, if you
have 2 network cards the same, the best way to start them is as follows:

Net.xxxxxx -l1 -I0 & # For lan 1
Net.xxxxxx -l2 -I1 & # For lan 2

If you need to have the cards the othe way around, then change the -Ix
options around.

The autodetect will always set the adapter with index 0 to lan 1 and
index 1 to lan 2.

To get the mac addresses use the netmap command. Just make sure you HAVE NOT
loaded a netmap file with netmap command in your sysinit (near Net &),
otherwise you won’t know what is from the netmap file and what is from the
cards. Just comment out the netmap command. Start your network drivers, then
type netmap.

If you want these numbers in your netmap file do “netmap >>
/etc/config/netmap” and then edit /etc/config/netmap to remove any obsolete
settings. Then uncomment the netmap command and restart your network
drivers.
-Paul

Eugene A. Kislov <evkislov@asutp.yorp.yaroslavl.ru> wrote in message
news:3987AE64.E5D426EF@asutp.yorp.yaroslavl.ru

Let I give you example.
There are two cards from the same producer. One of them have MAC adress
AAAAAA and another have adress BBBBBBB.
All cards is Plug&Play connection. Can I do follow configuration:
card with AAAAAAAA - lan 1
card with BBBBBBBB - lan 2
And How I can bind MAC adress and lan ID?


Donald Lalonde wrote:

The -l option to both nettrap and Net.* will force the drivers to use a
specific lan.

Donald

Eugene A. Kislov wrote in message
39865E7D.7E8E5DA8@asutp.yorp.yaroslavl.ru> >…
Hi, All!
I have some questions about autodetect of network hardware. There is a
net where every node has some net card (above than 1) from same
producer. All cards connected by PCI (Plug & Play). I run autodetect
(or
I run Net.* without -p and -i parameters). As result, all netware
drivers are go and I don’t know LAN id that were set each card.
Can I change the LAN id for running Net.* driver at run-time from
programm?
Can I specify the LAN id for each card when run autodetect?

Previously, Bill at Sierra Design wrote in qdn.public.qnx4:

HI Hugh,

I don’t have a -I option to my Net.* drivers.

Do you mean -p (The PCI Index)?

You must have an old driver if it has the -p option, as this was changed
some time ago to be -I on all drivers. If yours has -p then try that.

Hugh Brown <> hsbrown@qnx.com> > wrote in message
news:> Voyager.000802084149.970D@qnx.com> …

I don’t know what type of network cards you have, but in general, if you
have 2 network cards the same, the best way to start them is as follows:

Net.xxxxxx -l1 -I0 & # For lan 1
Net.xxxxxx -l2 -I1 & # For lan 2

If you need to have the cards the othe way around, then change the -Ix
options around.

The autodetect will always set the adapter with index 0 to lan 1 and
index 1 to lan 2.
\

Paul Russell <paul@jenosys.com> wrote:

To get the mac addresses use the netmap command.

Safer is to use the “netinfo -l” command.

Just make sure you HAVE NOT
loaded a netmap file with netmap command in your sysinit (near Net &),

It doesn’t get overwritten if you load a different netmap.

-David

But it is confusing to have several mac addresses listed for a node - you
cannot be certain which is from the hardware and which from the file without
having to go back to the file. Cleaner to start with an empty netmap…

David Gibbs <dagibbs@qnx.com> wrote in message
news:8m9sog$n1e$1@inn.qnx.com

Paul Russell <> paul@jenosys.com> > wrote:
To get the mac addresses use the netmap command.

Safer is to use the “netinfo -l” command.
Just make sure you HAVE NOT
loaded a netmap file with netmap command in your sysinit (near Net &),

It doesn’t get overwritten if you load a different netmap.

-David

Cancel that. The netinfo -l does look better…

Paul Russell <paul@jenosys.com> wrote in message
news:8meoor$a0l$1@inn.qnx.com

But it is confusing to have several mac addresses listed for a node - you
cannot be certain which is from the hardware and which from the file
without
having to go back to the file. Cleaner to start with an empty netmap…

David Gibbs <> dagibbs@qnx.com> > wrote in message
news:8m9sog$n1e$> 1@inn.qnx.com> …
Paul Russell <> paul@jenosys.com> > wrote:
To get the mac addresses use the netmap command.

Safer is to use the “netinfo -l” command.
Just make sure you HAVE NOT
loaded a netmap file with netmap command in your sysinit (near Net &),

It doesn’t get overwritten if you load a different netmap.

-David