|
@@ -3,8 +3,9 @@
|
|
|
set -e
|
|
set -e
|
|
|
|
|
|
|
|
# Write Netplan
|
|
# Write Netplan
|
|
|
|
|
+sudo touch /etc/netplan/01-netcfg.yaml
|
|
|
# Changes dhcp from 'yes' to 'no'
|
|
# Changes dhcp from 'yes' to 'no'
|
|
|
-sed -i "s/dhcp4: yes/dhcp4: no/g" /etc/netplan/01-netcfg.yaml
|
|
|
|
|
|
|
+# sed -i "s/dhcp4: yes/dhcp4: no/g" /etc/netplan/01-netcfg.yaml
|
|
|
# Ask for input on network configuration
|
|
# Ask for input on network configuration
|
|
|
read -p "Enter the static IP of the server in CIDR notation: " staticip
|
|
read -p "Enter the static IP of the server in CIDR notation: " staticip
|
|
|
read -p "Enter the IP of your gateway: " gatewayip
|
|
read -p "Enter the IP of your gateway: " gatewayip
|