interfaces内容如下:
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1
# The primary network interface
iface eth1 inet static
address 192.168.0.3
gateway 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
# dns-* options are implemented by the resolvconf package, if installed