轉自:http://forum.ubuntu.org.cn/viewtopic.php?t=6774
1、臨時更改(不需要重啟):
代碼:
$ sudo ifconfig eth0 down
$ sudo ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
$ sudo ifconfig eth0 up
這樣做完以后default route可能就沒有了,要重新加一下
代碼:
$ sudo route add default gw xxx.xxx.xxx.xxx
2、永久更改:
代碼:
$ sudo gedit /etc/iftab
eth0 mac 00:e0:4d:75:8e:50(改成你要的物理地址mac)
代碼:
$ sudo gedit /etc/network/interfaces
將iface eth0 inet static后面添加一行
hwaddress ether 00:E0:4d:75:8E:50
如:iface eth0 inet static
hwaddress ether 00:E0:4d:75:8E:50(自己加的)
address 219.220.214.113
。
。
。
然后就好了 可能要重啟一下
版權所有 羅明