SUMMARY ADD Could not set Link-Speed and Mode

From: FREEHOME SunManager <sunmanagers_at_freehome.ch>
Date: Fri Jul 09 2004 - 10:30:01 EDT
Hi Sunmanagers

Know I made this add-on because after I did the SUMMARY there are arriving
some additional notes etc. To be note it is "very importante" that the the
sequence
of commands is indeed "very" importante. It means the autoneg_cap must be
set at last like:

 ndd -set /dev/hme instance 0			-- This defines the
instance(NIC/port)
 ndd -set /dev/hme adv_100fdx_cap 0		-- sequence is not
significant
 ndd -set /dev/hme adv_100hdx_cap 0		-- sequence is not
significant
 ndd -set /dev/hme adv_10fdx_cap 0		-- sequence is not
significant
 ndd -set /dev/hme adv_10hdx_cap 1		-- sequence is not
significant
 ndd -set /dev/hme adv_autoneg_cap 0	-- Must be last

I tried this but it was not solving the problem!!!! I received also a not
which was mentioning the followingg:

But the really important part in the ordering of the ndd commands is to set
the autoneg capability to 0 *first* - at least for ce(4) :) Yep, scary - but
this depends on the driver and every one is a lil' bit different. Yet the
autoneg in solaris is always a bit crufty. If you disable autoneg, check
back that the "other side" doesnt do autoneg, too

At least I would say it depends really on the driver etc. Anyway if one way
is not working you could use the other way and if this is not working....! A
reboot would solve the problem....anyway not really even nice but the people
which have the quick outage could go and drink a coffee :-)

Andrea


Hi Sunmanagers

It seems there is something a little bit funny but some people have given me
following notes:

To put this in /etc/system solves the problem but I had to do a
reboot...mmmhh not nice but it solved the problem:

set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100T4_cap=0
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_10fdx_cap=0
set hme:hme_adv_10hdx_cap=1
set hme:hme_adv_100fdx_cap=0

Other people mentioned the the order of commands on the command line are
importante and I know that and I tried also this varia because I would not
do the reboot but I could not solve the problem:

# ndd -set /dev/hme instance 0
# ndd -set /dev/hme adv_autoneg_cap 0
# ndd -set /dev/hme adv_100fdx_cap 0
# ndd -set /dev/hme adv_100hdx_cap 0
# ndd -set /dev/hme adv_10fdx_cap 0
# ndd -set /dev/hme adv_10hdx_cap 1

Anyway I decided to reboot the server and the problem is solved....thanks to
anybody who answered me. Thanks a lot and have a nice day :-)

Andrea




Now the problem I have is on my opinion quit funny otherwise I did not
understand something correct it means:

SUN Server > Ultra 1 with hme0 Interface and a Quad-Fast Etherne
Packetshaper 1550 Outbound/Inbound Interface 10/100 Half/Full-Duplex) Router
Cisco 1600 Outbound/Inbound Interface (10Mibt Half-Duplex)

The Ultra 1 is my FireWall and in front of the FireWall there is a
Packetshaper and after the Router it means:

                                     +-----------+
                                     |           |
                                     |  Router   |
                                     |           |
                                     +-----------+
                                           |
                                           |Gateway
                                           |
                                           |
                                           |Outbound
                                           |
                                     +-----------+
                                     |           |
                                     | Packeteer |
                                     |           |
                                     +-----------+
                                           |
                                           |Inbound
                                           |
                                           |
                                           |Outbound
                                           |
                                     +-----------+
                                     |           |
                                     | FireWall  |
                                     |           |
                                     +-----------+
                                           |
                                           |
                                           |
                                          LAN

So far so good....! Because it is recommended to set Inbound Interface and
Outbound Interface on the Packetshaper to the lowest speed and mode and
because the Cisco Router gives the value I tried to configure the Ultra 1
hme0 Interface to 10Mibt Half-Duplex. On the Command line I used first:

ndd -set /dev/hme instance 0
ndd -get /dev/hme link_speed
1
ndd -get /dev/hme link_mode
0

It means hme instance 0 = hme0 is set to 100Mbit (=1) Full-Duplex (=0). To
get the neccessary options with the ndd command I used:

ndd /dev/hme \?

Now I have the options and I configured:

ndd -set /dev/hme instance 0
ndd -set /dev/hme adv_10hdx_cap 1
ndd -set /dev/hme adv_autoneg_cap 0

It means set to 10Mibt Half-Duplex (=1) and Autonegotiation to 0 = False
After that I controlled the interface again:

ndd -set /dev/hme instance 0
ndd -get /dev/hme link_speed
1
ndd -get /dev/hme link_mode
0

Mit freundlichen Gr|ssen

Andrea Soliva

Comcept Net GmbH
Feldhof 1
CH - 6343 Rotkreuz/ZG

Tel:   +41 (0)41 790 48 39
Fax:   +41 (0)41 790 48 51
Mobil: +41 (0)79 753 33 82

Mail: soliva@comcept.ch
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Jul 9 10:26:45 2004

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