Solved

how to find speed of NIC

Posted on 2003-12-05
10
1,790 Views
Last Modified: 2013-12-27
Hi all
I want to find the speed at which my NIC is working

also please tell me how do change it from 10 MBPs to 100 mbps

Regards

Biju
0
Comment
Question by:pillaib
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9881795
Assuming you NIC is hme

 ndd -get /dev/hme link_speed (speed)
 ndd -get /dev/hme link_mode (full / half duplex)

To set it to 100 FD
ndd -set /dev/hme instance 0
ndd -set /dev/hme adv_100T4_cap 0
ndd -set /dev/hme adv_100fdx_cap 1
ndd -set /dev/hme adv_100hdx_cap 0
ndd -set /dev/hme adv_10fdx_cap 0
ndd -set /dev/hme adv_10hdx_cap 0
ndd -set /dev/hme adv_autoneg_cap 0

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9882244

keep in mind that it must be a qfe, hme, or eri interface
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9883091
first try to find out which NIC is up on your system,
ifconfig -a

then check the NIC with up entry,
and then u can try liddler suggestion for finding out speed for that NIC.
0
 
LVL 1

Author Comment

by:pillaib
ID: 9894493
Hi
iprb0 is the NIC which is up

please can you explain me the meaning of each ndd -set options
so that its easy to remember and implement
Thanks and Regards

Biju
0
 
LVL 1

Author Comment

by:pillaib
ID: 9894511
Hi all

I am getting the following error messages

/usr/sbin/ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
iprb1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.10.169 netmask ffffff00 broadcast 192.168.10.255

/usr/sbin/ndd -get /dev/iprb1 link_speed
couldn't push module 'iprb1', No such device or address

Shud i login as root to use these command

Regards  and Thanks
Biju
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 24

Expert Comment

by:shivsa
ID: 9894691
thats the first one. u may  be root to get this value.
also check
#ls -l /dev/iprb1
it must be some sym link
ls -l that sym link too.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9895231
> Shud i login as root to use these command
For shure!
But the error message indicates other problems too, see shivsa's comment.

> .. explain me the meaning of each ndd -set options ..
see your question? Or issue
  ndd options /dev/iprb1
if still in doubt:
  man ndd
0
 
LVL 18

Accepted Solution

by:
liddler earned 50 total points
ID: 9895427
You should not use the 1
try
/usr/sbin/ndd -get /dev/iprb link_speed
-------------------------------^-----------
instead of
/usr/sbin/ndd -get /dev/iprb1 link_speed
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9895689
dooh, mondey morning, my ndd example is wrong
Please see liddler's suggestion
0
 

Expert Comment

by:hzakir
ID: 10170209
Hello,
How do I check the NIC speed on a ce interface ?
Thanks !
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now