Linux控制台改变MAC地址命令

# ifconfig has already become decrepated
# we need to use ip now

To change MAC address, follow the commands below

#Show all the network device
ip link show 

#turn down the device you wanna change MAC for 
sudo ip link set dev  down

#Change the MAC address for that device
sudo ip link set dev  address 

#Turn up the device again
sudo ip link set dev  up

Reference: "Learn Python & Ethical Hacking From Scratch" by Zaid Sabih. (On Udemy)

你可能感兴趣的:(Linux控制台改变MAC地址命令)