From e155388f39828dca7acf716922f46f1051d3a96d Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 14 Nov 2024 17:20:55 +0100 Subject: [PATCH] finally fixed --- configs/scripts/server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/scripts/server.sh b/configs/scripts/server.sh index 3dd7a6c..b96e05c 100755 --- a/configs/scripts/server.sh +++ b/configs/scripts/server.sh @@ -22,7 +22,7 @@ while true; do fi done -echo -e "\nauto ens3\niface ens3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.1" | tee -a /mnt/etc/network/interfaces +echo -e "\nauto ens3\niface ens3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/ sed -i 's/^INTERFACES=.*/INTERFACES="ens3"/' /mnt/etc/default/isc-dhcp-server