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

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...