From: Patrick.McDermott@bedbath.com
Date: Tue Aug 31 2004 - 11:01:39 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
#!/sbin/sh
case "$1" in
'start')
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
;;
esac
exit 0
Thank you to everyone for their quick and helpful replies!
PJ
Patrick.McDermott
@bedbath.com
Sent by: To
sunmanagers-bounc sunmanagers@sunmanagers.org
es@sunmanagers.or cc
g
Subject
link speed on a V210
08/31/2004 09:50
AM
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
100
# ndd -get /dev/bge0 link_status
1
# 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,
PJ
------------------------------------------------------
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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:22 EDT