修改 /etc/network/interfaces
加一行 hwaddress ether ##:##:##:##:##:##
例如我的:
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.16.51
netmask 255.255.255.0
gateway 192.168.16.1
hwaddress ether 00:00:39:9E:58:3C #add this line
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# please do not modify the following line
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
然后
# /etc/init.d/networking restart
fconfig eth0 down
ifconfig eth0 hw ether XX XX XX XX XX XX
ifconfig eth0 up
ifconfig停了网卡,改地址,启动网卡~~OK~~