lz7538 
vi /etc/network/interfaces.d/eth0
   
下列内容替换原有内容    
auto eth0
iface eth0 inet static
#下为IP
address 10.1.1.2
 #下为广播地址 首位                                           
network 10.1.1.1
 #下为掩码
netmask 255.255.255.0 
#下为广播地址 末尾
broadcast 10.1.1.255
#下为网关  (路由器地址)
gateway 10.1.1.1
#下为DNS地址 建议填网关
dns-nameservers 10.1.1.1
#下为mac地址  盒子背面看  小写
pre-up ifconfig eth0 hw ether f0:xx:xx:xx:xx:xx