Changing the MAC (Media Access Contol) Address of your ethernet card in Linux.
Below are the steps for achieving this task

1. we bring the interface down. In my case I am going to bring my wireless interface down

sudo ifconfig wlan0 down

2. set the new MAC Address this way

sudo ifconfig wlan0 hw ether 00:22:fb:cf:bf:b4 # the MAC address is a series of numbers delimited by a colon

3. Now confirm if the MAC address has changed

ifconfig wlan0

A lot of people might want to go into changing their MAC Addresses for various reasons
but I am not going to talk about that here.

an ethernet card

Advertisement