How To Find NIC's MAC Address In Ubuntu

Low Roller

[H]ard|Gawd
Joined
Jun 24, 2004
Messages
1,024
First off, I'm a Linux n00b. I can surf the web on my Ubuntu box and not much else ATM.

How can I get my wireless NIC's MAC address info from my Ubuntu machine?

I bring up the terminal, but 'ipconfig' isn't recognized as a valid command. 'iwconfig' gives me a bunch of info on my connection, but no info on my WLAN adapter's MAC address.

Anybody here have an idea how this is done?

Thanks!
 
ipconfig is a hangover from DOS/Xenix, but Unix workalike implementations usually use ifconfig instead.

for all devices, type:
[root@tristan]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:C8:F8:4A:51
inet addr:192.168.99.35 Bcast:192.168.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:190312 errors:0 dropped:0 overruns:0 frame:0
TX packets:86955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:30701229 (29.2 Mb) TX bytes:7878951 (7.5 Mb)
Interrupt:9 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:306 errors:0 dropped:0 overruns:0 frame:0
TX packets:306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29504 (28.8 Kb) TX bytes:29504 (28.8 Kb)

For a particular device, add the device name as an argument:
[root@tristan]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:80:C8:F8:4A:51
inet addr:192.168.99.35 Bcast:192.168.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:190312 errors:0 dropped:0 overruns:0 frame:0
TX packets:86955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:30701229 (29.2 Mb) TX bytes:7878951 (7.5 Mb)
Interrupt:9 Base address:0x5000


Hope this helps... the little differences between MS-DOS and Unix can be annoying at times.
 
Hope this helps... the little differences between MS-DOS and Unix can be annoying at times.

heh, tell me about it, everytime i open up a cmd window under XP i want to use commands like ls, even though i spend less then 10% of my computing time in linux :)

granted, the percentage of time spent at the command line is much higher on linux then xp, but still
 
heh, tell me about it, everytime i open up a cmd window under XP i want to use commands like ls, even though i spend less then 10% of my computing time in linux :)

granted, the percentage of time spent at the command line is much higher on linux then xp, but still

I do half of the time... it takes me a moment to realize it isn't *nix and 'ls' doesn't work... shucks. Though I rarely have an issue with ifconfig or ipconfig. :rolleyes:
 
Back
Top