install-gns3-debian12/get-ethernet-mac-address.sh
2024-03-20 16:31:18 +00:00

7 lines
115 B
Bash
Executable File

#!/usr/bin/env bash
INTERFACE="$1"
ip -o l show ${INTERCACE} | sed -e "s@.*link\/ether @@g" -e "s@\ brd\ .*@@g"