Skip to content

Ubuntu/Debian Netplan Configuration for OVH vRack with Multiple IPv6 Subnets

  1. Backup Current Configuration

    • Before making any changes, back up your current Netplan configuration file.
    • Run the following command:
    Terminal window
    sudo cp /etc/netplan/50-cloud-init.yaml /etc/netplan/50-cloud-init.yaml.backup
  2. Find Your MAC Addresses and Note them somewhere.

    • Run the following command to list your network interfaces and their MAC addresses:
    Terminal window
    ip link show
    • Identify the MAC addresses of your two network interfaces (e.g., enp8s0f0 and enp8s0f1).
    • Note them down as you will need them for the Netplan configuration.
    • Example output:
    2: enp2s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:1a:4b:16:01:59 brd ff:ff:ff:ff:ff:ff
    3: enp2s0f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:1a:4b:16:01:5a brd ff:ff:ff:ff:ff:ff
    • Your main interface MAC: 00:1a:4b:16:01:59
    • Your private interface MAC: 00:1a:4b:16:01:5a
  3. Edit Netplan Configuration

    • Open the Netplan configuration file in a text editor:
    Terminal window
    sudo nano /etc/netplan/50-cloud-init.yaml

    Configuration Example for Single IPv6 /56 Subnet

    Section titled “Configuration Example for Single IPv6 /56 Subnet”

    This example assumes you have ordered the following IPv6 /56 subnets: 2001:db8:abcd:1200::/56 In netplan, you will configure the first /64 of each /56 subnet for your server. In Kraken, you will use the splitted /56 subnet as /57 /58 /59 /60 for your proxies.

    e.g.

    • 2001:db8:abcd:1280::/57
    • 2001:db8:abcd:1240::/58
    • 2001:db8:abcd:1220::/59
    • 2001:db8:abcd:1210::/60

    Replace the contents with the following configuration, making sure to replace the placeholders with your actual values:

    network:
    version: 2
    ethernets:
    enp2s0f0np0:
    match:
    macaddress: "00:1a:4b:16:01:59"
    enp2s0f1np1:
    match:
    macaddress: "00:1a:4b:16:01:5a"
    bonds:
    bond0:
    macaddress: "00:1a:4b:16:01:59" # Use the MAC address of your main interface
    interfaces:
    - enp2s0f0np0
    - enp2s0f1np1
    parameters:
    mode: 802.3ad
    lacp-rate: fast
    transmit-hash-policy: layer3+4
    mii-monitor-interval: 100
    addresses:
    - "192.168.2.64/30"
    - "2001:db8:abcd:1200::2/64"
    accept-ra: false
    routes:
    - on-link: true
    to: default
    via: "192.168.2.63"
    - on-link: true
    to: default
    via: "2001:db8:abcd:1200::1"
    nameservers:
    addresses:
    - 1.1.1.1
    - 2606:4700:4700::1111

    Configuration Example for Multiple IPv6 /56 Subnets

    Section titled “Configuration Example for Multiple IPv6 /56 Subnets”

    This example assumes you have ordered the following 4 IPv6 /56 subnets: 2001:db8:abcd:1200::/56, 2001:db8:afc6:2200::/56, 2001:db8:f679:f200::/56, 2001:db8:d458:e200::/56 In netplan, you will configure the first /64 of each /56 subnet for your server. In Kraken, you will use the splitted /56 subnet as /57 /58 /59 /60 for your proxies.

    e.g. (Same for all other /56 subnets)

    • 2001:db8:abcd:1280::/57
    • 2001:db8:abcd:1240::/58
    • 2001:db8:abcd:1220::/59
    • 2001:db8:abcd:1210::/60

    Replace the contents with the following configuration, making sure to replace the placeholders with your actual values:

    network:
    version: 2
    ethernets:
    enp2s0f0np0:
    match:
    macaddress: "00:1a:4b:16:01:59"
    enp2s0f1np1:
    match:
    macaddress: "00:1a:4b:16:01:5a"
    bonds:
    bond0:
    macaddress: "00:1a:4b:16:01:59" # Use the MAC address of your main interface
    interfaces:
    - enp2s0f0np0
    - enp2s0f1np1
    parameters:
    mode: 802.3ad
    lacp-rate: fast
    transmit-hash-policy: layer3+4
    mii-monitor-interval: 100
    addresses:
    - "192.168.2.64/30"
    - "2001:db8:abcd:1200::2/64"
    - "2001:db8:afc6:2200::2/64"
    - "2001:db8:f679:f200::2/64"
    - "2001:db8:d458:e200::2/64"
    accept-ra: false
    routes:
    - on-link: true
    to: default
    via: "192.168.2.63"
    - on-link: true
    to: default
    via: "2001:db8:abcd:1200::1"
    table: 201
    - on-link: true
    to: default
    via: "2001:db8:afc6:2200::1"
    table: 202
    - on-link: true
    to: default
    via: "2001:db8:f679:f200::1"
    table: 203
    - on-link: true
    to: default
    via: "2001:db8:d458:e200::1"
    table: 204
    routing-policy:
    - from: "2001:db8:abcd:1200::2/56"
    table: 201
    - from: "2001:db8:afc6:2200::2/56"
    table: 202
    - from: "2001:db8:f679:f200::2/56"
    table: 203
    - from: "2001:db8:d458:e200::2/56"
    table: 204
    nameservers:
    addresses:
    - 1.1.1.1
    - 2606:4700:4700::1111

    You can add more IPv6 /56 subnets by following the same pattern, or removing the additional subnets if you have less than 4 /56 subnets.

  4. Apply Network Configuration

    • Save the file and exit the text editor (in nano, press CTRL + X, then Y, then ENTER).
    • Apply the new Netplan configuration with the following command:
    Terminal window
    sudo netplan apply
  5. Activate Link Aggregation (LACP) in OVH Control Panel

    • Log in to the OVH Control Panel.
    • Navigate to the bare Metal Cloud → Dedicated Servers section and select your dedicated server.
    • Go to the “Network interfaces” tab.
    • Find the option to enable OLA OVHcloud Link Aggregation and activate it. (Mode: Private aggregation)
    • Wait for the changes to take effect. This may take a few minutes.

    ovh_ola

  6. Assign Server to vRack

    • Navigate to Network → vRack → YOUR_VRACK_NAME
    • Add your dedicated server to the vRack
    • Verify both your server and IP blocks appear on the right side under “Your vRack”
  7. Verify Network Connectivity From your PC: Ping your Server via its new IP.

    Terminal window
    ping 192.168.2.63

    If Successful connect via ssh to your Server.

    Terminal window
    ssh root@192.168.2.63

    Test IPv4

    Terminal window
    ping -c 3 8.8.8.8

    Test IPv6

    Terminal window
    ping -c 3 2001:4860:4860::8888
  8. Login to Kraken Webinterface and configure your IPv6 subnets as /57 /58 /59 or /60 subnet.

  9. Troubleshooting Optional

    If your Server does not come back online after applying the Netplan configuration and enabled Link Aggregation, you can navigate to the OVH Control Panel Bare Metal Cloud → Dedicated Servers → IPMI/KVM section and use the KVM console to access your server and check the Netplan config again.