From fb43187560caf1a4703d1209178a54e721e0061a Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Nov 2024 21:31:56 +0100 Subject: [PATCH] fixed default gateway --- installation/dhcp.sh | 1 - installation/static_ip.sh | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/installation/dhcp.sh b/installation/dhcp.sh index 3b6982f..679e0df 100755 --- a/installation/dhcp.sh +++ b/installation/dhcp.sh @@ -8,7 +8,6 @@ max-lease-time 7200; subnet 192.168.16.0 netmask 255.255.255.0 { range 192.168.16.10 192.168.16.100; - option routers 192.168.16.1; option subnet-mask 255.255.255.0; option domain-name-servers 192.168.16.1; }" diff --git a/installation/static_ip.sh b/installation/static_ip.sh index fdc559b..bac2bbd 100755 --- a/installation/static_ip.sh +++ b/installation/static_ip.sh @@ -3,8 +3,7 @@ config="auto $1 iface $1 inet static address 192.168.16.1 - netmask 255.255.255.0 - gateway 192.168.16.0" + netmask 255.255.255.0" echo -e "$config" | sudo tee /etc/network/interfaces.d/network >/dev/null