Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 37 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Wirelessarrow Changing my MAC address disables my network.
EH-Net
May 25, 2013, 02:10:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Changing my MAC address disables my network.  (Read 6633 times)
0 Members and 1 Guest are viewing this topic.
Svenxix
Newbie
*
Offline Offline

Posts: 17


View Profile
« 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?
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #1 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
Logged

~ 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
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #2 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). 
Logged

~~~~~~~~~~~~~~
Ketchup
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #3 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?
Logged

OSWP, Sec+
Svenxix
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #4 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.


Logged
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #5 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
Logged

OSWP, Sec+
ziggy_567
Sr. Member
****
Offline Offline

Posts: 361


View Profile
« Reply #6 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!
Logged

--
Ziggy


eCPPT - GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
Svenxix
Newbie
*
Offline Offline

Posts: 17


View Profile
« Reply #7 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!
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #8 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.   Tongue
Logged

~ 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
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.