Veeam Header3

VeeamPN 2.1 – Configure static IP for Network Hub

Today I decided to deploy VeeamPN between two sites. This is a free VPN solution which is optimized for performance. Veeam produced this tool for their customers to be able to easily setup networking between their production site and DR site, so ensure continuity during a disaster or failover situation.

Below is a diagram of my basic setup.

  • Site A – runs the “Network Hub” role
  • Site B – runs the “Site Gateway” role

VeeamPN Site to Site

The issue

When I deployed the first OVA appliance, I realised there was no option for setting a static IP address. DHCP is a requirement to configure VeeamPN. However, when the OVA deployed and the initial configuration for Network Hub is selected, there is no static IP address settings available versus an OVA configured for the Site Gateway rule.

VeeamPN Network Hub Site Gateway

The Fix

The VeeamPN OVA is a stripped-down Ubuntu Linux image, which runs Netplan for the networking service.

I configured a static IP address the following way;

  1. Configure SSH access on the VeeamPN appliance via the management interface.
  2. Use WinSCP to connect to the appliance
  3. Browse to /etc/netplan/
  4. Edit the “01-netplan.yaml’ file and save (see below).
  5. SSH to the VeeamPN Appliance and run “sudo netplan apply” or “sudo netplan –debug apply” for troubleshooting
  6. Log back onto the management interface using the new IP address.

When you edit the YAML file, you will find that indentations are key (as with any YAML file).

To make life easier, I used this file found here that you can use as the baseline;

network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      addresses:
        - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
          search: [mydomain, otherdomain]
          addresses: [10.10.10.1, 1.1.1.1]

VeeamPN Static IP Address Netplan YAML

VeeamPN Static IP Address sudo netplan debug apply

Regards

Dean

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.