1. 网络配置
vi /etc/network/interfaces
DHCP自动获取
auto eth0
iface eth0 inet dhcp
网卡静态分配IP地址
iface eth0 inet static
address 10.16.3.99
netmask 255.255.255.0
network 10.16.3.0
broadcast 10.16.3.255
gateway 10.16.3.1
配置多个IP
auto eth0:1
iface eth0:1 inet static
address x.x.x.x
netmask 255.255.255.0
network 10.16.3.0
broadcast 10.16.3.255
gateway 10.16.3.1
# dns-* options are implemented by the resolvconf package, if installed(DNS设置)
dns-nameservers 61.153.177.196 61.153.177.197
dns-search fireteam.org