Solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Solaris
# 1  
Old 03-06-2003
Solaris

How do I change the NIC from 100 full-duplex to autonegotiate?
# 2  
Old 03-06-2003
Data could not find hme

When tyring to find out what the status link on the NIC I receive an error message
ndd /dev/hme
Couldn't push module 'hme', no such device or address
cd /dev
ls -l hme
lrwxrwxrwx 1 root other hme->../devices/pseudo/clone@0:hme

What is my problem, I can't change my nic card to autonegotiate
?
# 3  
Old 04-03-2003
Invert the values

The following script force (in solaris) the NICs to 100 MB FD, you need to changes the values (I prefer to force servers and switchs to 100 MB FD):



#!/bin/ksh
state=$1

case $state in

'start')
ndd -set /dev/tcp tcp_time_wait_interval 60000
DEVICE="hme qfe"
for i in $DEVICE
do
INSTANCE="0 1 2 3"
for x in $INSTANCE
do
ndd -set /dev/$i instance $x
ndd -set /dev/$i adv_autoneg_cap 0
ndd -set /dev/$i adv_100T4_cap 0
ndd -set /dev/$i adv_100fdx_cap 1
ndd -set /dev/$i adv_100hdx_cap 0
ndd -set /dev/$i adv_10fdx_cap 0
ndd -set /dev/$i adv_10hdx_cap 0
done
done
;;
'stop')
;;
esac


Note: To get the values "ndd -get ...".

Note: I believe that Autonegotiation is the default in Solaris.

Regards. Hugo.

Last edited by hugo_perez; 04-03-2003 at 02:11 PM..
# 4  
Old 04-03-2003
That script is rather brute force and it doesn't really answer the question. Cassy want to autonegotiate.

Cassy, that error message means that the hme driver is not loaded into the kernel. Hopefully, this is because you don't have an hme card. To find out what you do have, use:
netstat -in
and look at the first column, which is "Name". Ignore the lo0 interface, that is a loopback that enables the box to send tcp/ip to itself. Any other lines are actual interfaces. If you actually have a "hme0" or "hme1" or something, I'm going to very confused given that error message.

I guess I'll assume that you have a "qfe0". (Note that if you have a "le0", you have a very old card that can only do 10/half-duplex.)

To see the speed on qfe0, do:
ndd -set /dev/qfe instance 0
ndd -get /dev/qfe link_speed

With qfe a "1" means 100 and a "0" means 10. But each driver is a little different, this may not hold true for other cards.

Also,
ndd -get /dev/qfe \?
will show all the parameters in the qfe driver.

One of them is "adv_autoneg_cap". This controls whether or not the card is advertising autonegotiate.

Another is "lp_autoneg_cap". This is read-only but it shows you if your link partner has advertised autonegotiate.
# 5  
Old 04-03-2003
It's true. Sorry to both.

It's true, the script don't do that you ask.

Sorry to both. Hugo
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

2. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

3. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

4. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies
Login or Register to Ask a Question