Configure Static IP Address (CLI) on Ubuntu 18.04.5 LTS

 goto:

sudo nano /etc/netplan/01-netcfg.yaml

Sample Config:

# This file describes the network interfaces available on your system

# For more information, see netplan(5).

network:

  version: 2

  renderer: networkd

  ethernets:

        ens160:

            dhcp4: no

            addresses: ['192.168.1.26/24']

            gateway4: 192.168.1.1

            nameservers:

                addresses: [8.8.8.8, 8.8.4.4]

                search: [hak786.blogspot.com]



sudo netplan apply

Comments

Popular posts from this blog

Mikrotik Webproxy with PCC

Dual Wan Load balacing with failover mikrotik