Computer NetworksNETWORKS

How to Change MAC Address in Linux | Mint | Ubuntu | MAC Changer | Linux Change MAC Address

You can change MAC address of your all network devices in Linux operating system. This is a script approach where you can change MAC address as variable.

Installation Step :

sudo apt-get install macchanger
sudo apt-get install gedit

Step 1:

gksudo gedit /etc/init.d/changemacfile

Step 2:

# Start of script file “changemacfile”
#!/bin/bash

# Enter capital letter as mac address
MYMAC=AA:BB:CC:44:33:44

# Disable all the network devices
ifconfig eth0 down
ifconfig wlan0 down

/usr/bin/macchanger -m $MYMAC eth0
/usr/bin/macchanger -m $MYMAC wlan0

# Re-enable all the network devices
ifconfig eth0 up
ifconfig wlan0 up

# End of script file

Step 3:

sudo chmod +x /etc/init.d/changemacfile
sudo update-rc.d changemacfile defaults 10

#remove/disable your script with the “defaults 10”
update-rc.d -f changemacfile remove

source

mac address

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

Leave a Reply

Your email address will not be published. Required fields are marked *