changed ip to prevent collisions
This commit is contained in:
parent
405730f3db
commit
e12ef554d4
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue