fixed default gateway

This commit is contained in:
Patrick 2024-11-18 21:31:56 +01:00
parent e12ef554d4
commit fb43187560
2 changed files with 1 additions and 3 deletions

View file

@ -8,7 +8,6 @@ max-lease-time 7200;
subnet 192.168.16.0 netmask 255.255.255.0 { subnet 192.168.16.0 netmask 255.255.255.0 {
range 192.168.16.10 192.168.16.100; range 192.168.16.10 192.168.16.100;
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.16.1; option domain-name-servers 192.168.16.1;
}" }"

View file

@ -3,8 +3,7 @@
config="auto $1 config="auto $1
iface $1 inet static iface $1 inet static
address 192.168.16.1 address 192.168.16.1
netmask 255.255.255.0 netmask 255.255.255.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