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 ...
- 07-22-2010 #1Just 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
- 07-22-2010 #2
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.
- 07-22-2010 #3Just 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
- 07-22-2010 #4
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.


Reply With Quote