Liangxu Linux
Jun 13, 2021 · Operations
How to Use Shell Scripts to Retrieve IP, MAC, and Speed of Linux Network Interfaces
This guide shows how to use shell commands and simple Bash scripts on CentOS 7 to list active network interfaces, extract their IPv4/IPv6 addresses, display MAC addresses, and check link speed using ip, awk, ethtool, and other standard utilities.
BashMAC addressethtool
0 likes · 5 min read
