Linux MAC 地址伪装
https://wiki.archlinux.jp/index.php/MAC_アドレス偽装#.E6.96.B9.E6.B3.95_1:_systemd-networkd
Tested on Ubuntu 18.04 LTS
创建系统服务,每次开机时使用 ip link set 修改 mac 地址。
1 | sudo vim /etc/systemd/system/macspoof@.service |
1 | [Unit] |
1 | sudo systemctl enable macspoof@eth0.service |
已知问题:有时涉及网络的重启(推测如 docker)会导致失效。此时需要重启服务。
1 | sudo service macspoof@eno2 restart |
All articles in this blog are licensed under CC BY-SA 4.0 unless stating additionally.
Comment