mii-diag on kernel 2.2


Use mii-diag to get/set link speed of your ethernet interface - this works with old kernels (2.2.17 in my case; mii-tool was not available) There is no Makefile supplied; so compile in this way: gcc -Wall -Wstrict-prototypes -O mii-diag.c -DLIBMII libmii.c -o mii-diag Upgrading the two ethernet cards on my server (running Debian,kernel 2.2.17) left one of them in an unusable state - I had to bring the speed down to 10Mbps to make it work. Here is the commandline: mii-diag -F 10baseT-FD eth1

[Subscribe to our Newsletter] [Go to pramode.net home] [Courses at Recursive Labs] [Connect with me on Twitter/Facebook]