Before plumb the network interface.....

I know that I could use the

#ifconfig hme0 plumb

to activate the network interface.

However, how can I know the name of the interface e.g. hme0 before I could use the ifconfig to plumb it up?

I know there is a command (but I forgot it) to use in the Sparc version when you are in the OK> . But what happens if I'm using the x86 version?

Hi

http://solaris-x86.org/documents/tutorials/network.mhtml

Above is a link that should take you through how to find and setup a network interface in Solaris x86.

If you're not 100% sure, try running dmesg as root and see if you can spot what looks like a network interface. I'm not sure about x86 but you should be able to grep for "mac address".

Thanks

Thanks dude! I'll check it out.

About the best you'll get is....

$ prtconf -D | grep network
network, instance #0 (driver name: ce)
network, instance #1 (driver name: ce)
network, instance #2 (driver name: ce)
network, instance #3 (driver name: ce)
network, instance #0 (driver name: eri)

So we see we have ce0 thru ce3, and eri0 - you won't see lo devices....

Cheers
ZB

grep hme /etc/path_to_inst

You will see the the relationship betweewn hardware path, and hme name.
The same procedure can be worked for other intefaces. For example:

grep ce /etc/path_to_inst
grep qfe /etc/path_to_inst

thanks dude, I've tried this but it shows only those interface that I've already plumb up. Are there any other commands that I could use to find those non-plumb interface?

I remember if you're using the SPARC version of Solaris, during the OK prompt(Stop A) screen you can type the following:

watch-net-all

then the system will show all network interface, e.g. hme0, qfe0, etc (whether you've plumb it or not).

Later you could use the ifconfig qfe0 plumb to activate it.

However, as far as I know there is no OK prompt (Stop A) for the X86 system. Then how can I find those network interface?

cat /etc/path_to_inst |grep network