Hi,
I would like to figure out the MAC Address of the Ethernet and the Wireless Interfaces on my laptop. I have used the below commands with the following outputs.
Code:
$ ifconfig -a | grep HWaddr
eth0 Link encap:Ethernet HWaddr 38:59:f9:10:12:13
Code:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 38:59:f9:10:12:13
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::3a59:f9ff:fe10:1213/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:7
TX packets:139 errors:18 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30782 (30.7 KB) TX bytes:20338 (20.3 KB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2226 (2.2 KB) TX bytes:2226 (2.2 KB)
Code:
$ sudo lshw -C network
[sudo] password for masoud:
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
version: 01
serial: 38:59:f9:10:12:13
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.100.82.38 ip=192.168.0.3 latency=0 multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:f0500000-f0503fff
*-network UNCLAIMED
description: Ethernet controller
product: AR8162 Fast Ethernet
vendor: Atheros Communications Inc.
physical id: 0
bus info: pci@0000:03:00.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list
configuration: latency=0
resources: memory:f0400000-f043ffff ioport:2000(size=128)
I am currently connected using my wireless connection and I also have an ethernet port that I don't use. The above commands only provide me the MAC Address of the wireless connection. Is there a way to get the MAC Address of the ethernet connection without actually being connected through the ethernet LAN port?
Any pointers will be much appreciated.
Thanks in advance,
Masoud A R
Bookmarks