The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Load balancing across network cards johnf AIX 4 10-26-2006 05:00 PM
How to List all Network cards unclefab SUN Solaris 5 06-27-2005 09:17 AM
Disable Network cards under boot Prom unclefab SUN Solaris 6 03-31-2005 01:43 PM
SCO Unix and Two Network Cards potter UNIX for Dummies Questions & Answers 1 09-12-2002 01:42 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2006
Registered User
 

Join Date: Jan 2005
Posts: 28
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
Reply With Quote
Forum Sponsor
  #2  
Old 10-27-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,487
should be qfe0-3 and ge0.
Reply With Quote
  #3  
Old 10-30-2006
Registered User
 

Join Date: Jan 2005
Posts: 28
Thanks,

but where can I found these cards on the system ?

With Ifconfig -a, I can only see Ce card ....
Reply With Quote
  #4  
Old 10-30-2006
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
you could see it in the kstat output, look in the output for names with a number in the end:

Code:
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
Reply With Quote
  #5  
Old 10-30-2006
Registered User
 

Join Date: Jan 2005
Posts: 28
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 .....
Reply With Quote
  #6  
Old 10-30-2006
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
Quote:
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
Reply With Quote
  #7  
Old 10-30-2006
Registered User
 

Join Date: Jun 2006
Location: Beşiktaş
Posts: 22
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0