LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-13-2008, 04:42 PM   #1
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
ath0 mac address wrong


Hi all, when I boot my computer my wifi card has the correct mac address:

ifconfig | grep -a HW
ath0 Link encap:Ethernet HWaddr 00:15:AF:67:96:24
wifi0 Link encap:UNSPEC HWaddr 00-15-AF-67-96-24-00-00-00-00-00-00-00-00-00-00

Now if I destroy and put ath0 in monitor mode the following happens:

ifconfig ath0 down
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode monitor
ifconfig | grep -a HW
ath0 Link encap:UNSPEC HWaddr 06-15-AF-67-96-24-40-E2-00-00-00-00-00-00-00-00
wifi0 Link encap:UNSPEC HWaddr 00-15-AF-67-96-24-00-00-00-00-00-00-00-00-00-00

In managed mode it shows this:
ath0 Link encap:Ethernet HWaddr 06:15:AF:67:96:24
wifi0 Link encap:UNSPEC HWaddr 00-15-AF-67-96-24-00-00-00-00-00-00-00-00-00-00

Notice the weird unholyness, basically it works at boot time and the addy is correct then when I make a change, the mac address is entirely different!

Any ideas on fixing this? I've tried macchanger (works until I reboot) and ifconfig ath0 hw ether blah, also works till I reboot. It's a real pain as I can't connect to anything.
 
Old 04-15-2008, 03:39 AM   #2
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
Got it...

It needed the -bssid flag at the end of wlanconfig, weird. I'm certain I havent always had to put that :S.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM
ifconfig reports wrong mac address and wireless doesn't work blackdragonblood Linux - Wireless Networking 7 04-15-2006 12:08 PM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration