linux中如何查看mac地址

linux 最常用的查看mac地址的方式 有很多种,下面给出4种方式,

ifconfig 这是最常用的方式

ip link show

cat /sys/class/net/eth0/address 查看eth0的mac地址

dmesg | grep eth0

how to check mac address in Linux
how to check ip address in Linux

posted @ 2022-06-24 14:44  86727515  阅读(1948)  评论(0编辑  收藏  举报