How to find network cards available ...

Hi all,

I have a server running with Solaris and I have 2 Pci cards installed on this server (since a while), 1 with 4 coppers connections output and one with a Fiber network connection output.

Today, this server is using the on board network connection (Ce0).

How can I find the other network interfaces available and switch to use the fiber one ?

I thought about \etc\path_to_inst | grep network, but I can only see ce0 & ce1 on this file.

Thanks a lot

Fabien

should be qfe0-3 and ge0.

Thanks,

but where can I found these cards on the system ?

With Ifconfig -a, I can only see Ce card ....

you could see it in the kstat output, look in the output for names with a number in the end:

root@jumpy # kstat -c net | grep net
name:   dmfe0                           class:    net
name:   dmfe_events                     class:    net
name:   mii                             class:    net
name:   dmfe1                           class:    net
name:   dmfe_events                     class:    net
name:   mii                             class:    net
name:   lo0                             class:    net
name:   zero_copy                       class:    net

regards pressy

Thanks !

Last question, Can we find somewhere a list of interfaceswe can found under Solrais and hardware linked?

I.E :
Ce= Internal copper
Qfe= Pci copper
bge = Fiber ....
eri .....

no, not really, because these names are not based on the hardware interfaces, these are the names of the drivers that are used. eg. the "ce" driver can be found on both copper and fiber...

the be, hme, eri, dmfe, and qfe SunFastEthernet drivers have all 100Mb, the ge, ce, and bge are 1000Mb Sun Gigabit Ethernet drivers and the le, and qe are 10Mb interfaces...

regards pressy

For the example here it is assumed that hme0 is not installed on the system and eri0 has been configured and working.

1) Do
dladm show-link - this shows list of network cards installed on the system during installation time. If an interface is not installed on the system it will not show here. That means driver for that interface (device) has not been installed.
bash-3.00# dladm show-link
ge0 type: legacy mtu: 1500 device: ge0
eri0 type: legacy mtu: 1500 device: eri0

2) Also checking modinfo | grep device should list the driver if it is installed and loaded.

3) prtconf also helps to list available devices.
bash-3.00# prtconf -a /dev/hme
prtconf: invalid device path specified
bash-3.00# prtconf -a /dev/eri
SUNW,Sun-Fire-880
pci, instance #2
network, instance #0
bash-3.00#

4) Even kstat -c net | more will show all the configured interfaces as modules and their instances. But anything comeup here after it is plumbed.

5) Finally ifconfig -a shows all the interfaces plumbed so far. Plumbing can happen only after a device (NIC) has been installed with appropriate driver.

6) Can also lookinto these files
bash-3.00# grep -w ge /etc/path_to_inst
"/pci@8,600000/network@1" 0 "ge"
bash-3.00# grep -w eri /etc/path_to_inst
"/pci@9,700000/network@1,1" 0 "eri"
bash-3.00# grep -w hme /etc/path_to_inst

Something about NIC
********************
Solaris has physical and logical interfaces. Physical interface is a HW with approriate driver. Logical inteface is mapping with physical interface (NIC) and has configuration information such as ip etc.

During system installation, the Solaris installation program detects any interfaces that are physically installed and displays each interface's name. At least one interface from the list of interfaces should be configured. The first interface to be configured during installation becomes the primary network interface. The IP address of the primary network interface is associated with the configured host name of the system, which is stored in the /etc/nodename file. You can configure additional interfaces during later.

Network Interface Names
***********************

Each physical interface is identified by a unique device name. Device names have the following syntax:

Driver names on Solaris systems could include ce, hme, bge, e1000g etc. The variable instance-number can have a value from zero to n, depending on how many interfaces of that driver type are installed on the system.

Some typical driver names for this interface are eri, qfe, and hme. When used as the primary network interface, the Fast Ethernet interface has a device name such as eri0 or qfe0.

Configring the interface.
*************************
Get the driver for the NIC from the installation CD and add package. Once package is installed an entry into /dev/.... will be made

now, dladm show-link. This should show the interface.

next, ifconfig hme0 plumb up should work and
ifconfig hme0 should showup without the IP.

IP configuration can be done as per the normal process.

1 Like

Check this document:
http://docs.sun.com/app/docs/doc/817-3947/6mjgnrl70?l=zh&q=ftp&a=expand