修改物理地址方法:
(临时)
(永久)
通过ifconfig查看要修改的网卡名称,如eth0,wlan0等
(临时)
#ifconfig eth0 down
#ifconfig eth0 hw ether xxxxxxxxxx
#ifconfig eth0 xxx.xxx.xxx.xxx up
(永久)
1)编辑“/etc/init.d/rc.local”文件(sudo gedit /etc/init.d/rc.local)
2)在此配置文件的最后面加上如(Ubuntu:修改网卡的MAC地址)的修改命令:
## 修改 eth0 的 MAC 地址
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
sudo ifconfig eth0 up
通过ifconfig查看要修改的网卡名称,如eth0,wlan0等