changed ip to prevent collisions

This commit is contained in:
Patrick 2024-11-18 21:25:26 +01:00
parent 405730f3db
commit e12ef554d4
2 changed files with 6 additions and 6 deletions

View file

@ -6,11 +6,11 @@ sudo apt install -y isc-dhcp-server
config="default-lease-time 600; config="default-lease-time 600;
max-lease-time 7200; max-lease-time 7200;
subnet 192.168.1.0 netmask 255.255.255.0 { subnet 192.168.16.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100; range 192.168.16.10 192.168.16.100;
option routers 192.168.1.1; option routers 192.168.16.1;
option subnet-mask 255.255.255.0; 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 echo -e "INTERFACES='$1'" | sudo tee /etc/default/isc-dhcp-server >/dev/null

View file

@ -2,9 +2,9 @@
config="auto $1 config="auto $1
iface $1 inet static iface $1 inet static
address 192.168.1.1 address 192.168.16.1
netmask 255.255.255.0 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 echo -e "$config" | sudo tee /etc/network/interfaces.d/network >/dev/null