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

Поділитися
Вставка
  • Опубліковано 9 кві 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
    netplan.io/examples/#configur...
    ------------------------------------------ Get Social ------------------------------------------
    Facebook: / crazylogica
    Twitter: / crazy__logic
    Instagram: / crazy__logic
    Github: github.com/crazy-logic
    Twitch: / crazy__logic
    Webby: www.crazy-logic.co.uk.
    ------------------------------------------ Go Shopping ------------------------------------------
    Amazon affiliate links
    ► Raspberry Pi kit - amzn.to/3ebdtQJ
  • Наука та технологія

КОМЕНТАРІ • 33

  • @mrb2316
    @mrb2316 Рік тому +1

    Was stuck getting errors with the older method. Thanks for the update! Very helpful.

  • @gunnerjoe53
    @gunnerjoe53 Рік тому +2

    One thing different than other tutorials, there is no line dhcp4: no or dhcp4: false, but this way does work.

  • @wagcadvocacia
    @wagcadvocacia 2 роки тому +3

    Excelente! Muito obrigado!!!

  • @stephend3961
    @stephend3961 Рік тому +8

    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 !

  • @doughayden2806
    @doughayden2806 2 роки тому

    THANK YOU!!!!!! this worked!

  • @DavidEmanuelCepeda
    @DavidEmanuelCepeda 10 місяців тому +1

    EXCELENT VIDEO BRI THKS

  • @dhaibayassine884
    @dhaibayassine884 Рік тому +1

    thank you mr i appreciate it

  • @befa5322
    @befa5322 11 місяців тому

    You can see the Gateway by typing 'ip route show' into the terminal. And at "default via " you can see it.

  • @tendaitaruvinga5679
    @tendaitaruvinga5679 2 роки тому +1

    thank you, saved a life!

  • @maullah001
    @maullah001 2 роки тому

    Many thanks.

  • @solarabarakat3061
    @solarabarakat3061 8 місяців тому

    Thank you so much

  • @persianprince4223
    @persianprince4223 2 місяці тому

    You are a god. thank you

  • @tjaspire
    @tjaspire Рік тому

    Saved my buns! Thanks lol

  • @salemalkliebat3442
    @salemalkliebat3442 Рік тому +1

    thanks

  • @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.

  • @wilmerrizalde
    @wilmerrizalde Рік тому

    Can you make a video for netplan wifi configuration as well. Thanks!

  • @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

  • @e-tradeglobal
    @e-tradeglobal 9 місяців тому

    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?

  • @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?

  • @Wonback
    @Wonback Місяць тому

    For some reason when i change the config to the desired one, i don´t have internet

  • @thecrazymouse7220
    @thecrazymouse7220 7 місяців тому

    I do not see my wired network in this interface? How do I get it to appear

  • @bambangirawan2397
    @bambangirawan2397 9 місяців тому

    why does the latest Ubuntu make it difficult for us to configure IP

  • @bikram2955
    @bikram2955 Рік тому

    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  Рік тому

      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'

    • @bikram2955
      @bikram2955 Рік тому +1

      @@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.

  • @RelationalThrone
    @RelationalThrone 3 місяці тому

    does this work for wireless

    • @CrazyLogic
      @CrazyLogic  3 місяці тому

      Yes, would need to lookup the netplan details for a woman adaptor

  • @_JasimShaikh
    @_JasimShaikh 3 місяці тому

    I cannot ssh to my public IP can anyone help?

    • @CrazyLogic
      @CrazyLogic  3 місяці тому

      This is not something to ask strangers for help with.
      Have you a mobile device you can try from?

  • @francisphillipeck4272
    @francisphillipeck4272 Рік тому +2

    Netplan is garbage