美文网首页
Linux控制台改变MAC地址命令

Linux控制台改变MAC地址命令

作者: Hack_J | 来源:发表于2020-09-06 21:53 被阅读0次
# 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 <your device here> down

#Change the MAC address for that device
sudo ip link set dev <your device here> address <your new mac address>

#Turn up the device again
sudo ip link set dev <your device here> up

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

相关文章

网友评论

      本文标题:Linux控制台改变MAC地址命令

      本文链接:https://www.haomeiwen.com/subject/lbrhektx.html