*> ip link show eth0 | awk '/ether/ {print $2}'
00:0c:29:30:21:48
OR
*>ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'
00:0c:29:30:21:48
Return to Software & Techniques
Users browsing this forum: No registered users and 6 guests