编辑 /etc/network/interfaces文件,
vim /etc/network/interfaces
添加如下内容:
auto loiface lo inet loopback
auto eth0
iface eth0 inet static
pre-up ifconfig eth0 hw ether 00:0c:29:33:11:54
address 192.168.121.21
netmask 255.255.255.0
gateway 192.168.121.1
network 192.168.121.0
broadcast 192.168.121.255