8 steps to check your network interface information
In a GUI, checking the state of a network interface card is pretty easy. That is to say, you just have to click on the network information icon to see all the details. On the other hand, do you ever wonder how to check it in Linux command line? It is really simple task if you use mii-tool command. Mii-tool gives you the following features: View and modify network interface configurations Control the links Set auto-negotiation mode Set duplex modes In this guide, I’ll show you how to use this tool to get the most out of it. Step 01 : Installation You can install the mii-tool using the following command. #sudo apt install net-tools Step 02 : Check a Single Interface To see the information on a specific interface, run the following command. #sudo mii-tool <interface_name> However if no interface is specified, then it will check all available interfaces. In other words, it will check all interfaces from eth0 to eth7. Step 03 : See Detailed Information You can see detailed information on each card using -v option. #sudo mii-tool -v <interface_name> Step 04 : Set Network Interface Speed To set the speed of the interface manually, use the following command. #sudo mii-tool –force <option> For example, here I have specified the speed of the eth0 interface to 10 Mbit. Step 05 : Restart Auto-Negotiation Network devices use an auto-negotiation protocol to...
Read More