From e12ef554d4f7e8f51e7f69b9097129b5adbc79fe Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Nov 2024 21:25:26 +0100 Subject: [PATCH] changed ip to prevent collisions --- installation/dhcp.sh | 8 ++++---- installation/static_ip.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/installation/dhcp.sh b/installation/dhcp.sh index 505bfd7..3b6982f 100755 --- a/installation/dhcp.sh +++ b/installation/dhcp.sh @@ -6,11 +6,11 @@ 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; +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.1.1; + option domain-name-servers 192.168.16.1; }" echo -e "INTERFACES='$1'" | sudo tee /etc/default/isc-dhcp-server >/dev/null diff --git a/installation/static_ip.sh b/installation/static_ip.sh index 5b330cd..fdc559b 100755 --- a/installation/static_ip.sh +++ b/installation/static_ip.sh @@ -2,9 +2,9 @@ config="auto $1 iface $1 inet static - address 192.168.1.1 + address 192.168.16.1 netmask 255.255.255.0 - gateway 192.168.1.0" + gateway 192.168.16.0" echo -e "$config" | sudo tee /etc/network/interfaces.d/network >/dev/null