IP地址配置
编辑文件:/etc/network/interfaces
... # The primary network interface auto eth0 iface eth0 inet static address 192.168.106.60 netmask 255.255.255.0 gateway 192.168.106.254 ...
使用ifdown和ifup是配置生效
# ifdown eth0 # ifup eth0
DNS配置
编辑文件: /etc/resolvconf/resolv.conf.d/base
nameserver 61.134.1.4 nameserver 8.8.8.8
重启主机后生效