You are not logged in.

#1 2016-02-03 10:10

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Spoof MAC Address

Hi all, I use the feature of network manager available in other distro's to spoof my mac address to differentiate from each os on my system for example
    debian stable is spoofed to aa:bb:cc:00:11:01
    debian testing is spoofed to aa:bb:cc:00:11:02
    etc...
this way I can assign unique ip addresses to each mac address via my router setup
I find this the easiest way to get rsa keys working correctly for all distros which I use when ssh-ing in and out of different boxes. The problem is setting a mac address for my wired connection, I cannot find a file to add the relevant code.

On the wifi connection there is a file in /etc/NetworkManager/system-connections/ with the name of the wifi connection that I can modify to accept a cloned mac address, but I cannot find anything for the wired connection.

Am I looking in the wrong place or does the network manager just have a default setup that cannot be altered?

Any help appreciated

Dai

Offline

#2 2016-02-11 13:38

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Spoof MAC Address

Ok it's been a week and no replies/comments. Is this possible with q4os? Any suggestions @q4osteam

Dai

Offline

#3 2016-02-11 17:12

bobby
Member
From: Nevada, USA
Registered: 2015-12-24
Posts: 459
Website

Re: Spoof MAC Address

I found this, I hope it helps:

"To make the change permanent on Debian-based systems, add "pre-up ifconfig NIC hw ether 00:00:00:00:00:00" to /etc/network/interfaces and then reboot. To undo this permanent change, remove that line from the file, or comment it out using "#" "

Source of this info: http://www.linux.org/threads/view-and-c … sses.8166/


No Longer Using Q4OS

Offline

#4 2016-02-11 17:34

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Spoof MAC Address

Thanks bobby, didn't think to look at debian fixes as my debian installations all use network manager. I'll try that now smile

Dai

Offline

#5 2016-02-11 18:42

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Spoof MAC Address

That didn't work, I can change it from command line so will probably end up using a script on boot to do it... Although I am looking at the scripts in /etc/network/interfaces.d/ to see if they might hold some clues. But thanks anyways

Dai

Offline

#6 2016-02-13 23:44

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,232
Website

Re: Spoof MAC Address

The job should be doable directly from Network manager command line, look at:
$ man nmcli
You could try to install Network Manager from Software centre too.

Offline

#7 2016-02-14 00:51

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Spoof MAC Address

Thanks @q4osteam I will look at nmcli as I am trying to do as much as possible with just q4os specific utils, but if all else fails I guess I could resort to network manager. smile

Dai

Offline

#8 2016-02-16 18:03

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Spoof MAC Address

Just in case anyone else needs to do this, I ended up installing network manager from Software Centre and everything is now working as I want it. Thanks again q4osteam.

Dai

Offline

Board footer

Powered by FluxBB