기본 / 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


답변

다음 데비안 네트워크 구성 페이지 그냥 DHCP를 사용하는 경우, 당신이 필요로하는 모든이 같은 것입니다 :

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp


답변