88 – How to setup Static IP address in Ubuntu Linux 22.04 with netplan 2022
Here I show how to set a static IP on Ubuntu 22.04 (among other distro’s using netplan).
and here are the commands
lsb_release -a
ip link show
sudo nano /etc/netplan/01-network-manager-all.yaml
sudo netplan apply
ip address show
and the contents of the file (for example)
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses:
– 192.168.122.150/24
nameservers:
addresses: [192.168.122.1, 1.1.1.1]
routes:
– to: default
via: 192.168.122.1
https://netplan.io/examples/#configuration
——————————————- Get Social ——————————————-
Facebook: https://www.facebook.com/crazylogica
Twitter: https://twitter.com/crazy__logic
Instagram: https://www.instagram.com/crazy__logic
Github: https://github.com/crazy-logic
Twitch: https://www.twitch.tv/crazy__logic
Webby: http://www.crazy-logic.co.uk.
——————————————- Go Shopping ——————————————-
Amazon affiliate links
► Raspberry Pi kit – https://amzn.to/3ebdtQJ
by Crazy-Logic
linux dns server
Wired connection e network manager tem que instalar vi terminal sudo apt install pelo que li
I do not see my wired network in this interface? How do I get it to appear
Thank you so much
why does the latest Ubuntu make it difficult for us to configure IP
when i connected 1 x lan and 1 x wifi at the same time my ubuntu chooses one of them and i cant use both network at the same time. how can i solve this issue?
EXCELENT VIDEO BRI THKS
You can see the Gateway by typing 'ip route show' into the terminal. And at "default via <here>" you can see it.
Great stuff couldn't get it working till now great help
One thing different than other tutorials, there is no line dhcp4: no or dhcp4: false, but this way does work.
Netplan is garbage
Saved my buns! Thanks lol
have tried various methods but still can't connect back to the internet so please Make a video for Fixing the netplan.cfg or the network adapter in ubuntu on vmware with windows 11 host
The network interface doesn't show in settings after a reboot. Is there something more you have to do to make sure that the netplan is applied at boot? I have to run 'sudo netplan apply' after every reboot.
thanks
Can you make a video for netplan wifi configuration as well. Thanks!
thank you mr i appreciate it
This is the type of reason the Ubuntu will never be main stream for the average user, because they keep making the configuration more difficult, even 5 years ago it was much simpler – One step forward , two steps back !
Was stuck getting errors with the older method. Thanks for the update! Very helpful.
I looked into ipconfig for my correct ethernet name which was "wlp0s20f3" and replaced it in your code. Unfortunately, I got error as "wlp0s20f3" not found in {}
Excelente! Muito obrigado!!!
thank you, saved a life!
Many thanks.
Hi, Can you please advise on the below error?
I am getting the below error after changing the netplan to use a static IP
WARNING: sysemd-networkd is not running, output will be incomplete.
Failed to reload network settings: No such file or directory
Falling back to a hard restart of systemd-networkd.service
Do you want to keep these settings?
Press ENTER before the timeout to accept the new configuration
changes will revert in ### seconds
THANK YOU!!!!!! this worked!