7
rated 0 times
[
7]
[
0]
/ answers: 1 / hits: 46546
/ 1 Year ago, mon, january 9, 2023, 7:36:58
Is there a Linux command that allows me to get the MAC address of my router?
More From » command-line
Is there a Linux command that allows me to get the MAC address of my router?
I like one-liners:
arping -f -I $(ip route show match 0/0 | awk '{print $5, $3}')
arping
shows the MAC associated with the default gateway IP address from the output of ip route show match 0/0
, parsed by awk
.