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

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
  3. 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
  4. 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
  5. The interface by default is not up and running, therefor you need to bring the interface up with command:

    # ifconfig eth1 up

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
  3. You should see the following output:

    Connection 'eth1' (d416329d-ba96-4ff5-b23a-d0a0175a83f9) successfully added.
  4. Check the status of your connections with the following command:

    # nmcli device status


Get Support

Need Technical Support?

Have a specific challenge with your setup?

Create a Ticket