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.
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
- 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
- Highlight the “enp0s3” row and press <enter>
- Highlight “Edit IPv4” and press <enter>
- Set “IPv4 Method” to “Manual” and press <enter>
- Use the arrow keys to select the Subnet field. Using the values from step 1 above, set the subnet appropriately.
- Type the first three numbers (for me, 10.1.32)
- Type a period, zero, forward slash: “.0/”
- Type the number after the slash
- For example, my subnet was “10.1.32.0/23”
- 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”.
- 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
- 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.
- (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
- Check your completed settings
- Highlight Save and press <enter>
Next, we will boot the virtual machine and install Linux.