LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-08-2016, 01:39 PM   #1
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Changing MAC fails, suggestions?


Alright, long story short, I locked myself out of my router. I have it set up with a MAC whitelist, and as a part of my spring cleaning I deleted the MAC of my new laptop off that list instead of my old laptop.
So...yeah. Posting this from my phone, please forgive any typos.

Now, yes, I could hit the magic reset button on the back of the router. The issue with that is I've painsakenly added security rules and things of that nature, and I'd really rather not have to take off a whole day to rebuild it from memory.
I'm also frustrated that my method to change my MAC isn't working, and I'd really like to find out why. So for those reasons I want to go this route.

So I read on the Arch Linux wiki that you can change your MAC with the following 3 commands (customized to my case):
Code:
ip link set dev wlp2s0 down
ip link set dev wlp2s0 address f0:6b:ca:d9:e9:87
ip link set dev wlp2s0 up
The first command goes off without a hitch, at least that I can see.
The second command however gives an error.
Code:
RTNETLINK answers: Too many open files in system
The research I did on Google suggests that NetworkManager is the problem. Fine.
Code:
killall -KILL NetworkManager
Verified that it was indeed killed, and got the same error.

So I rebooted into single user mode and tried again. There's no way NM was running, and I verified that it was not by trying to kill it.
I got the same error! So NM is out, and I have no clue what could be hindering the MAC change.

Help is very much appreciated! Thanks in advance!
 
Old 04-09-2016, 05:57 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,673

Rep: Reputation: Disabled
Code:
ip link set wlp2s0 address f0:6b:ca:d9:e9:87
Try this.
 
Old 04-09-2016, 05:04 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,026

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Some very odd nic's won't allow you to change mac for some reason as I recall, could be wrong on that too.

Some ideas. https://wiki.archlinux.org/index.php...dress_spoofing

Try a different live media and see if it will allow you to change mac.
 
1 members found this post helpful.
Old 04-11-2016, 05:18 AM   #4
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616

Original Poster
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by jefro View Post
Some very odd nic's won't allow you to change mac for some reason as I recall, could be wrong on that too.

Some ideas. https://wiki.archlinux.org/index.php...dress_spoofing

Try a different live media and see if it will allow you to change mac.
LOL that's the link I originally got it from. I think I'll download Kali and use Emerson's command. Thank you both so far.
 
Old 04-12-2016, 08:48 AM   #5
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616

Original Poster
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Alright, Kali works and I was able to change my MAC, then proceed to re-add myself to the whitelist.

But I'd still like to know why it doesn't work on Ubuntu. I've tried Emerson's command, and on Kali it works fine (still ended up using macchanger), but on Ubuntu...I don't know what it is, but for every method I try it seems to boil down to
Code:
Too many open files in system

And it's not with my particular installation, either. This happens from a live USB (with no persistence, just for the record).
Since it seems to be specific to Ubuntu, and not just the Debian-based Kali, I think I'll ask about this on the Ubuntu forums as well, just for more people that are more familiar with the subtle oddities like this.
 
Old 04-12-2016, 04:42 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,026

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Not sure the two issues are related just yet.

Too many files open is not usually associated with this issue.

Rtnetlink allows the kernel's routing tables to be read and altered.
It is used within the kernel to communicate between various
subsystems, though this usage is not documented here, and for
communication with user-space programs. Network routes, IP
addresses, link parameters, neighbor setups, queueing disciplines,
traffic classes and packet classifiers may all be controlled through
NETLINK_ROUTE sockets. It is based on netlink messages; see
netlink(7) for more information.

So,, to put the two together would suggest that you were running a live media with less than sufficient memory??
 
Old 04-13-2016, 08:56 AM   #7
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616

Original Poster
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by jefro View Post
Not sure the two issues are related just yet.

Too many files open is not usually associated with this issue.

Rtnetlink allows the kernel's routing tables to be read and altered.
It is used within the kernel to communicate between various
subsystems, though this usage is not documented here, and for
communication with user-space programs. Network routes, IP
addresses, link parameters, neighbor setups, queueing disciplines,
traffic classes and packet classifiers may all be controlled through
NETLINK_ROUTE sockets. It is based on netlink messages; see
netlink(7) for more information.

So,, to put the two together would suggest that you were running a live media with less than sufficient memory??
No...not Ubuntu. Kali is the one running from USB, and that's what I don't get because that's the one that works. I have 4GB RAM, pretty standard. This is usually "sufficient" for most anything I do.
And Ubuntu from a live USB gives the same error.
Too bad there's not an emoji for "ripping hair out".
 
Old 04-13-2016, 06:53 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,026

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
This is why you need a few live usb's around is more the solution than why it failed.

You could play with drivers and look at logs and poke into performance metrics and in the end it would be easier to just ignore it.
 
  


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
libmtp-1.1 fails to see my device, ie mtp-detect fails - suggestions? will_kranz Linux - Software 0 12-29-2012 11:44 PM
Mac and a DIstro -- your suggestions winsnomore Linux - Software 5 03-21-2005 01:47 PM
netatalk, mac fails Villain Linux - Networking 0 07-02-2004 11:51 AM

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

All times are GMT -5. The time now is 04:56 AM.

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