Technical article 107701

How can I determine which NIC is net0 or net1?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

After installing more than one network card, how can I determine which NIC is net0, net1, net2, and so on?

Cause

In SCO OpenServer 5.0.0 and later, most network cards are no longer
referenced solely by the drivername.  Instead, there is a "clone"
driver which is used to open a minor device on another
STREAMS-based driver (such as a network card driver).  The major
number of the clone driver is used to refer to net0, net1, and so
on, and these references are used in the output of netstat(TC),
ifconfig(ADMN), and other networking-related commands.

Unfortunately, this also means there is no obvious way to find out which NIC is "net0" or "net1".

Solution

There are at least three ways to help determine which NIC is which
network interface.  One would be to use llistat(ADM) to print out
the MAC address of the NICs, and then compare those values to
what the card's label says.  However, not all NICs have the MAC
address clearly labeled, and the MAC address may also have been
changed.
You can also use hwconfig(C) to view the MAC address of some cards.
Occasionally, the output will also contain slot information.  EISA
and PCI cards usually get their resource settings (IRQ, I/O address,
and so on) based on the slot in which they are placed.  If
hwconfig(C) doesn't show the slot information, then netconfig(ADM)
will.
Netconfig(ADM) reads the info files in the /usr/lib/netconfig/info
directory.  You can extract the information without netconfig(ADM),
too.  For instance, if you enter the command:
grep DESC /usr/lib/netconfig/info/net2
you might see output such as:
DESCRIPTION="Western Digital 8003/8013 Series - I/O Address 280"

and you'd have an easy time finding that card.

If you are unsure as to which physical card is set to a certain I/O address or IRQ, you can examine the jumpers or use the UNIX or DOS configuration utility that shipped with the card to check the settings.

Finally, you can use the following command to summarize what NICs have been configured on the machine:

cat /var`llipathmap`/llimdi

The output will be something similar to:

net1:ne0:Y:1
net0:cet0:N:1
net2:wdn0:N:1
which tells you that net1 is a NIC using the ne driver (Novell
NE3200 or NE3200T), net0 is a NIC using the cet driver (Compaq
Netflex series), and net2 is using the wdn driver (SMC or Western
Digital 80XX card).  You can use this information along with the
other clues you have discovered to determine which NIC is which
network interface.
NOTE:     An alternate is to look for the MAC address in "ndstat -l" and use
          a MAC address finder to look for the manufacturer of the NIC, such as
http://www.coffer.com/mac_info/locate-unix.html#sco
http://coffer.com/mac_find/

and check with the "Ethernet Controller" listed in "hw -v".

See also

Manual pages for clone(M), netconfig(ADM), hwconfig(C), llistat(ADM), and llipathmap(ADM), as well as other articles in this database.

From the Xinuos technical article database, record 107701. Reproduced with permission. The original is at www.sco.com/ta/107701, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.