No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


How to Check Interface Duplex and Speed Using ndd kstat on Solaris

Publication Date:  2012-07-25 Views:  67 Downloads:  0
Issue Description
How to Check Interface Duplex and Speed Using ndd/kstat on Solaris 10, at the time of installation of U2000.

Alarm Information
Using kstat to display network interface variables.
# kstat -p | grep link_ | grep bge
Handling Process
To solve the issue , use following steps:

Use the ndd command to check or set network interface configurables. some of the more important settings, as the relate to speed and duplex, are as follows:
ndd variable values description
link_status 0/1 read only 0 = link up, 1 = link down
link_speed 0/1 read only 0 = 10 meg, 1 = 100 meg
link_mode 0/1 read only 0 = half duplex, 1 = full duplex
adv_autoneg_cap 0/1 read/write 0 = autonegotiation off, 1 = autonegotiation on
adv_100t4_cap 0/1 read/write 0 = 100t4 off, 1 = 100t4 on
adv_100fdx_cap 0/1 read/write 0 = 100/full off, 1 = 100/full on
adv_100hdx_cap 0/1 read/write 0 = 100/half off, 1 = 100/half on
adv_10fdx_cap 0/1 read/write 0 = 10/full off, 1 = 10/full on
adv_10hdx_cap 0/1 read/write 0 = 10/half off, 1 = 10/half on

use the link_status, link_speed, and link_mode variables to check your current network interface. alternatively you can use 'netstat -k' which is extremely verbose. use the adv_* variables to set what you want the interface to be capable of.

more information about the hme driver can be found in this somewhat aged sun hme driver faq.

note: the tips about link_speed and link_mode do not work with /dev/ce (gigabit interfaces). at this time you have to use `netstat -k` for getting speed and status information.

Root Cause

To verify the duplex and speed settings for a network interface.


# ndd /dev/bge0 link_duplex
# ndd /dev/bge0 link_autoneg
# ndd /dev/bge0 link_status
# ndd /dev/bge0 link_speed