Тёмный

88 - How to setup Static IP address in Ubuntu Linux 22.04 with netplan 2022 

Crazy-Logic
Подписаться 2,9 тыс.
Просмотров 44 тыс.
50% 1

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
netplan.io/exa...
------------------------------------------ Get Social ------------------------------------------
Facebook: / crazylogica
Twitter: / crazy__logic
Instagram: / crazy__logic
Github: github.com/cra...
Twitch: / crazy__logic
Webby: www.crazy-logic....
------------------------------------------ Go Shopping ------------------------------------------
Amazon affiliate links
► Raspberry Pi kit - amzn.to/3ebdtQJ

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@gunnerjoe53
@gunnerjoe53 Год назад
One thing different than other tutorials, there is no line dhcp4: no or dhcp4: false, but this way does work.
@stephend3961
@stephend3961 Год назад
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 !
@befa5322
@befa5322 Год назад
You can see the Gateway by typing 'ip route show' into the terminal. And at "default via " you can see it.
@mrb2316
@mrb2316 2 года назад
Was stuck getting errors with the older method. Thanks for the update! Very helpful.
@e-tradeglobal
@e-tradeglobal Год назад
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?
@hayyanzafar3502
@hayyanzafar3502 Год назад
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
@Wonback
@Wonback 4 месяца назад
For some reason when i change the config to the desired one, i don´t have internet
@upstatelee18
@upstatelee18 Год назад
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.
@bambangirawan2397
@bambangirawan2397 Год назад
why does the latest Ubuntu make it difficult for us to configure IP
@DavidEmanuelCepeda
@DavidEmanuelCepeda Год назад
EXCELENT VIDEO BRI THKS
@wagcadvocacia
@wagcadvocacia 2 года назад
Excelente! Muito obrigado!!!
@thecrazymouse7220
@thecrazymouse7220 11 месяцев назад
I do not see my wired network in this interface? How do I get it to appear
@sharafathussain2036
@sharafathussain2036 7 месяцев назад
same was with me, can you tell the solution
@dhaibayassine884
@dhaibayassine884 Год назад
thank you mr i appreciate it
@tendaitaruvinga5679
@tendaitaruvinga5679 2 года назад
thank you, saved a life!
@CrazyLogic
@CrazyLogic 2 года назад
most welcome
@tjaspire
@tjaspire Год назад
Saved my buns! Thanks lol
@bikcrum
@bikcrum 2 года назад
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 {}
@CrazyLogic
@CrazyLogic 2 года назад
not sure how i would go about fixing this - perhaps there is another name for the interface also? What does your 'ip -br addr show'
@bikcrum
@bikcrum 2 года назад
@@CrazyLogic It shows the same name. However, I got it fixing the UI way. I used the WiFi settings in Ubuntu 22 to change to static.
@Karthikkumar-li5cd
@Karthikkumar-li5cd 2 года назад
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
@CrazyLogic
@CrazyLogic 2 года назад
Looks like networkd isn't running.. what's your os and distro?
@thepuldarshana9056
@thepuldarshana9056 Месяц назад
network setting windows is not opening . why is that sir ?
@CrazyLogic
@CrazyLogic Месяц назад
@@thepuldarshana9056 no idea. Try updating your system, and/otherwise Google would be my next shout :)
@persianprince4223
@persianprince4223 5 месяцев назад
You are a god. thank you
@doughayden2806
@doughayden2806 2 года назад
THANK YOU!!!!!! this worked!
@DIYCOMMUNITYHACK
@DIYCOMMUNITYHACK Год назад
Can you make a video for netplan wifi configuration as well. Thanks!
@solarabarakat3061
@solarabarakat3061 11 месяцев назад
Thank you so much
@maullah001
@maullah001 2 года назад
Many thanks.
@RelationalThrone
@RelationalThrone 6 месяцев назад
does this work for wireless
@CrazyLogic
@CrazyLogic 6 месяцев назад
Yes, would need to lookup the netplan details for a woman adaptor
@salemalkliebat3442
@salemalkliebat3442 Год назад
thanks
@_JasimShaikh
@_JasimShaikh 6 месяцев назад
I cannot ssh to my public IP can anyone help?
@CrazyLogic
@CrazyLogic 6 месяцев назад
This is not something to ask strangers for help with. Have you a mobile device you can try from?
@francisphillipeck4272
@francisphillipeck4272 Год назад
Netplan is garbage
Далее
Это было очень близко...
00:10
Просмотров 2,3 млн
PUBG Mobile СТАЛ ПЛАТНЫМ! 😳
00:31
Просмотров 174 тыс.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
How to Use NetPlan in Ubuntu 18.04
11:42
Просмотров 46 тыс.
How Does Linux Boot Process Work?
4:44
Просмотров 661 тыс.
Configuring Ubuntu Networking with Netplan
8:57
Просмотров 10 тыс.
Subnet Mask - Explained
17:55
Просмотров 2,9 млн
How to Set Static IP in Ubuntu Server 22.04
18:03
Просмотров 93 тыс.