커피닉스, 시스템 엔지니어의 쉼터
  Linux, Unix 별 랜카드 Mac address 확인 방법 작성일 : 2003/08/23 01:32
 
  • 글쓴이 : 좋은진호 ( http://coffeenix.net/ )
  • 조회수 : 27378
     
    작성자 : 좋은진호(truefeel, http://coffeenix.net/ )
    작성일 : 2001.5.18
    수정일 : 2003.8.22(금)

    간단히 Mac Address에 대해서 집고 넘어가겠습니다.
    Mac Address는 6바이트로 구성되어 있으며 그 중 앞 3바이트는 벤더마다 정해져 있습니다.
    이를 OUI 코드라고 부릅니다. 이를테면 00:50:DA:xx:xx:xx는 3COM에 할당된 OUI코드입니다.
    http://standards.ieee.org/regauth/oui/index.shtml 에서 OUI코드를 검색할 수 있습니다.
    검색은 0050da 또는 3com, realtek 등을 입력해서..

    이제 각 OS별 랜카드 Mac Address를 확인하는 방법을 알아보자.

    1. Linux : ifconfig -a (/sbin/ifconfig -a)

    -----------------------------
    eth0      Link encap:Ethernet  HWaddr 00:50:xx:xx:xx:xx
              inet addr:192.168.1.100  Bcast:192.168.123.255  Mask:255.255.255.0
    ... 생략 ...
    #
    -----------------------------

    2. Solaris :  ifconfig -a (root로 실행해야 합니다.)

    -----------------------------
    # ifconfig -a
    hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
            inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255
            ether 8:0:xx:xx:xx:xx
    #
    -----------------------------

    3. AIX : lscfg -vp 또는 lscfg -vpl

    -----------------------------
    # lscfg -vpl ent0

      DEVICE            LOCATION          DESCRIPTION

      ent0              21-08             IBM 10/100 Mbps 이더넷 PCI 어댑터
                                          (23100020)

            Network Address.............0006xxxxxxxx
            Displayable Message.........PCI Ethernet Adapter (23100020)
            Device Specific.(YL)........P1/E1
    ... 생략 ...
    #
    -----------------------------

    4. HP-UX : lanscan

    -----------------------------
    # /etc/lanscan
    Hardware Station            Crd Hardware Net-Interface  NM Mac    HP DLPI Mjr
    Path     Address            In# State    NameUnit State ID Type   Support Num
    2/0/2    0x0800xxxxxxxx    0   UP      lan0      UP   4   ETHER    Yes    52
    #
    -----------------------------

    5. Digtal UNIX : netstat -in 또는 uerf

    -----------------------------
    # netstat -in
    Name  Mtu   Network     Address               Ipkts Ierrs    Opkts Oerrs Coll
    ... 생략 ...
    fta0  4352  <Link>      00:00:xx:xx:xx:xx  13775882     0 13642091     0 0
    #
    -----------------------------

    6. SGI : nvram |grep eaddr 또는  netstat -ia

    -----------------------------
    # nvram |grep eaddr
    eaddr=08:00:xx:xx:xx:xx
    #
    -----------------------------


    커피닉스, 시스템 엔지니어의 쉼터 / URL : http://coffeenix.net/board_view.php?bd_code=35