How to set up an ip static address on ubuntu server 22.04

Поділитися
Вставка
  • Опубліковано 27 лип 2024
  • 00:00 Intro
    00:16 I Explain where is the config files
    01:02 Check our current network settings
    02:45 Set up the static ip address
    06:11 Testing the new network config
    ------
    Version francaise (french version):
    • Configurer une adresse...
    -------
    If you would like to pay me a coffee to support my work.
    ko-fi.com/benlinux
    -------
    Here all commands used on this video:
    cd /etc/netplan/
    ls -l
    sudo vi /etc/netplan/00-installer-config.yaml
    An excerpt from my config file
    network:
    ethernets:
    ens18:
    dhcp4: no
    addresses:
    - 10.0.0.33/24
    routes:
    - to: default
    via: 10.0.0.1
    nameservers:
    addresses: [10.0.0.1,8.8.8.8]
    version: 2
    sudo netplan apply
    ip add
    resolvectl status
    ip route
  • Наука та технологія

КОМЕНТАРІ • 3

  • @leila-mv4zm
    @leila-mv4zm 4 місяці тому

    super helpful! thanks for not wasting my time and keeping the video short.
    everything worked for me on ubuntu server 23.10, but i did get a random error "netplan apply cannot call open vswitch: ovsdb-server.service is not running"
    everything worked though. server is accessible and everything was applied. don't even know what that service is.

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

    After I did this, the server is disconnecting from the router, but when I change it to the default it's working 4:39

    • @benlinux-en
      @benlinux-en  8 місяців тому +1

      When you change an IP address to a static one, be sure you use the good network address and that you use the good subnet mask. If not, you won't be able to join your default gateway and your router.