Skip to content

netplan

Netplan Static IP - Configure static IP address on Ubuntu 18.04 - isw blog

How to Set Static ip on Ubuntu

Instructions are from here

sudo netplan generate
ls /etc/netplan
sudo vim /etc/netplan/******


network:
    ethernets:
        ens18:
            dhcp4: no
            addresses: [10.10.2.42/24, ]
            gateway4: 10.10.2.1
            nameservers:
                    addresses: [10.10.2.155, 10.10.2.222, 208.67.222.222, 1.1.1.1]
            optional: true
    version: 2


sudo netplan apply
  • How manually set ip address SOURCE
  • Detect what program running on port and kill it SOURCE