Jump toUpdate content

How to configure the RPNv2 on a Dedibox

Reviewed on 16 July 2021Published on 16 July 2021

RPNv2 can be configured on any operating system, supporting VLANs, available for Dedibox servers.

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 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 RPNv2 on FreeBSD

Edit your /etc/rc.conf file, assuming ix0 is your RPN NIC, and 3900 your VLAN ID:

ifconfig_ix0="up"
cloned_interfaces="vlan3900"
ifconfig_vlan3900="inet my.pri.vate.IP/CIDR.NETMASK vlan 3900 vlandev ix0"

Do not forget to adapt the VLAN ID, Interface Name, and Network configuration to your needs.

How to configure RPNv2 on ESXi

On ESXi you can create virtual switches that talk directly on the corresponding VLAN ID.

  1. Check your network interfaces, to discover which one corresponds to the RPN interface. In the following example, the RPN interface is vmnic2.

  2. Enter the Virtual switch section and add a new one by clicking Add standard virtual switch:

  3. Enter a name for the virtual switch, set the MTU to 9000 and select the RPN interface as uplink:

  4. Click the Port groups tab and click Add port group to create a new one:

  5. Enter a name for the new port group and set the VLAN IP, then select the virtual switch and click Add.

The virtual switch is configured now.

Create a NIC directly linked on your new Group (VM Network in the example above) and configure it in your virtual machine using your address-plan.

Tip:

No VLAN Configuration is required in your VM, everything is handled in your vSwitch directly.

How to configure RPNv2 on Proxmox

  1. Login to the Proxmox web interface anc click System > Network.

  2. Click Create on the network page.

  3. Configure your bridge with a bridge_port which will be named after your RPN NIC, and your VLAN ID.

    Tip:

    For instance, if your RPN NIC is eth2 and your VLAN ID 3900, name it eth2.3900.

See Also