LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2004, 02:35 PM   #1
rpdalton
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
Setting NIC Link Speed and Duplex


How does one do this in Linux? Specifically Mandrake 9.2
 
Old 01-26-2004, 04:36 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You probably need to su - first
Then run the command:
/sbin/ethtool -s eth0 speed 10 duplex full autoneg off

Use the command: /sbin/mii-tool to verify the new settings.


Note: use speed 100 or duplex half if needed
 
Old 03-06-2004, 10:18 AM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora, CentOS, Scientific Linux
Posts: 275

Rep: Reputation: 10
This was very usefull for me too... ive been looking for this for some time
thx

Im using FC 1:
Do i have to set this in /etc/rc.d/rc.local so it sets on every boot?

B52
 
Old 03-12-2004, 02:31 PM   #4
vinman6967
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
HELP

on one of two machines mii-tool dies....
both IDENTICAL... is it because of the overlay interface eth0:1???
What is the cure? Why the "operation not supported"?

Functional on this host:

eth0 Link encap:Ethernet HWaddr 00:0B:CD:9C:24:01
inet addr:10.16.6.225 Bcast:10.16.7.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18470039 errors:0 dropped:0 overruns:0 frame:0
TX packets:4075771 errors:1 dropped:0 overruns:0 carrier:0
collisions:3411
RX bytes:4294967295 (4095.9 Mb) TX bytes:768081824 (732.4 Mb)

[root@thebes root]# mii-tool
eth0: 100 Mbit, full duplex, link ok
eth1: no link
[root@thebes root]# uname -a
Linux thebes 2.4.9-e.3smp #1 SMP Fri May 3 16:48:54 EDT 2002 i686 unknown


Broken on this host:
[root@sparta root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0B:CD:9C:61:A9
inet addr:10.16.6.216 Bcast:10.16.7.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26474947 errors:0 dropped:0 overruns:0 frame:0
TX packets:10323727 errors:36 dropped:0 overruns:0 carrier:0
collisions:39581 txqueuelen:100
RX bytes:2555382578 (2437.0 Mb) TX bytes:596897691 (569.2 Mb)
Interrupt:11 Memory:f7ef0000-f7f00000

eth0:1 Link encap:Ethernet HWaddr 00:0B:CD:9C:61:A9
inet addr:10.16.6.226 Bcast:10.16.7.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Memory:f7ef0000-f7f00000


[root@sparta root]# mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found
[root@sparta root]# uname -a
Linux sparta 2.4.9-e.3smp #1 SMP Fri May 3 16:48:54 EDT 2002 i686 unknown
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed/Duplex NIC card dherve Linux - Networking 1 11-23-2005 08:52 PM
NIC link speed and duplex joe_wilkins2001 Linux - Networking 1 03-03-2005 10:07 PM
NIC speed & Duplex depdiver Linux - Newbie 3 11-24-2004 02:51 PM
Network Card Problem with Duplex/Link Speed Books Linux - Networking 1 08-28-2004 04:59 PM
how do i hard set NIC speed/duplex in RH9? dav7500 Linux - Hardware 1 03-04-2004 09:15 PM


All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration