Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAC address

Status
Not open for further replies.
Apr 13, 2004
316
US
How do you get the MAC address on Solaris 9?

On AIX I would use lscfg -vl <adapter>; what is the command on Solaris?
 
ifconfig shows it. Hmm, AIX's ifconfig doesn't show the ethernet address.
 
Okay, I have a different question now.

If the device ce2 has a MAC address and then you have another device ce2:1, it doesn't show a ether address. Is the MAC address for ce2:1 the MAC address of ce2?

Thanks.
 
Hi,

You can have eatch NIC use its own MAC address. Use eeprom to set the value of local-mac-address? to true.
local-mac-address?=true

-Joe
 
no, usually (onboard) NICs derive thios from the hostid...

Code:
eg.:
# hostid
80f00312
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.43.50.43 netmask ffffff00 broadcast 10.43.50.255
        ether 8:0:20:f0:3:12 
hme0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.43.50.58 netmask ffffff00 broadcast 10.43.50.255
#

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Is there a way to see what speed the NIC is operating in (10 half duplex, 100 Full Duplex....)?

Thanks!
 
Yes, use the following command;

ndd -get /dev/<NIC>

for example;

ndd -get /dev/ce0
 
The commands for ndd are as follows. We will use the same device in the example as comtex17.

As root:

ndd -get /dev/ce link_speed 0 - 10 Meg
1 - 100 Meg
1000 - 1 Gig

ndd -get /dev/ce link_mode 0 - Half Duplex
1 - Full Duplex

You can find out what device you are using by looking at the name of the file /etc/hostname.***. So if your file name is /etc/hostname.eri0, you will use the command:

ndd -get /dev/eri link_speed
ndd -get /dev/eri link_mode


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top