Centos下查看网卡的MAC地址

浏览次数:3324 关键词 ( 网卡  地址  Centos  MAC  )

在Linux下,在网络没有配置好前,如何查看网卡的MAC地址?

使用 dmesg 与 grep 命令来实际,如下:

[plain] view plaincopy在CODE上查看代码片派生到我的代码片  
  1. [root@localhost ~]# dmesg | grep eth  
  2. e1000 0000:02:01.0: eth0: (PCI:66MHz:32-bit) 00:0c:29:5b:f7:c2  
  3. e1000 0000:02:01.0: eth0: Intel(R) PRO/1000 Network Connection