Set manual ip via command line
Use the command below to find details of the available adapters and the respective IP information.
ip a
Go to the netplan directory located at /etc/netplan.
ls into the /etc/netplan directory.
If you do not see any files, you can create one. The name could be anything, but by convention, it should start with a number like 01- and end with .yaml. The number sets the priority if you have more than one configuration file.
sudo nano /etc/netplan/50-cloud-init.yaml
sudo netplan apply
Comments
Post a Comment