Answers:
对于带有dhcp的eth0:
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
对于eth0静态:
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
iface eth0 inet static
address 192.168.10.33
netmask 255.255.255.0
broadcast 192.168.10.255
network 192.168.10.0
gateway 192.168.10.254
dns-nameservers 192.168.10.254
链接:http: //www.iasptk.com/ubuntu/20202-ubuntu-server-networking-configuration-dhcp-address-static-ip-address-second-ip-address-or-virtual-ip-address
在Debian网络配置页面上,如果您仅使用DHCP,那么您所需要的只是:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp