PNET Initial configuration using NETPLAN

Category >
sudo vim /etc/netplan/00-installer-config.yaml
network:
  version: 2
  ethernets:
    eno1:
      addresses:
        - 192.168.0.219/24
      routes:
        - to: 0.0.0.0/0
          via: 192.168.0.1
      nameservers:
        addresses:
          - 1.1.1.1
          - 1.0.0.1

Then validate and apply it:

sudo netplan generate
sudo netplan try
sudo netplan apply
ip address show eno1
ip route
ping -c 4 192.168.0.1
ping -c 4 1.1.1.1
ping -c 4 google.com


Leave a Reply

Your email address will not be published. Required fields are marked *