NavigationContentFooter
Jump toSuggest an edit

Scaleway Dedibox RPN - Quickstart

Reviewed on 26 August 2024Published on 26 May 2021

RPN (Real Private Network) establishes a dedicated, secure connection through your server’s secondary network interface. It allows you to seamlessly transfer data among your servers via a controlled, private network.

With exceptional performance characterized by minimal latency and support for jumbo frames, this network ensures swift communication between your servers. Effortlessly organize your servers within your Private Network with just a few clicks, irrespective of their quantity or physical locations.

RPNv2 offers unparalleled flexibility, enabling you to construct your architecture within a secure, isolated environment. You have complete control, allowing for the setup of custom VLANs, IP address ranges, subnets, routing tables, and network gateways.

Furthermore, RPN v2 facilitates the configuration of robust security measures to manage your RPN. Segment your infrastructure by creating distinct public and private groups, ensuring that your web server applications are publicly accessible while keeping backend applications secluded from internet access.

Before you start

To complete the actions presented below, you must have:

  • A Dedibox account logged into the console
  • A Dedibox dedicated server with RPNv2 connectivity

How to create an RPNv2 group

  1. Click on RPN > RPN groups in the menu on top of the console. Then click Local RPNv2 groups in the menu on the left. The RPNv2 groups page displays.
  2. Click Add group. The add RPNv2 groups form displays.
  3. Select the type of the group. It can either be Standard or Q-in-Q. Then enter the name of the group and select the servers to add to the group. Click Submit to confirm.
    Note

    A VLAN ID is assigned automatically during the group creation. It is possible to modify the VLAN ID with values between 1 and 3967.

How to configure the RPN interface

Below you find configuration instructions for the most common operating systems. For more information, refer to our how-to about RPNv2 interface configuration.

How to configure RPNv2 on Debian

  1. Install the vlan package by running the following command:
    sudo apt-get install vlan
  2. Edit your /etc/network/interfaces file as follows (assuming your RPN NIC is eth1 and your VLAN ID is 3900):
    auto eth1.3900
    iface eth1.3900 inet static
    address my.pri.vate.address
    netmask my.custom.net.mask

How to configure RPNv2 on Ubuntu

Note

The following configuration example uses Netplan. If you are using a classic network configuration, refer to the Debian documentation.

network:
version: 2
renderer: networkd
ethernets:
mainif:
match:
macaddress: "de:ad:be:ef:ca:fe"
set-name: mainif
addresses: [ "10.3.0.5/23" ]
gateway4: 10.3.0.1
nameservers:
addresses: [ "8.8.8.8", "8.8.4.4" ]
search: [ example.com ]
vlans:
vlan15:
id: 15
link: mainif
addresses: [ "10.3.99.5/24" ]

How to configure RPNv2 on CentOS

In the following ‘how to’ we assume your RPN NIC is eth1.

  1. Create a configuration file for the parent interface, called /etc/sysconfig/network-scripts/ifcfg-eth1:
    DEVICE=eth1
    TYPE=Ethernet
    BOOTPROTO=none
    ONBOOT=yes
  2. Create another file for the vlan interface (assuming the VLAN ID is 3900). The file is called /etc/sysconfig/network-scripts/ifcfg-eth1.3900:
    DEVICE=eth1.3900
    BOOTPROTO=none
    ONBOOT=yes
    IPADDR=my.pri.vate.address
    PREFIX=CIDR.Netmask
    NETWORK=my.private.address.0
    VLAN=YES

How to configure Jumboframes

The RPN supports Jumboframes with a maximum payload of 9000 bytes. You need to configure your RPN interface to send pacekets with an MTU 9000. For more information, refer to our how-to: Configuration of Jumboframes.

CentOS

  1. Open the file /etc/sysconfig/network-scripts/ifcfg-ethX, where X is the number of your interface, in a text editor. Then add the following line to it:
    MTU="9000"
  2. Restart the network service:
    service network restart

Debian

  1. Open the file /etc/network/interfaces in a text editor and insert mtu 9000 below the line iface ethX inet static:
    auto ethX
    iface ethX inet static
    mtu 9000
    [...]
  2. Restart the network service:
    service network restart

Ubuntu

  1. Open the Netplan configuration file /etc/netplan/01-netcfg.yaml in a text editor and add the line mtu: 9000 in the configuration of the RPN interface:
    ethernets:
    enp3s0:
    dhcp4: true
    enp4s0:
    addresses:
    - 192.168.0.10/24
    gateway4: 192.168.0.1
    mtu: 9000
    nameservers:
    addresses:
    - 1.1.1.1
    - 2.2.2.2
  2. Save the file, exit the text editor, and reload the network configuration:
    sudo netplan apply
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway