Changing Ethernet Port Speeds

Changing Ethernet Port Speeds

Post by Martin Hendric » Sat, 13 Oct 2001 20:13:08



Does anyone know how I change the Ethernet port setting on both a SUN
E250 and a E450 so that it is set to run at 100Mbps Full-Duplex ???
(They are currently running at 10Mbps Half-Duplex)
 
 
 

Changing Ethernet Port Speeds

Post by Marc Ferr » Sat, 13 Oct 2001 22:42:24


Martin Hendrick a crit :

Quote:> Does anyone know how I change the Ethernet port setting on both a SUN
> E250 and a E450 so that it is set to run at 100Mbps Full-Duplex ???
> (They are currently running at 10Mbps Half-Duplex)

I know how to do it on an E450 unsder Solaris 2.6.
It should the same on an E250.

Look at /usr/sbin/ndd

If your interface is hme0, just login as root and type
/usr/sbin/ndd -set /dev/hme adv_100fdx_cap 1

Here is a small shell script to use as root :

#
# Set NIC speed and mode
#
#set -x

if [ $# != 5 ]; then
  echo "Usage: $0 <autoneg> <100fdx> <100hdx> <10fdx> <10hdx>"
  echo "    where parameters are 0 or 1\n"
  exit 1
fi

inst=0
itf="hme"
# Use qfe 0 to 3 for quad NICs

autoneg=$1
fdx100=$2
hdx100=$3
fdx10=$4
hdx10=$5

PATH=$PATH:/usr/sbin

ndd -set /dev/$itf adv_autoneg_cap $autoneg
ndd -set /dev/$itf adv_100fdx_cap $fdx100
ndd -set /dev/$itf adv_100hdx_cap $hdx100
ndd -set /dev/$itf adv_10fdx_cap $fdx10
ndd -set /dev/$itf adv_10hdx_cap $hdx10

echo "/dev/${itf}${inst} : adv_autoneg_cap=`ndd /dev/$itf
adv_autoneg_cap`"
echo "/dev/${itf}${inst} : adv_100fdx_cap=`ndd /dev/$itf adv_100fdx_cap`"

echo "/dev/${itf}${inst} : adv_100hdx_cap=`ndd /dev/$itf adv_100hdx_cap`"

echo "/dev/${itf}${inst} : adv_10fdx_cap=`ndd /dev/$itf adv_10fdx_cap`"
echo "/dev/${itf}${inst} : adv_10hdx_cap=`ndd /dev/$itf adv_10hdx_cap`"

 
 
 

Changing Ethernet Port Speeds

Post by Graeme Hinchliff » Sun, 14 Oct 2001 00:38:10




> Does anyone know how I change the Ethernet port setting on both a SUN
> E250 and a E450 so that it is set to run at 100Mbps Full-Duplex ???
> (They are currently running at 10Mbps Half-Duplex)

On our E420's running solaris 8 we have the following in /etc/system

* Begin hme - force 100BaseTX - Full Duplex Mode
set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_100fdx_cap=1

We also have the same on our SPARC Ultra 1's running Solaris 7 so I guess
it's uniform across most Sun platforms

 
 
 

Changing Ethernet Port Speeds

Post by Graeme Hinchliff » Sun, 14 Oct 2001 00:43:25






>> Does anyone know how I change the Ethernet port setting on both a SUN
>> E250 and a E450 so that it is set to run at 100Mbps Full-Duplex ???
>> (They are currently running at 10Mbps Half-Duplex)

> On our E420's running solaris 8 we have the following in /etc/system

> * Begin hme - force 100BaseTX - Full Duplex Mode set
> hme:hme_adv_autoneg_cap=0
> set hme:hme_adv_100hdx_cap=0
> set hme:hme_adv_100fdx_cap=1

> We also have the same on our SPARC Ultra 1's running Solaris 7 so I
> guess it's uniform across most Sun platforms

Oh yeah.. you'll need to reboot after adding that  :)

Graeme Hinchliffe

 
 
 

Changing Ethernet Port Speeds

Post by Christopher Hedric » Mon, 15 Oct 2001 14:59:52


I also am having trouble changing and checking speed on my sparc 4 (Solaris
7) machine.  There are a couple of things that I have noticed about it.  One
it doesn't have a banner in the ok promp.  It looks as if it scrolls one,
but nothing prints.  And the other being related to your probem is that I
can type ndd /dev/tcp \? or ndd /dev/ip \? and get all the messages I need
but when I put in the command ndd /dev/le \? or and anything I get operation
failed, Invalid argument.  Just thinking I had mistaken myself I also tried
the evidently wrong command of ndd /dev/le0 \?  Of course it gives you the
error of not being able to push the device.  If you can  figure out why it
doesn't work correctly please let me know.
 
 
 

Changing Ethernet Port Speeds

Post by Logan Sh » Tue, 16 Oct 2001 00:39:06




>I also am having trouble changing and checking speed on my sparc 4 (Solaris
>7) machine.

That's probably because the hardware is only capable of 10Mb/s, half-duplex.

  - Logan
--
"In order to be prepared to hope in what does not deceive,
 we must first lose hope in everything that deceives."

                                          Georges Bernanos

 
 
 

Changing Ethernet Port Speeds

Post by Christopher Hedric » Tue, 16 Oct 2001 11:52:47


That maybe, but I would like a way to find that information out.  ie, why
won't the ndd command work on my machine (Sparc 4/Solaris 7)  I seems to
work fine on E4500/E450/Blade 100/SS10/SS20/etc the list goes on.  I can't
verify the sparc 4 on multiple machines b'c I don't have but one.  But it
also works on a Sparc 5.  The machine is listed on the solaris 7 H/W compat
list.  So what's the deal? Any clues?
 
 
 

Changing Ethernet Port Speeds

Post by Jason Kawa » Tue, 16 Oct 2001 22:28:38



Quote:> That maybe, but I would like a way to find that information out.  ie, why
> won't the ndd command work on my machine (Sparc 4/Solaris 7)  I seems to
> work fine on E4500/E450/Blade 100/SS10/SS20/etc the list goes on.  I can't
> verify the sparc 4 on multiple machines b'c I don't have but one.  But it
> also works on a Sparc 5.  The machine is listed on the solaris 7 H/W compat
> list.  So what's the deal? Any clues?

ndd was part of solaris 8 01/01 ->

 http://docs.sun.com:80/ab2/coll.709.2/SOLTUNEPARAMREF/

--

/* Regards,
   Jason Kawaja, UF-ECE Sys Admin */

 
 
 

Changing Ethernet Port Speeds

Post by Dave Uhrin » Mon, 22 Oct 2001 14:21:51




>> That maybe, but I would like a way to find that information out.  ie,
>> why
>> won't the ndd command work on my machine (Sparc 4/Solaris 7)  I seems
>> to
>> work fine on E4500/E450/Blade 100/SS10/SS20/etc the list goes on.  I
>> can't
>> verify the sparc 4 on multiple machines b'c I don't have but one.
>> But it
>> also works on a Sparc 5.  The machine is listed on the solaris 7 H/W
>> compat
>> list.  So what's the deal? Any clues?

> ndd was part of solaris 8 01/01 ->

>  http://docs.sun.com:80/ab2/coll.709.2/SOLTUNEPARAMREF/

Your system clock appears to be ~5 1/2 days behind.  Did you ever
consider using ntpdate? or ntp?
 
 
 

Changing Ethernet Port Speeds

Post by ultraspa.. » Mon, 22 Oct 2001 15:39:58



Quote:>I also am having trouble changing and checking speed on my sparc 4 (Solaris
>7) machine.
...
>but when I put in the command ndd /dev/le \? or and anything I get operation
>failed, Invalid argument.
...
>If you can figure out why it
>doesn't work correctly please let me know.

Even if the le driver supported ndd (it doesn't), you wouldn't
be able to change the speed as the le hardware only supports
10Mbps half-duplex.  There's no need to be able to check the speed
because it's never going to change.
 
 
 

1. changing ethernet speed to slower

I'm trying to change the ethernet speed with the following command:
    ethtool -s eth0 speed 100
When I do that command, the link goes down for 3 seconds and when it comes
back up the speed is still 1000.  Either the command is not really setting
it right, or the negotiation overruled it somehow.  Is there a way to force
it to run at 100 no matter what, even if renegotiated later, without having
to add a 100-only hub in the line?

--
|WARNING: Due to extreme spam, googlegroups.com is blocked.  Due to ignorance |
|         by the abuse department, bellsouth.net is blocked.  If you post to  |
|         Usenet from these places, find another Usenet provider ASAP.        |
| Phil Howard KA9WGN (email for humans: first name in lower case at ipal.net) |

2. Hardware recomendation

3. Changing Ethernet card speed

4. Getting source of socket connection

5. How to set ethernet port speed on HP

6. Sony 32 max cdrom not working after boot

7. How do I change the default com port speed?

8. Filesystem seems to have taken a hit

9. changing baud rate speed of com port

10. Serial Port Speed Change, 2.4.10->2.4.16

11. Force pppd to report actual connection speed, instead of local port speed

12. Speed..Speed..Speed

13. Dell Latitude Port Replicator SCSI/ethernet ports