debian:~# vi /etc/network/interfaces
# This file describes the network interfaces available on your system^Z
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
#allow-hotplug eth0
#iface eth0 inet static
#iface eth0 inet dhcp
# address 172.21.6.214
# netmask 255.255.255.0
# network 172.21.6.254
# broadcast 172.21.6.255
# gateway 172.21.6.254
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 172.21.6.254
~
直接关机,然后再启动。