永久修改Ubuntu的mac地址
在/etc/init.d/networking中找到
case "$1" in
start)
這句話,再加入
ifconfig eth0 down (停用網卡)
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(需要更改的MAC地址)
ifconfig eth0 up (啟用網卡)
配置DNS
vi /etc/resolv.conf
nameserver 8.8.8.8
重啟網絡
/etc/init.d/networking restart