Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I need the command to find the HARDWARE ADDRESS. Can anybody help me out in this. I know ifconfig command gives the details.. but I just need the HWADDR ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Location
    Bangalore
    Posts
    2

    Hardware Address command

    Hello,

    I need the command to find the HARDWARE ADDRESS. Can anybody help me out in this.

    I know ifconfig command gives the details.. but I just need the HWADDR that is only numbers eg. 00.22.11.33.AD

    Thanks in advance
    Sandy

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    This will list the MACs of all available NICs
    Code:
    ifconfig -a | grep Hardware | awk '{ print $6  }'
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Location
    Bangalore
    Posts
    2
    No this didnt work, i used the command


    ifconfig eth0 | grep hwaddr but again it gives the description of HWaddr: 22.11.55.33.445.BB


    i just need the mac id

    Thanks
    Sandy

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Ok, my original oneliner has a small typo.

    But it´s not *that* hard to spot and modify.
    Have fun
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...