maybe works?

This commit is contained in:
Patrick 2024-11-18 20:39:01 +01:00
parent c6c113496b
commit a320e0aa36

View file

@ -10,10 +10,10 @@ 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; \
option domain-name-servers 192.168.1.1; \
}"
echo -e 'INTERFACES="enp0s3"' | sudo tee /etc/default/isc-dhcp-server >/dev/null
echo -e "INTERFACES='$1'" | sudo tee /etc/default/isc-dhcp-server >/dev/null
echo -e "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null