Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <mailto@danielhansson.nu>2022-10-07 22:17:04 +0300
committerGitHub <noreply@github.com>2022-10-07 22:17:04 +0300
commit613e26e8e0bade4191c1a4e0b07d755fbf48e3a9 (patch)
tree5de6d693a8659f8cd23e924260d2c2651b38c073
parent554f4d379555723fcceb13cf065a4cf48ab01b31 (diff)
replace gatewayip4 which is deprecated
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
-rw-r--r--network/static_ip.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/network/static_ip.sh b/network/static_ip.sh
index 302c7a0c..4322e91a 100644
--- a/network/static_ip.sh
+++ b/network/static_ip.sh
@@ -187,10 +187,12 @@ network:
dhcp4: false # dhcp v4 disable
dhcp6: false # dhcp v6 disable
addresses:
- - $LANIP # client IP address
- gateway4: $GATEWAYIP # gateway address
+ - $LANIP
+ routes:
+ - to: default
+ via: $GATEWAYIP
nameservers:
- addresses: [$DNSs] #name servers
+ addresses: [$DNSs]
IPCONFIG
msg_box "These are your settings, please make sure they are correct:
@@ -207,10 +209,12 @@ network:
dhcp4: false # dhcp v4 disable
dhcp6: false # dhcp v6 disable
addresses:
- - $LANIP # client IP address
- gateway4: $GATEWAYIP # gateway address
+ - $LANIP
+ routes:
+ - to: default
+ via: $GATEWAYIP
nameservers:
- addresses: [$DNSs] #name servers
+ addresses: [$DNSs]
IPCONFIGnonvmware
msg_box "These are your settings, please make sure they are correct: