Last active
October 9, 2020 18:20
-
-
Save anselmobattisti/3fd5a18adc26ac599efb9640943aeccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm /etc/netplan/00-installer-config.yaml | |
echo " | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp0s3: | |
dhcp4: false | |
addresses: [192.168.0.$1/24] | |
gateway4: 192.168.0.1 | |
nameservers: | |
addresses: [8.8.8.8]" > /etc/netplan/00-installer-config.yaml | |
netplan apply |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment