# linux Macaddress (mac 주소) 확인 방법 #

dell 장비로 test 진행


dell 장비는 이더넷 포트 네임이 em1 로 부터 시작한다.


[root@localhost ~]# ifconfig -a|grep ^em

em1       Link encap:Ethernet  HWaddr 18:66:D 

em2       Link encap:Ethernet  HWaddr 18:66:D 

em3       Link encap:Ethernet  HWaddr 18:66:D  

em4       Link encap:Ethernet  HWaddr 18:66:D

 



hp 장비 일 경우 하기와 같이 em 을 eth  로 변경 해서 확인하면 된다.

[root@localhost ~]#
ifconfig -a|grep ^eth

다른 이름없이 맥 주소만 보고싶은 경우 하기와 같이 입력하면 된다.

[root@localhost tmp]# ifconfig -a | grep ^em | awk ‘{print $5}’

18:66

18:66:

18:66:D

18:66:D

Leave a Comment