什么是默认的/ etc / network / interfaces?
我弄乱了我的网络配置。 任何人都可以帮我复制默认的/etc/network/interfaces
吗?
对于带有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
我看起来像:
auto lo iface lo inet loopback
在Debian网络配置页面之后 ,如果您只是使用DHCP,那么您只需要:
auto eth0 allow-hotplug eth0 iface eth0 inet dhcp