![]() You can find all the MAC adress related articles here. $ sudo macchager -m AA:BB:CC:DD:EE:FF eth0 Like the other two tools, you have to set the network interface down first, set the new MAC address (AA:BB:CC:DD:EE:FF) in our case and turn the interface back on: ![]() The MAC address is available in the ether section, concatening your OUI vendor and your OUI specific address. Install it first: sudo apt-get install macchanger Find MAC Address on Linux The easiest way to find your MAC address on Linux is to execute the ifconfig command with the -a option for all. The third tool for changing the MAC address in Debian based distros is macchanger. $ ip link set dev eth0 address AA:BB:CC:DD:EE:FF The first command sets the eth0 interface down, the second changes the MAC to AA:BB:CC:DD:EE:FF on eth0 and the third turns back on the network interface. The iproute2 command also needs the network interface down, before the MAC change to apply. How to temporary change the MAC address with iproute2: Read more about the ifconfig command here. $ sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF This sets down the eth0 interface, changes the mac to AA:BB:CC:DD:EE:FF and turns the interface back down. $ sudo ifconfig eth0 down hw ether AA:BB:CC:DD:EE:FF & ifconfig eth0 up Sudo ifconfig interface_name down hw ether AA:BB:CC:DD:EE:FF & ifconfig eth0 up You can do both this things with the command: ![]() When you change the MAC address for an interface, you need to have the network interface disabled (down) and than to set the new MAC. How to temporary change the MAC address with ifconfig: ![]() The MAC address can be temporary changed with ifconfig, iproute2 or the macchanger tool, in Debian, Ubuntu, Linux Mint or other Debian based distros. ![]() There are 3 ways (that I know of) to temporary change the Hardware address (MAC address) in Linux and Unix systems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |