Homework 4: Ubuntu Network Configuration and ipcalc

Homework 4: Ubuntu Network Configuration and ipcalc#

Due Date: Tuesday, September 29, 2026

  1. Log into your Virtual Desktop (VD).

  2. Create a working directory named HW_4:

    mkdir HW_4
    cd HW_4
    
  3. Inside the HW_4 directory, create a file named README.

  4. Document all commands used to complete the following exercises inside your README file.

Ubuntu Network Configuration#

  • Modify the network settings of the netplan Virtual Machine (VM) to change the static IP address to 192.168.122.192. Record the updated YAML configuration file in your README.

  • Modify the network settings of the netplan VM to configure them using Dynamic Host Configuration Protocol (DHCP). Record the updated YAML configuration file in your README.

Using ipcalc for Network Calculations#

  • Complete Exercise 4.17 to ensure that ipcalc is installed on your Virtual Desktop.

  • Given the following set of IP addresses and netmasks:

    • 170.15.25.34/27

    • 170.15.25.192/27

    • 170.15.25.100/27

    • 138.10.10.1/25

    • 138.10.10.15/25

    • 138.10.10.250/25

    Questions:

    • A) How many unique subnets are represented in this list?

    • B) Which of the listed IP addresses belong to the same subnet?