How to Set Static IP in Ubuntu Server 22.04

How to Set Static IP in Ubuntu Server 22.04

KeepItTechie

1 год назад

78,170 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@tankareno
@tankareno - 06.12.2023 21:37

good stuff, just what I need

Ответить
@vinodji5275
@vinodji5275 - 02.12.2023 16:07

thanks a lot of you great job broo and please make another ipv6 with ipv4

Ответить
@ThePoot_tf2
@ThePoot_tf2 - 01.12.2023 10:39

thank you for this video

Ответить
@NS-cb2fd
@NS-cb2fd - 30.11.2023 17:33

hahhaha what fuok is this !!!!!!!!!!!!!!!!!!!!!!

Ответить
@SkittleKicksPlays
@SkittleKicksPlays - 30.11.2023 10:58

So I grabbed your newest static.yaml file and people might be a bit confused what that last IP address spot is. That's where you put the gateway address.

Couple of weird issues I ran into while following the tutorial.

Issue 1
Since I am the latest build 23.10 (not an LTS), I had to chmod permissions on his brand new yaml file (He's updated on his github page). I found out that the new file will give you a message saying Permissions for static.yaml are too open on version 23.10 severs.

The fix: chmod og= static.yaml this removes the two r (read) permissions that are created by default. If you run the ls -l command in the netplan directory before running chmod you'll see what I mean. You just want them to match the original file permissions. I ran the netplan apply and got rid of the permissions warning.

..But wait there's more!

Issue 2

There is also an annoying bug in 23.10 where running netplan apply gives you a warning Cannot call Open vswitch: ovsdb-server.service is not running. In my case it was not installed when I first built the server.

The fix. is just run sudo apt-get install openvswitch-switch and that will clear out that message when you execute netplan apply.

Again this is a known bug from what I read. It doesn't appear to be an issue in 22.04 LTS or 22.04.3 LTS except for that deprecated warning message in his old static.ymal file.

This is what we IT guys deal with all the time in the profession, and sometimes troubleshooting creates more weird things.

Ответить
@jonathanbarnes3502
@jonathanbarnes3502 - 21.11.2023 20:35

WHODAT!!

Ответить
@domenico395
@domenico395 - 14.11.2023 00:05

Bravissimo grazie

Ответить
@andrewgraham6994
@andrewgraham6994 - 04.11.2023 17:17

My guy, You have skillz teaching. broski keeps the BS to a minimum💯✌

Ответить
@joeb4790
@joeb4790 - 18.10.2023 18:57

Thanks man this is a great easy to follow guide. Never had to do this without net tools until now.

Ответить
@leebuckley4873
@leebuckley4873 - 17.10.2023 16:07

Hi I have a static IP of 212 then a df gateway of 159 I'm trying to set a static IP for my home server so I can assess it outside of my home network but having some issues can you recommend anything that could help many thanks

Ответить
@muzi7335
@muzi7335 - 17.10.2023 13:34

Thanks bro, it worked as I expected.

Ответить
@MetalElmmer
@MetalElmmer - 15.10.2023 17:37

That helped me out so much! Thank you, bro, for this!

Ответить
@serenditymuse
@serenditymuse - 13.10.2023 11:24

Fixed DHCP address in NOT a static IP address. I have a true assigned by ISP extra static IP address.

Ответить
@KB-ge4rn
@KB-ge4rn - 09.10.2023 10:46

Ty

Ответить
@asithamahagamage7969
@asithamahagamage7969 - 27.09.2023 22:20

තැන්ක්ස් අයියා😊😊

Ответить
@saidevpappu
@saidevpappu - 27.09.2023 00:51

Thanks mate..cheers 💘

Ответить
@johannschwengler529
@johannschwengler529 - 11.09.2023 22:17

Bro thanks for help, respect from Kazakhstan)

Ответить
@azharali5319
@azharali5319 - 28.08.2023 02:43

This guy talks so fucking much... just get to the point!!!!!!

Ответить
@Jacq4y
@Jacq4y - 22.08.2023 13:29

Hi. I don't understand why you do a "cp" and then a "rm" instead of just doing a "mv"... it works but it is not efficient (be lazy !) - BTW thanks for the video

Ответить
@Radenska512
@Radenska512 - 14.08.2023 20:07

Thanks for your help ^^ I kinda avoided the Netplan configuration type, cause last time I screwed up my connection to a VM badly. But you explained it very well

Ответить
@amraaamraa2153
@amraaamraa2153 - 08.08.2023 09:03

Thank you so much sir. It's good for beginner me :>.

