If you have any questions or feedback, feel free to comment below. In this guide, we have shown several examples to verify network interface information such as available interface, active interface, NIC’s IP and MAC address and network interface port speed on Linux. Run the below shell script to check all the required information about the network interface: # sh /opt/scripts/nic-info.sh When you run the IP command without any argument, it gives you plenty of information about NIC, but use the following customized IP command to check only the network interfaces available on the system: # ip a |awk '/state UP/' # ethtool eth0 1) Checking available network interfaces
#Ip link set mac address driver
The ethtool command is used to query or control network driver and hardware settings. Valid_lft forever preferred_lft forever What is ethtool command? Navigate to the terminal and use the following command. Link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00Ģ: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 To change the MAC address of a network card, you have to turn off that network card. # ip aġ: lo: mtu 65536 qdisc noqueue state UNKNOWN IP command is similar to ifconfig, which is used for assigning Static IP Address, Route & Default Gateway, etc.
#Ip link set mac address how to
In this tutorial, we will show you how to check the available Network Interface Card (NIC) and other details such as interface name, associated IP address, MAC address and interface speed. The ip command can do a lot more than this, but we’ll focus on the most common uses in this article.
If yes, check other configuration details that are compatible with existing interfaces. With the ip command, you can adjust the way a Linux computer handles IP addresses, network interfaces controllers (NICs), and routing rules.The changes also take immediate effectyou don’t have to reboot.
Server primary interface would be configured as part of the server build activity, but sometimes you may need to configure an additional network interface in Linux for several reasons.Īn additional interface will be configured for network bonding/teaming, high availability or a separate interface that is used for application requirements or backups.īefore adding a new interface, check if the system has any free interfaces.