Adding Public Cloud instance to Private Network

Adding Public Cloud instance to Private Network

Your Public Cloud instances can be added to the Leaseweb Private Network, allowing your services from different Leaseweb products to communicate between each other on a private connection. Leaseweb Private Network is only available within the same metro area, e.g.  an metro area is Amsterdam, allowing to connect services from AMS-01 and AMS-02 with each other.

  1. Go to your Leaseweb Customer Portal account.
  2. From the menu, select Public Cloud, choose your instance, and click Manage instance
  3. Go to the Networking tab in the instance overview page.
  4. Enable Private Networking by clicking the Switch button.
  5. The Private Network details are added and displayed in the Networking tab.
    The instance now has a second network interface added that you can see using command:
# ip a

Configuring Private Network with DHCP active in your Leaseweb Private Network

Ubuntu 18 and later

Configure the new ethernet interface in netplan and enable dhcp on the instance.

  1. Login to the instance via SSH
  2. Open the netplan.yaml file with vi
# vi /etc/netplan/netplan.yaml
  1. Add eth1 network interface and enable dhcp in the netplan.yaml file, the file should look like this:
network:
  ethernets:
    eth0:
      dhcp4: true
    eth1:
      dhcp4: true
  version: 2
  renderer: networkd
  1. Save the file and apply the netplan change
To save the file press the ESC button, w and q then ENTER
 
Now make the netplan change:
# netplan apply
  1. The interface by default is not up and running, therefor you need to bring the interface up with command:
# ifconfig eth1 up

RHEL based OS

To create a new ethernet connection and enable dhcp use nmcli. 

  1. Login to the instance via SSH
  2. Create a new DHCP ethernet connection name eth1 with the following command:
# nmcli connection add con-name eth1 type ethernet ifname eth1 ipv4.method auto
  1. You should see the following output:
Connection 'eth1' (d416329d-ba96-4ff5-b23a-d0a0175a83f9) successfully added.
  1. Check the status of your connections with the following command:
# nmcli device status