Тёмный
No video :(

How to a Setup Static IP Address on Linux using Netplan with ROUTES 

SavvyNik
Подписаться 56 тыс.
Просмотров 48 тыс.
50% 1

Setup a Static IP Address with Netplan on Ubuntu Server 22.04 LTS or other Linux distros. Netplan has started using Routes instead of Gateway4. This can be used with any other Linux Distro that uses Netplan.
By default Ubuntu and most Linux distributions will assign an IP Address dynamically using a DHCP Server.
My Linux Cheat Sheet and 25 Page Checklist here:
📚 learn.savvynik...
Share this free tool and support Small RU-vidrs
editbulk.com
(I made this tool to help creators)
#linux #ubuntu #pc

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

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@ghostie5730
@ghostie5730 8 месяцев назад
Bro.... Life saver. I will sleep well tonight thanks to you my friend
@SavvyNik
@SavvyNik 8 месяцев назад
No problem, glad you found the vid
@Hasansaid51
@Hasansaid51 4 месяца назад
what if i only have 50-cloud-init.yaml file? and ive already made changes to it meaning i was able to connect my server to wifi by editing that file
@SavvyNik
@SavvyNik 4 месяца назад
It’s fine just make sure your settings are applied on a reboot
@peterg91
@peterg91 4 месяца назад
Nice video, thank you! I just wonder how that deeper indentation with DNS addresses passed through "try" step, if it's said to be important...
@tb1263
@tb1263 Год назад
Great video.. Could you make a video concerning the process of configuring the router to match the setting with a static ip adresse
@golvellius6855
@golvellius6855 4 месяца назад
Amigo you explained and answered ALL my questions and much more thank you
@SavvyNik
@SavvyNik 4 месяца назад
Love to hear it
@Isreh33
@Isreh33 Год назад
When I ceebs going through documentation for things like this, your channel is my go to! Keep it up and thank you
@SavvyNik
@SavvyNik Год назад
Glad to hear it. No problem :)
@MarcelFaucher
@MarcelFaucher 5 месяцев назад
It doesn't work for me. I get about 10 errors and warnings and this: " Command '['systemctl', 'start', 'NetworkManager.service']' returned non-zero exit status 5". I also get several warnings like this: WARNING **: 21:14:04.894: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others". It's the 3rd video I've watched and though they have miner differences I alwats get the same results Can someone re-direct me to a newer video so I can get this thing right? I have Ubuntu 22.04.4 LTS
@johnmacward
@johnmacward 4 месяца назад
Everything that's a warning - don't worry about it, it won't prevent you from getting it working. If you're Ubuntu server change the "renderer: NetworkManager" to "renderer: networkd". For the WARNING - permissions, you need to chmod your YAML file to only permit root access. Its easy and here's an example: " # sudo chmod 600 /etc/netplan/name_of_your_yaml_file.yaml
@techtonicsystems
@techtonicsystems 10 месяцев назад
Excellent! Many thanks for a simple and concise session. Really helpful
@TheAlirezak
@TheAlirezak 5 месяцев назад
but why i cannot ping my default gateway ? (from ubuntu vm machine to host (windows) )
@SavvyNik
@SavvyNik 5 месяцев назад
You need to use a bridged adapter instead of nat
@KARO69GRP
@KARO69GRP Год назад
Yay!!! Excellent... Can you do one for multiple network adapters, and testing the routes?
@cprogramming1
@cprogramming1 Год назад
After setting up static IP address on Ubuntu server 22.04, getting an error "Temporary Failure in name Resolution ". Couldn't connect to the internet.
@SavvyNik
@SavvyNik Год назад
You’re dns settings are more than likely messed up
@cprogramming1
@cprogramming1 Год назад
How to solve?
@IB1899-AF
@IB1899-AF Год назад
Have you solved the problem, cause I'm getting the same error when I try to ping something on the internet
@cprogramming1
@cprogramming1 Год назад
Yes, you need find default gateway address with "route" Command and use the same with your settings on static ip file. You cannot set any other gateway address, it doesn't work
@the-lettere
@the-lettere 9 месяцев назад
I do not like netplan. It won't let me define the routes I want to use.
@kevinmarquis3192
@kevinmarquis3192 Год назад
What does setting a particular DNS server address do? I have not deliberately set up a DNS Server with my device. Should I still list these addresses in my configuration file? Thanks. I am new to this.
@SavvyNik
@SavvyNik Год назад
You don’t need it typically because your router will take care of the default dns traffic. Private DNS servers could be used in a office space where you want people to connect to a local domain or service without having to know or type the ip. This is when you would want to specify your own dns server address so traffic routes properly when someone try’s to get to one of the local domains. There’s other reasons but this probably most common place. Others prefer special dns servers because they get a smaller latency if the server has faster response times.
@user-ky1xb7do3r
@user-ky1xb7do3r 7 месяцев назад
I am getting a version error when I use version = 2
@munna6022
@munna6022 10 месяцев назад
After configuring static , How to disable the dhcp lease ?
@vipulsingh2846
@vipulsingh2846 Месяц назад
Whenever i switch to some other wifi my ip address changes why is that happening its only static if i stick to my main wifi. Whenever the device changes my ip changes how to slove this problem?
@wedekindrobert
@wedekindrobert 11 месяцев назад
ty sir, you saved my day/webserver/network config!
@SavvyNik
@SavvyNik 11 месяцев назад
Glad I could help
@ranjitsidhu574
@ranjitsidhu574 11 месяцев назад
I am not getting any errors displayed but ip address is not getting changed
@mi4aprotv320
@mi4aprotv320 9 месяцев назад
How to reserve the ip address in router also
@doughayden2806
@doughayden2806 3 месяца назад
Thank You! great job!
@freddyhardware840
@freddyhardware840 8 месяцев назад
The filename that I found is 00-installer-config.yaml. Is this the file I edit?
@SavvyNik
@SavvyNik 8 месяцев назад
That works out you can make your own
@axMf3qTI
@axMf3qTI Месяц назад
Did I skip a tut? I don't have /etc/netplan
@walidslimani
@walidslimani 9 месяцев назад
is it important to do it , if you want to set up and install and configure DHCP between UBUNtu and windows as client
@SavvyNik
@SavvyNik 9 месяцев назад
No this is only if you want to setup static (non dhcp) ip.
@walidslimani
@walidslimani 9 месяцев назад
@@SavvyNik the thing is i don't have any domain names or DNSs , im just testing it at home, so where do i stop , can i stop at addresses . same question when i want to configure A DHCP on ubuntu (Vmachine ) to windows client . i see all people type (DNS , domaine name , domain admin .. ) like i don't have those . and thanks for the reply
@monwabisisithaba7803
@monwabisisithaba7803 8 месяцев назад
Thank you.
@ahmedj9188
@ahmedj9188 10 месяцев назад
Thank you soooo much
@struggle375
@struggle375 Год назад
Thank you!!
@SavvyNik
@SavvyNik Год назад
Np
@xenoaiandrobotics4222
@xenoaiandrobotics4222 2 месяца назад
i tried on my wireless networking its still not working
@andro_meda
@andro_meda 11 дней назад
Thank you
@bruny4993
@bruny4993 Год назад
Thanks
@ricardofonseca7810
@ricardofonseca7810 6 месяцев назад
Nice
@shama2783
@shama2783 Месяц назад
Bro how to make it persistent
@guilherme5094
@guilherme5094 Год назад
👍
@SavvyNik
@SavvyNik Год назад
Hi Félix :)
@woodenbeast9337
@woodenbeast9337 Год назад
dOES THIS WORK WITH xFINTY?
@SavvyNik
@SavvyNik Год назад
Not sure what you mean
@woodenbeast9337
@woodenbeast9337 Год назад
@@SavvyNik I meant a vps type of setup
@SavvyNik
@SavvyNik Год назад
As long as the server has some form of Ubuntu/Ubuntu server this would work. If it’s a different type of Linux you’ll need to make sure it’s using netplan to service the network.
@woodenbeast9337
@woodenbeast9337 Год назад
@@SavvyNik Thanks for reply.
@heroiccroc
@heroiccroc 5 месяцев назад
Skap
Далее
Ubuntu Server: Getting started with a Linux Server
1:09:33
Первый день школы Катя vs Макс
19:37
60 Linux Commands you NEED to know (in 10 minutes)
10:50
Linus Torvalds: Speaks on Hype and the Future of AI
9:02
Add a Secondary IP Address in Linux!
12:24
Просмотров 6 тыс.
Linux is a MAJOR Rabbit Hole
36:40
Просмотров 661 тыс.