You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Graham Helton 199144feaf | 1 year ago | |
---|---|---|
README.md | 1 year ago | |
setnet.sh | 1 year ago |
README.md
SetNet
A quick tool for automatically setting a static IP on an ubuntu machine using the netplan
command.
Usage
Set the IP for your gateway and DNS server inside the setnet.sh
. SetNet will then grab the IP your ubuntu machine is currently using and set up a file in /etc/netplan/
called 1-network-manager-all.yaml
with the configuration needed to assign your current IP as a static IP. It then runs sudo netplan apply
to apply the changes.