ip static ubuntu server 19.10

Asked by chevalier thomas on 2020-02-06

hey
i don't find anything to set a static ip on ubuntu server 19.10
i find lot of solution to 19.04 and before so it's dosen't work
thanks for all anwsers

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-02-07
Last reply:
2020-02-12

Use /etc/network/interfaces file. Lots of guides online on the layout of the file

bernard stafford (bernard010) said : #2

Static IP Address Assignment
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses:
        - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
          search: [mydomain, otherdomain]
          addresses: [10.10.10.1, 1.1.1.1]
 The configuration can then be applied using the netplan command.
sudo netplan apply

In case you run into some issues execute:
$ sudo netplan --debug apply

The documentation for this: https://help.ubuntu.com/lts/serverguide/network-configuration.html
https://help.ubuntu.com/lts/serverguide/

chevalier thomas (tooik) said : #3

I already tried this method and doesn’t work

Can you help with this problem?

Provide an answer of your own, or ask chevalier thomas for more information if necessary.

To post a message you must log in.