Setting NIC Link Speed and Duplex
How does one do this in Linux? Specifically Mandrake 9.2
|
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 |
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 |
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 |
All times are GMT -5. The time now is 05:12 AM. |