How to find network cards available ...


 
Thread Tools Search this Thread
Operating Systems Solaris How to find network cards available ...
# 1  
Old 10-27-2006
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
# 2  
Old 10-27-2006
should be qfe0-3 and ge0.
# 3  
Old 10-30-2006
Thanks,

but where can I found these cards on the system ?

With Ifconfig -a, I can only see Ce card ....
# 4  
Old 10-30-2006
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
# 5  
Old 10-30-2006
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 .....
# 6  
Old 10-30-2006
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
# 7  
Old 10-30-2006
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.
This User Gave Thanks to nibiru78 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

1 Server with 2 ethernet cards IP on seperate network. Possible?

Hi All, I have just setup a webserver running on a linux box. This server has 2 ethernet cards and only 1 is in used now. eg. 192.168.10.1 is my server IP. All users from 192.168.10.X can access my webserver. However, users from another LAN 10.10.10.X are not able to access my webserver. They... (0 Replies)
Discussion started by: jackma
0 Replies

2. UNIX for Dummies Questions & Answers

How to use wild cards to find files beginning with upper and lower case

Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first. At the moment i have the following code that ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies

3. Hardware

Slackware 13.1 can't configure two network cards

Hello everybody, I'm having troubles with Slackware 13.1 and network cards. I have one on-board Ethernet card (which is recognized and works okay) and a PCI Ethernet card (which is also recognized, but doesn't appear in 'ifconfig -a'). If i run a 'lspci', i can see the kernel recognized the... (5 Replies)
Discussion started by: semash!
5 Replies

4. Solaris

Network cards - Routing

Hi all I hate networking, I hate everything to do with it. Its something I do in anger in one contract, then forget. This is more of a question / than a problem. So, on a solaris 10 server, using older qfe cards, Ive got a sun truck with 4 nics (qfe0,3,4,7), and a ipmp pair (hemo0,qfe1).... (2 Replies)
Discussion started by: sbk1972
2 Replies

5. Solaris

qfe errors and network cards

Hi All, Hope you are all doing good. In MY unix box i have 2 network cards. I want to know what if one network card fails. Does the second one will automatically take all the traffic or how it is supposed to work. Also in my logs i am seeing below errors . Can you throw some light of this qfe... (3 Replies)
Discussion started by: Krrishv
3 Replies

6. AIX

Load balancing across network cards

The title speaks for itself. I have never attempted this but understand there is a way to use two network cards (en0 and en1) with the same IP address so as to load balance the traffic flow through both cards. Anyone know the answer? (4 Replies)
Discussion started by: johnf
4 Replies

7. Solaris

How to List all Network cards

Hi, I'm looking for a command to be able to list all my network cards available on my server. With the command "ifconfig - a", I can only see to configured network card(s) Any idea ? :confused: Thanks a lot for your help, Fabien (5 Replies)
Discussion started by: unclefab
5 Replies

8. Solaris

Disable Network cards under boot Prom

Hi, I'm looking for a command to be able to disable a network card under the boot PROM. I need it to force my Jumpstart to use the Ethernet card of my server (V880) instead of my fiber card (gem0). Thanks, Fabien (6 Replies)
Discussion started by: unclefab
6 Replies

9. UNIX for Dummies Questions & Answers

SCO Unix and Two Network Cards

Our shops server runs SCO Openserver 5 release 5. It has two network cards in it (one on 10.0.0.6 and one on 90.0.0.99). When I run scoadmin and look at the network settings it show both my 3com network cards and a loop back driver http://theentertainer.com/james/untitled.jpg Can anyone tell... (1 Reply)
Discussion started by: potter
1 Replies
Login or Register to Ask a Question