두가지 방법이 있는데 lshw 툴을 사용하여 확인하는 것을 권장한다.

 

방법 1.

[root@Mapoo-Blog ~]# cat /sys/class/net/eth2/address
00:0e:e8:e9:41:42

 

방법 2.

lshw 라는 써드파티 rpm 패키지를 설치한다.

[root@Mapoo-Blog ~]# rpm -ivh lshw-2.17-1.el6.rf.x86_64.rpm

[root@Mapoo-Blog ~]# lshw -c network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth3
version: 03
serial: 90:fb:a6:3c:0d:43
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168d-2.fw ip=192.168.25.211 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:28 ioport:ee00(size=256) memory:fdbff000-fdbfffff(prefetchable) memory:fdbf8000-fdbfbfff(prefetchable) memory:fdb00000-fdb1ffff(prefetchable)
*-network
description: Ethernet interface
product: RTL8169 PCI Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 2
bus info: pci@0000:03:02.0
logical name: eth2
version: 10
serial: 00:0e:e8:e9:41:42
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=211.106.68.21 latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII speed=100Mbit/s
resources: irq:17 ioport:de00(size=256) memory:fd9ff000-fd9ff0ff memory:fd800000-fd81ffff(prefetchable)

* 참고로 lspci -v 로 확인했을때  Device Serial Number 값으로도 확인이 되는데 NIC 벤더에 따라 그 값이 맥어드레스가 아닌 경우가 있으므로 신뢰할 수 없는 값이다.

리눅스 NIC Mac Address 확인

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다