6. Configuring Network Settings

Option 1: Assign IP using DHCP (preferred)

You may need to consult the documentation for your router to complete this step.  Use the MAC address found in step 12.3. above to assign your virtual machine an IP address on the network.  In your router configuration, this is called “Static MAC/IP Mapping”, “DHCP Reservations” or other similar phrases.  Click around your router configuration and search the internet for more information.

Assign an IP address that is outside of the DHCP range. For my network, The range starts at 10.1.32.100 and stops at 10.1.32.200, so I set my VPN server to 10.1.32.20.

Set your DHCP server to assign your virtual machine a static IP address.

Option 2: Assign IP Address manually

The Ubuntu Server installer will automatically attempt to connect to your network, and for most instances, it will be able to connect automatically.

In order to work properly, your VPN server needs a static IP address.  You should check your router settings and look for a DHCP range setting to determine the IP addresses your router has reserved for other devices.  You should not assign an IP address in this range.

Follow these steps to configure a manual IP address

  1. Before making changes, make note of the “DHCPv4” value.  This will help you with your network settings.  For me, the DHCPv4 value was 10.1.32.132/23. We will use the first three numbers before the slash (10.1.32) and the number after the slash (23) in step 5
  2. Highlight the “enp0s3” row and press <enter>
Highlight the `enp0s3` row and press [enter]
  1. Highlight “Edit IPv4” and press <enter>
  1. Set “IPv4 Method” to “Manual” and press <enter>
Set the `IPv4 Method` to Manual
  1. Use the arrow keys to select the Subnet field. Using the values from step 1 above, set the subnet appropriately.
    1. Type the first three numbers (for me, 10.1.32)
    2. Type a period, zero, forward slash: “.0/”
    3. Type the number after the slash
    4. For example, my subnet was “10.1.32.0/23”
  2. Select the Address field and input your preferred IP address.  For my network, my router reserves 10.1.32.100-10.1.32.200, so I cannot use any address in this range.  For my network configuration, I chose “10.1.32.20”.
  3. Select the Gateway field, and type your router’s IP address. This is typically your first three numbers, a period and a “1”.  For example, my router’s IP address is 10.1.32.1
  4. Select the Name servers field and type your router’s IP address.  You can also use a public DNS server like OpenDNS, Google Public DNS, Cloudflare or Quad9.
  5. (optional) If you are using the dynamic DNS service provided by Omega Consulting, select the Search domains field and type “byomega.io”.  Otherwise, leave this blank
  6. Check your completed settings
Check your completed settings for errors and press save.
  1. Highlight Save and press <enter>

Next, we will boot the virtual machine and install Linux.


NEXT: Start the VM and install Ubuntu Linux