fixed default gateway
This commit is contained in:
parent
e12ef554d4
commit
fb43187560
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}"
|
}"
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue