Score:0

Network Configurations

fo flag

I'm using the command nmcli for set the IP of a ubuntu 18.04.5

"nmcli device modify ens33 ipv4.method manual ipv4.address X.X.X.X/X ipv4.gateway X.X.X.X ipv4.dns X.X.X.X"

and the ip changes wihthout problem, but after if I reboot the ubuntu after the IP goes to DHCP (fresh instalation of ubuntu).

with the grahical interface manager I have no problem but the code is for running in a server withtout GUI.

  • is a server but I use the nmcli to manage the wifi network card saids and passwords. One eth0 and a wan0
Score:2
cn flag

In a server, without a desktop environment, set your details in the file found in /etc/netplan. Here are some examples:

ls /usr/share/doc/netplan/examples

Most likely, your template is:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses:
        - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
        search: [mydomain, otherdomain]
        addresses: [10.10.10.1, 1.1.1.1]

Netplan is strict about indentation, spacing, etc., so proofread carefully twice. Follow with:

sudo netplan generate
sudo netplan apply

You should be all set.

JP_23 avatar
fo flag
* is a server but I use the nmcli to manage the wifi network card. One eth0 and a wan0
chili555 avatar
cn flag
So a server but not quite a server...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.