SUMMARY: link speed on a V210

From: <>
Date: Tue Aug 31 2004 - 11:02:02 EDT
Thanks everyone,

The best way to see the current duplex setting of a bge interface is with
the kstat command, here are a couple examples that work:

kstat bge:0 | grep duplex
kstat -m bge -n bge0

For a list of all parameters accepted by the ndd command (clearly stated in
the man page:) use the following command:

ndd /dev/bge0 \?

The parameter I was looking for was link_duplex.  However, it looks as
though a 1 means half duplex and a 2 means full duplex.  This can be
confusing if you're used to the hme interfaces that use 0 and 1 for the
duplex settings.  Anyway, I was able to determine that the system was
coming up at 100 half duplex, and after getting the correct parameters, I
made the following startup script which successfully forced it to 100 full:

# cat /etc/init.d/interface

case "$1" in
        echo "Forcing bge interface to 100 MBit Full Duplex... \c"
        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_100T4_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
        echo "done"

        echo "Usage: $0 { start }"
        exit 1
exit 0

Thank you to everyone for their quick and helpful replies!


             Sent by:                                                   To 
             es@sunmanagers.or                                          cc 
                                       link speed on a V210                
             08/31/2004 09:50                                              

Hey everyone,

I have just set up a Sun Fire V210 server.  I want to make sure that the
interface is getting set to 100 full duplex.  However, this interface does
not seem to accept the link_mode option to the ndd command:

# ndd -get /dev/bge0 link_speed

# ndd -get /dev/bge0 link_status

# ndd -get /dev/bge0 link_mode
operation failed: Invalid argument

# ndd -get /dev/bge link_mode
operation failed: Invalid argument

Does anybody know how I can check the duplex setting on this interface?
According to the boot messages, it's coming up as half duplex, but I'd like
to know how to confirm this.  Thanks,

CONFIDENTIALITY NOTICE: This e-mail, and any attachments thereto, is
intended only for use by the addressee(s) named herein and may contain
confidential information.  If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is strictly
prohibited.  If you have received this e-mail in error, please permanently
delete the original and any copy of any e-mail and any printout thereof.
Thank you for your compliance.
sunmanagers mailing list
sunmanagers mailing list
Received on Tue Aug 31 11:01:56 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:37 EST