Configure network interfaces with DHCP
This commit is contained in:
parent
8da209446b
commit
0cb2c5424d
4 changed files with 6 additions and 16 deletions
2
build.sh
2
build.sh
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Reference in a new issue