Ответить
@TiredZero
@TiredZero - 05.08.2023 16:43

it works with wifi too? or just Lan? I'm using an old laptop as a project server xD

Ответить
@yellowbird100
@yellowbird100 - 19.07.2023 18:37

tysm <3

Ответить
@matthewwilson9946
@matthewwilson9946 - 17.07.2023 22:20

Just want to drop a comment to say thanks. This was doing my head in a little bit, not too used to HyperV and Ubuntu server did not want to install with a NIC. Had to remove prior to installation so was a bit wobbly.

Thanks!

Ответить
@stuffthere2381
@stuffthere2381 - 15.07.2023 01:10

Top man 👌 very good tutorial

Ответить
@cking9145
@cking9145 - 14.07.2023 09:20

So it is only within the local network static, right? :-/

Ответить
@hectormoreira4316
@hectormoreira4316 - 13.07.2023 01:47

Very helpful! Thanks!

Ответить
@TheJohn48231
@TheJohn48231 - 12.07.2023 14:04

Thank you for helping out a Linux noob, great video.

Ответить
@royvincentniepes3734
@royvincentniepes3734 - 08.07.2023 21:36

will this work in ubuntu under wsl?

Ответить
@duckheadgaming
@duckheadgaming - 24.06.2023 13:51

Thanks a lot, worked great and your explainations are perfect for beginners!

Ответить
@victor2410
@victor2410 - 11.06.2023 01:54

nice tutorial, your videos have been coming in very handy!

Ответить
@todaysbibleteaching
@todaysbibleteaching - 08.06.2023 19:46

also the first set of numbers is 192.168.0

Ответить
@todaysbibleteaching
@todaysbibleteaching - 08.06.2023 19:45

I do not have that file in the folder that you told me to go into. My file is 1-network-manager-all.yaml and what is in there is let network manager manage all devices on this system network: version 2 renderer: networkmanager

Ответить
@coding3617
@coding3617 - 31.05.2023 16:21

how to set public ip addess as static ip address? PLEASE HELP

Ответить
@jatmo6991
@jatmo6991 - 28.05.2023 15:49

Black people doing tech. Love it. Always.

Ответить
@devlinxji
@devlinxji - 14.05.2023 20:29

Thankyou.. it's easy explain..

Ответить
@parvanstoianov2141
@parvanstoianov2141 - 14.05.2023 18:11

Can you give an example how to configure more than one NIC with a static address

Ответить
@user-vy4sf5fl3n
@user-vy4sf5fl3n - 11.05.2023 11:53

goodjob bro

Ответить
@PatJones82
@PatJones82 - 04.05.2023 19:55

Very helpful. Appreciate it, my friend! :)

Ответить
@bk21021
@bk21021 - 02.05.2023 19:20

U r great boss

Ответить
@victorsaramento9333
@victorsaramento9333 - 23.04.2023 21:16

Thanks for the details. Great video XD

Ответить
@julianballaci7968
@julianballaci7968 - 22.04.2023 19:39

One big thank you

Ответить
@saujanyamhatre7798
@saujanyamhatre7798 - 20.04.2023 07:15

thanks brother it helped me out

Ответить
@nodryland1564
@nodryland1564 - 19.04.2023 10:59

Great content was very helpful keep up the good work Bro

Ответить
@Mchacz8008
@Mchacz8008 - 26.03.2023 23:35

Thank you so much for the video, I was looking just for that!

Ответить
@kuroraiju
@kuroraiju - 20.03.2023 07:49

Excellent tutorial, you made this look like a cakewalk!

Ответить
@whoman0385
@whoman0385 - 15.03.2023 17:59

aint no way it takes 18 minutes to set a static ip-

Ответить
@tonymaury2006
@tonymaury2006 - 12.03.2023 17:16

Hi, I enjoy your videos. I followed your instructions and installed Ubuntu server and installed Nextcloud, but you stated we could copy/paste a config from your GitHub page. But I can't figure out how to get it paste into server. I am running server on VirtualBox. I have the Guest Additions iso installed. Where did I go wrong? I can't utilize Nextcloud until I complete this. Any help/advice would be greatly appreciated!

Ответить
@toddmartin7030
@toddmartin7030 - 03.03.2023 23:34

Excellent video, thank you! Its been awhile since I've set up a linux server, most of the servers I stand up are BSD, so this video was a real life saver today!

Ответить
@Dominik-bd7fx
@Dominik-bd7fx - 27.01.2023 01:42

Thx for video, can i use my internet provider's dns servers?

Ответить