diff --git a/installation/dhcp.sh b/installation/dhcp.sh new file mode 100644 index 0000000..ac7c802 --- /dev/null +++ b/installation/dhcp.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +sudo apt update +sudo apt install -y isc-dhcp-server + +config=\ + "default-lease-time 600; \ +max-lease-time 7200; \ +\ +subnet 192.168.1.0 netmask 255.255.255.0 { \ + range 192.168.1.10 192.168.1.100; \ + option routers 192.168.1.1; \ + option subnet-mask 255.255.255.0; \ + option domain-name-servers 8.8.8.8, 8.8.4.4; \ +}" + +echo "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null diff --git a/installation/utils.sh b/installation/utils.sh new file mode 100644 index 0000000..e247ad4 --- /dev/null +++ b/installation/utils.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo apt update +sudo apt install -y curl