1
0
Fork 0

Configure network interfaces with DHCP

This commit is contained in:
Alex Kotov 2020-02-08 22:05:16 +05:00
parent 8da209446b
commit 0cb2c5424d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 6 additions and 16 deletions

View File

@ -202,8 +202,6 @@ apply_file 644 '/etc/hostname'
apply_file 644 '/etc/hosts'
apply_file 644 '/etc/network/interfaces'
apply_file 644 '/etc/network/interfaces.d/wlan0'
apply_file 644 '/etc/network/interfaces.d/eth0'
##
# Configure Wi-Fi.

View File

@ -1,8 +1,12 @@
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp

View File

@ -1,6 +0,0 @@
auto eth0
iface eth0 inet static
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
address 192.168.0.1

View File

@ -1,6 +0,0 @@
auto wlan0
iface wlan0 inet static
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
address 192.168.0.1