Question on nmcli on Ubuntu 20.04

David Fletcher dave at thefletchers.net
Fri Dec 18 17:39:04 UTC 2020


On Fri, 2020-12-18 at 11:47 -0500, Jerry Geis wrote:
> I am using this command:
> nmcli connection modify 'Wired connection 1' ipv4.method manual
> ipv6.method ignore autoconnect yes ipv4.addr 192.168.1.19/22 gw4
> 192.168.1.1 ipv4.dns 192.168.1.14
> 
> to set static address and the DNS.

I assume you're setting up 20.04 server? I just (from my installation
and configuration notes) did this:-

See 
https://www.tecmint.com/configure-network-static-ip-address-in-ubuntu/
Set up networking:-
Edit /etc/netplan/???? to look like this:-

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp2s0:
      addresses:
      - 192.168.2.x/24
      gateway4: 192.168.2.1
      nameservers:
        addresses:
        - 208.67.222.222
        - 208.67.220.220
        - 192.168.2.1
        - 8.8.8.8
        - 8.8.4.4
  version: 2


Then do
sudo netplan apply

This is from my personal notes. Your Ethernet port name may be
different. Don't change it.

Hope that gets you going.

Dave





More information about the ubuntu-users mailing list