ip static ubuntu server 19.10

Asked by chevalier thomas

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:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

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

Revision history for this message
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/

Revision history for this message
chevalier thomas (tooik) said :
#3

I already tried this method and doesn’t work

Revision history for this message
Bernard Stafford (bernard010) said :
#4

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.