.

Changing my MAC address disables my network.

<<

Svenxix

Newbie
Newbie

Posts: 17

Joined: Thu Dec 31, 2009 10:58 pm

Post Mon May 10, 2010 6:01 pm

Changing my MAC address disables my network.

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?
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1662

Joined: Mon Jan 29, 2007 2:59 pm

Post Mon May 10, 2010 7:44 pm

Re: Changing my MAC address disables my network.

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.netwo ... 00014.html
~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
<<

Ketchup

User avatar

Hero Member
Hero Member

Posts: 1021

Joined: Fri Jul 04, 2008 7:44 pm

Location: Philadelphia, PA

Post Mon May 10, 2010 9:02 pm

Re: Changing my MAC address disables my network.

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). 
~~~~~~~~~~~~~~
Ketchup
<<

rattis

User avatar

Hero Member
Hero Member

Posts: 1172

Joined: Mon Jul 27, 2009 1:25 pm

Post Mon May 10, 2010 9:33 pm

Re: Changing my MAC address disables my network.

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?
OSWP, Sec+
<<

Svenxix

Newbie
Newbie

Posts: 17

Joined: Thu Dec 31, 2009 10:58 pm

Post Tue May 11, 2010 10:42 am

Re: Changing my MAC address disables my network.

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.
<<

rattis

User avatar

Hero Member
Hero Member

Posts: 1172

Joined: Mon Jul 27, 2009 1:25 pm

Post Tue May 11, 2010 10:56 am

Re: Changing my MAC address disables my network.

Svenxix wrote: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= ... id=ipw2200
OSWP, Sec+
<<

ziggy_567

User avatar

Sr. Member
Sr. Member

Posts: 378

Joined: Tue Dec 30, 2008 1:53 pm

Post Tue May 11, 2010 10:57 am

Re: Changing my MAC address disables my network.

In Ubuntu, you may also need to restart network-manager:

/etc/init.d/network-manager restart

Good luck!
--
Ziggy


eCPPT - GSEC - GCIH - GWAPT - GCUX - RHCE - SCSecA - Security+ - Network+
<<

Svenxix

Newbie
Newbie

Posts: 17

Joined: Thu Dec 31, 2009 10:58 pm

Post Tue May 11, 2010 7:27 pm

Re: Changing my MAC address disables my network.

I restarted my network-manager like ziggy said and it worked! Thanks a lot for your help!
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1662

Joined: Mon Jan 29, 2007 2:59 pm

Post Wed May 12, 2010 9:09 am

Re: Changing my MAC address disables my network.

Actually, while not having given you the 'exact' command-line syntax, that's what Ketchup had told you to do, previously.  :P
~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH

Return to Wireless

Who is online

Users browsing this forum: No registered users and 1 guest

cron
.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software