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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hard Code Ethernet Duplex Settings

Sun Networking

Hard Code Ethernet Duplex Settings

by  coffeysm  Posted    (Edited  )
Mismatched Duplex settings are not good for your system or the network. They result in errors, extremely long downloads, and can cause a lot of problems. Here is some ways to force certain types of interfaces to their required speed. I have used 100Mbps for example, but the settings can be tweaked for your needs.

#hme - Usually found on the older Ultra models
#Add these lines to /etc/system
set hme:hme_adv_100T4_cap = 0
set hme:hme_adv_autoneg_cap = 0
set hme:hme_adv_100fdx_cap = 1
set hme:hme_adv_100hdx_cap = 0
set hme:hme_adv_10fdx_cap = 0
set hme:hme_adv_10hdx_cap = 0
# using a ndd startup script if you do not want to add to /etc/system
#!/bin/sh
ndd -set /dev/hme adv_100T4_cap 0
ndd -set /dev/hme adv_autoneg_cap 0
ndd -set /dev/hme adv_100fdx_cap 1
ndd -set /dev/hme adv_100hdx_cap 0
ndd -set /dev/hme adv_10fdx_cap 0
ndd -set /dev/hme adv_10hdx_cap 0
#qfe - Quad fast ethernet
#Add these lines to /etc/system
set qfe:qfe_adv_100T4_cap = 0
set qfe:qfe_adv_autoneg_cap = 0
set qfe:qfe_adv_100fdx_cap = 1
set qfe:qfe_adv_100hdx_cap = 0
set qfe:qfe_adv_10fdx_cap = 0
set qfe:qfe_adv_10hdx_cap = 0
# using a ndd startup script if you do not want to add to /etc/system
#!/bin/sh
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
# eri - found on newer Sun Blades and Sun Fires
#Add these lines to /etc/system
set eri:adv_100T4_cap = 0
set eri:adv_autoneg_cap = 0
set eri:adv_100fdx_cap = 1
set eri:adv_100hdx_cap = 0
set eri:adv_10fdx_cap = 0
set eri:adv_10hdx_cap = 0
# using a ndd startup script if you do not want to add to /etc/system
#!/bin/sh
ndd -set /dev/eri adv_100T4_cap 0
ndd -set /dev/eri adv_autoneg_cap 0
ndd -set /dev/eri adv_100fdx_cap 1
ndd -set /dev/eri adv_100hdx_cap 0
ndd -set /dev/eri adv_10fdx_cap 0
ndd -set /dev/eri adv_10hdx_cap 0
# bge0 - Gigabit
# I use a script, however, I think there is a config file in the /kernel directory.
ndd -set /dev/bge0 adv_autoneg_cap 0
ndd -set /dev/bge0 adv_1000fdx_cap 0
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 1
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_10hdx_cap 0
# ge - Gigabit
# I use a script, however, I think there is a config file in the /kernel directory.
ndd -set /dev/ge adv_autoneg_cap 0
ndd -set /dev/ge adv_1000fdx_cap 0
ndd -set /dev/ge adv_1000hdx_cap 0
ndd -set /dev/ge adv_100fdx_cap 1
ndd -set /dev/ge adv_100hdx_cap 0
ndd -set /dev/ge adv_10fdx_cap 0
ndd -set /dev/ge adv_10hdx_cap 0
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top