Lesson 5

Dates: 6/5/2019
Linux networking
Linux System Administration

Exercises: Configuring network on Ubuntu 18.04 with Netplan

  • Shutdown kvm1 VM, and clone it into netplan VM:
    virsh shutdown kvm1 
    virt-clone --connect=qemu:///system -o kvm1 -n netplan -f /home/hostadm/KVM/netplan.qcow2
    Start netplan. Login to console of netplan:
    virsh console netplan 
  • Fix the hostname.
  • Reset the machine ID by running the following commands on netplan:
    rm -f /etc/machine-id
    rm /var/lib/dbus/machine-id
    dbus-uuidgen --ensure=/etc/machine-id
    dbus-uuidgen --ensure
  • Clear the DHCP leased IP settings:
    dhclient -r ens3
  • Execute command reboot on netplan:

  • Check the IP address settings on netplan
    ip addr
  • Assign IP address by modifying the content of /etc/netplan/01-netcfg.yaml as follows
     version: 2
     renderer: networkd
         dhcp4: no
         addresses: []
           addresses: []
  • Have the settings applied:
    netplan apply
  • Check the IP address again:
    ip addr
    It should show for ens3 interface now.

  • Take me to the Course Website