更改mac address
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether D4:BE:D9:88:A1:34
sudo ifconfig eth0 up;
增加虚拟ip地址
sudo ifconfig eth0:0 192.168.0.46 netmask 255.255.255.0 up
配置固定的IP地址
修改 /etc/network/interfaces
例如
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.0.37
gateway 192.168.0.1
netmask 255.255.255.0
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.0.37
gateway 192.168.0.1
netmask 255.255.255.0