Solaris HOW-TO: Check Network Interfaces

In Solaris 10, to know how many network interfaces the system has, use the command “dladm show-dev”. For example:

# dladm show-dev
e1000g0 link: down speed: 0 Mbps duplex: half
e1000g1 link: unknown speed: 0 Mbps duplex: half
e1000g2 link: unknown speed: 0 Mbps duplex: half
e1000g3 link: unknown speed: 0 Mbps duplex: half

#

The machine in the example above has 4 x network interfaces (e1000g0, e1000g1, e1000g2, e1000g3). Only e1000g0 is configured but the link is down.

The command also shows what interfaces are up/down, and the speed of each link. For earlier versions of Solaris, the file “/etc/inst_to_path” can be checked for Network interfaces. Try popular network interfaces’ names like “e1000g” or “bge” or “hme” or “eri”

For example:


# grep -i eri* /etc/path_to_inst
"/pci@9,700000/network@1,1" 0 "eri"

#

The machine above has one “eri0″ network interface.

This command can also be used:
root@hamdan # Prtconf -D |grep network

This entry was posted in network, Solaris and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>