Ubuntu change Network config using netplan

 1. Open file and edit:  /etc/netplan/00-installer-config.yaml


 example:

root@ran:~# cat /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'

network:

  ethernets:

    ens160:

      dhcp4: no

      addresses: [169.7.33.52/16]

      routes :

       - to: default

         via: 169.7.33.1

      nameservers:

        addresses: [172.1.1.1]

  version: 2

  renderer: networkd


root@ran:~#


2)verify the yaml format and apply with below command:

#netplan apply

above command gives error if any format issues.


No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...