EH-Net

Ethical Hacking Discussions and Related Certifications => Wireless => Topic started by: Svenxix on May 10, 2010, 06:01:34 PM



Title: Changing my MAC address disables my network.
Post by: Svenxix on May 10, 2010, 06:01:34 PM
Whenever I try to change my mac address, I can no longer connect to any network, even networks that I have never connected to before. I am running Ubuntu 9.10 on my Dell Inspiron B130 laptop.

I've tried changing the MAC with macchanger and just by typing in the command line
sudo ifconfig eth1 down
sudo ifconfig eth1 hw ether xx:xx:xx:xx:xx:xx
sudo ifconfig eth1 up

After I change the MAC I run ifconfig and it shows the new address correctly, but when I try to connect to a network, it gets hung and never connects.

If I change my MAC back to its original value then it works just fine.

Any ideas?


Title: Re: Changing my MAC address disables my network.
Post by: hayabusa on May 10, 2010, 07:44:44 PM
Haven't personally come across that one, but since you mentioned Ubuntu, I wonder if you're running into a sort of 'side effect,' similar to:

http://osdir.com/ml/linux.network.networkmanager.devel/2005-09/msg00014.html


Title: Re: Changing my MAC address disables my network.
Post by: Ketchup on May 10, 2010, 09:02:42 PM
What if you restart the NetworkManager?   I could also be a driver issue.  Anything in the dmesg output that's out of whack after you change your MAC?  (that rhymes). 


Title: Re: Changing my MAC address disables my network.
Post by: chrisj on May 10, 2010, 09:33:28 PM
Stupid question, but are you sure you need to be changing eth1? My Debian based systems (Debian Testing, and Sidux) the wireless is usually wlan0

What does sudo ifconfig show you when everything is up and working?


Title: Re: Changing my MAC address disables my network.
Post by: Svenxix on May 11, 2010, 10:42:42 AM
I'm sure that my wireless card is eth1, and iwconfig confirms that.

I've also tried to restart my network manager by typing sudo /etc/init.d/networking restart, but that doesnt seem to work.

I think that it might be a driver issue. I can't get wireshark to work either, even if I put my NIC in promiscuous mode. I have a Intel PRO/Wireless 2200BG Network card, and I think my driver is ipw2200.      lsmod | grep ipw says

 libipw                 43148  1 ipw2200
lib80211                6432  2 ipw2200,libipw

as for dmesg. I'm a linux newbie and I dont understand how to use that command. =(

I appreciate your help though.




Title: Re: Changing my MAC address disables my network.
Post by: chrisj on May 11, 2010, 10:56:25 AM
I'm sure that my wireless card is eth1, and iwconfig confirms that.

I've also tried to restart my network manager by typing sudo /etc/init.d/networking restart, but that doesnt seem to work.

I think that it might be a driver issue. I can't get wireshark to work either, even if I put my NIC in promiscuous mode. I have a Intel PRO/Wireless 2200BG Network card, and I think my driver is ipw2200.      lsmod | grep ipw says

 libipw                 43148  1 ipw2200
lib80211                6432  2 ipw2200,libipw

as for dmesg. I'm a linux newbie and I dont understand how to use that command. =(

I appreciate your help though.


I've got a 3945, and I know they dropped ipw3945 in favor of ipl3945. Doing a quick look I don't see the same for the 2200... But the aircrack-ng site has some good information.

No I'm not trying to push you off over there, just trying to help give you pointers to find your answers. I am curious if you get you're card working.

http://www.aircrack-ng.org/doku.php?do=search&id=ipw2200


Title: Re: Changing my MAC address disables my network.
Post by: ziggy_567 on May 11, 2010, 10:57:50 AM
In Ubuntu, you may also need to restart network-manager:

/etc/init.d/network-manager restart

Good luck!


Title: Re: Changing my MAC address disables my network.
Post by: Svenxix on May 11, 2010, 07:27:58 PM
I restarted my network-manager like ziggy said and it worked! Thanks a lot for your help!


Title: Re: Changing my MAC address disables my network.
Post by: hayabusa on May 12, 2010, 09:09:24 AM
Actually, while not having given you the 'exact' command-line syntax, that's what Ketchup had told you to do, previously.   :P