sundot home page unix consulting in the uk and mainland europe (archives)
home | about sundot | unix | downloads | archives›date | archives›subject | external links

Forcing ethernet interface settings on Solaris - get the sequence right (scripts).

posted by hal 20030116 (archived) | permalink | path | initial version: 20030115.

When forcing settings for an ethernet interface using ndd on Solaris it essential to get the sequence correct. Get it wrong and you end up with the wrong results or having to issue your ndd's twice (as shown here).

First set the interface speed and handshake, then turn off auto-negotiation. It's a common mistake to do it the other way around (in fact I did it myself until I checked my settings after a reboot).

So for the hme0 ethernet interface run the commands in this sequence to force 100 Mbit/sec full-duplex:

# /usr/sbin/ndd -set /dev/hme instance 0
# /usr/sbin/ndd -set /dev/hme adv_100fdx_cap 1
# /usr/sbin/ndd -set /dev/hme adv_100hdx_cap 0
# /usr/sbin/ndd -set /dev/hme adv_10fdx_cap 0
# /usr/sbin/ndd -set /dev/hme adv_10hdx_cap 0
# /usr/sbin/ndd -set /dev/hme adv_100T4_cap 0
# /usr/sbin/ndd -set /dev/hme adv_autoneg_cap 0

Simple scripts for forcing (ge, eri and hme) ethernet interfaces and checking them are available as downloads.


Solaris Guide for New Sys Admins - useful guide for newbies, but contains errors.

posted by hal 20030116 (archived) | permalink | path | initial version: 20030109

"The SolarisTM OE Guide for New System Administrators" by Rolf Kersten has been front page stuff on Sun's bigadmin site for a while now and claims to contain the 20% of Solaris knowledge that solves 80% of your needs. A new version (1.12e) is out and these notes refer to this one.
20030116: got an email from Rolf today and (some of) my suggested changes will be incorporated into the next version.

First let me just say that it is a good reference document with overall sound advice (37 pages of it). I am sure it will be of great help to new admins or people moving up from Linux. It is geared towards administrators of Solaris workstations (big sections on CDE and OpenGL). I specially like the book recommendations which only contains two books - Unix Power Tools and the Unix System Administration Handbook. The chapter on graphics is very useful for admins who normally deals with headless servers.

I think there is plenty of room for improvement:

A few other things worth mentioning (hints and personal preferences):


Creative Commons
 License Valid HTML 4.01! Valid CSS! Powered by Blosxom!
All content on this website is governed by a Creative Commons license.