Hi! thanks to all who responded:
the thing i ended up doing was just boot my machine after
the other le0 it was attached to was up and running. though
in theory disconnecting the cable for a few seconds or
bouncing the interface (not sure if that's a up/down
thing or a plumb/unplumb thing) would have sufficed.
the nifty stuff i got out it was:
to find the speed of my hme
ndd /dev/hme link_speed
(1 is 100Mbits 0 is 10Mbits)
oh! and there's a neat faq at:
http://www.rvs.uni-hannover.de/people/voeckler/tune/EN/tune.html#hme
oh and if you want to do a quick look at the writeables,
you can cut and paste this: (i got tired of poking with ndd)
#!/usr/local/bin/perl
@parms=("ipg1",
"ipg2",
"use_int_xcvr",
"pace_size",
"adv_autoneg_cap",
"adv_100T4_cap",
"adv_100fdx_cap",
"adv_100hdx_cap",
"adv_10hdx_cap",
"adv_10fdx_cap",
"instance",
"lance_mode",
"ipg0"
);
$|=1;
foreach $parm (@parms) {
print "checking for $parm ";
system "ndd /dev/hme $parm";
};
Mark
-----------------------------------------------------------------------
-----------------------------------------------------------------------
results:
From: Dean Humphrey <dean@cec.wustl.edu>
do a ndd /dev/hme \?
for a fast ethernet card.
this will list what params are available. then same command for each
param.
i.e.
root% ndd /dev/hme link_mode <return>
1
means link is at full duplex. go to sunsolve or answerbooks for full
detail for each param. man ndd!
-----------------------------------------------------------------------
From: mwang@tech.cicg.ml.com (Michael Wang)
use
ndd -get /dev/hme link_speed
search for Sun FAST ETHERNET FAQ
-----------------------------------------------------------------------
From: Stefan Voss <s.voss@terradata.de>
Hi,
to check the new settings, type:
# ndd /dev/hme link_speed
1 1 - 100MBit/sec, 0 - 10MBit/sec
# ndd /dev/hme link_mode
1 1 - Full Duplex Mode, 0 - Half Duplex Mode
Both commands need to be run as root.
-----------------------------------------------------------------------
From: Sebastian Benoit <benoit@Mathematik.Uni-Marburg.de>
This is a FAQ. You should have read the
mailing - list information and FAQs before posting.
The answer to your question can be found at
http://www.rvs.uni-hannover.de/people/voeckler/tune/EN/tune.html#hme
-----------------------------------------------------------------------
From: "McCabe, Keith (London)" <mccabkei@MLE.CO.UK>
[McCabe, Keith (London)] It's a simple script. You probably don't
want to force the speed setting in /etc/system but let it autosense - unless
something is screwy with your network switch.
Cheers
Keith McCabe
Merrill Lynch
#!/bin/ksh=0A=
=0A=
if [ ! -r /etc/shadow ]; then=0A=
echo "Gotta be root on a Solaris box to run this"=0A=
exit =0A=
fi=0A=
=0A=
HME=3D`netstat -i | awk '$1 ~ /hme/ {printf("%s\n",substr($1, 4, =
1))}'`=0A=
QFE=3D`netstat -i | awk '$1 ~ /qfe/ {printf("%s\n",substr($1, 4, =
1))}'`=0A=
=0A=
if [ ! -z $HME ]; then=0A=
for interface in $HME; do=0A=
ndd -set /dev/hme instance $interface=0A=
if [ `ndd /dev/hme link_speed` -eq 0 ]; then=0A=
echo "hme${interface} 10 Mbits/s"=0A=
else=0A=
echo "hme${interface} 100 Mbits/s"=0A=
fi=0A=
done=0A=
fi=0A=
=0A=
if [ ! -z $QFE ]; then=0A=
for interface in $QFE; do=0A=
ndd -set /dev/qfe instance $interface=0A=
if [ `ndd /dev/qfe link_speed` -eq 0 ]; then=0A=
echo "qfe${interface} 10 Mbits/s"=0A=
else=0A=
echo "qfe${interface} 100 Mbits/s"=0A=
fi=0A=
done=0A=
fi=0A=
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:53 CDT