#配置IP,网关
#vi /etc/network/interfaces
#内容auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.40.248
netmask 255.255.254.0
gateway 192.168.40.2
auto eth0:1
iface eth0:1 inet static
address 192.168.2.222
netmask 255.255.255.0
gateway 192.168.2.1
allow-hotplug usb0
auto usb0
iface usb0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
#保存
#配置DNS
vi /etc/resolv.conf
# Generated by NetworkManager
nameserver 221.5.88.88
nameserver 202.96.128.68
nameserver 202.96.128.86
nameserver 192.168.0.1
nameserver 171.16.10.3