Activating Public IPv6 on My Ubuntu Server VPS at Netcup?

  • I have a VPS account running Ubuntu Server 24.04 LTS on Netcup.


    However, upon checking the Network section in my vServer installation,


    I noticed that only IPv4 is active, while my active public IPv6 is not being utilized.


    Could you kindly guide me on how to enable public IPv6 on my server?


    Some information might be helpful:


    Code
    root@account# host -t AAAA ipv6.api.cloudron.io
    ipv6.api.cloudron.io has IPv6 address 2604:a880:800:10::b66:f001
    
    root@account# curl -6 https://ipv6.api.cloudron.io/api/v1/helper/public_ip
    curl: (7) Failed to connect to ipv6.api.cloudron.io port 443 after 1 ms: Couldn't connect to server


    This is my network setting on SCP:

    Code
    IPv4
    IP    Gateway / Routing to    rDNS    Action
    152.53.124.201/22    152.53.124.1
    
    
    IPv6
    IP    Gateway / Routing to    Action
    2a0a:4cc0:c0:5a89::/64    fe80::1

    And this is my configuration follow this tutorial >> https://helpcenter.netcup.com/en/wiki/server/ip/


    Code
    #nano /etc/network/interfaces
    
    iface ens3 inet6 static address 2a0a:4cc0:c0:5a89::1/64 gateway fe80::1
    iface ens3 inet6 static address 2a0a:4cc0:c0:5a89::2/64 gateway fe80::1
    iface ens3 inet6 static address 2a0a:4cc0:c0:5a89:6402:c6ff:fe47:60bd/64 gateway fe80::1


    I appreciate your assistance and look forward to your directions.


    Thank you.

    Regards

  • I followed this tutorial https://helpcenter.netcup.com/en/wiki/server/ip/ but it seems there's no effect at all.


    Last time I tried the netplan, my server went down. ;(


    And I can't revert the configuration.

    Before I apply the rules of the netplan.


    Could you give me a tutorial on how to set up the netplan wisely and make a backup plan if the netplan goes wrong?

  • Doesn't cloudron has options for changing the network settings of your VPS?

    Yes, there's an option to enable IPv6.


    But when I try to set the IPv6 the Cloudron system can't detect the IP.


    My IPv6 address is not configured properly on my vServer.


    I check with this command:


  • Your IPv6 address space isn't assigned to your server via DHCPv6 or other means. You will have to set a static address (or multiple) in Netplan.

    Please do not follow the tutorial you have linked, it's for different distributions.


    Could you give me a tutorial on how to set up the netplan wisely and make a backup plan if the netplan goes wrong?

    The links I have posted above should be plenty for a basic configuration but Netplan can feel a bit overwhelming at first. Log in to the SCP and open the VNC console of your server. There you can edit your /etc/netplan without worrying about losing access. In case you need more help feel free to post the configuration you have tried here. :)

  • Your IPv6 address space isn't assigned to your server via DHCPv6 or other means. You will have to set a static address (or multiple) in Netplan.

    Please do not follow the tutorial you have linked, it's for different distributions.


    The links I have posted above should be plenty for a basic configuration but Netplan can feel a bit overwhelming at first. Log in to the SCP and open the VNC console of your server. There you can edit your /etc/netplan without worrying about losing access. In case you need more help feel free to post the configuration you have tried here. :)

    Okay, I am trying to create the code based on what ChatGPT has created:

    And this is from DeepSeek:

    I don't know which code I should choose. :)

    Would you mind giving me some advice?

    Thank you.

  • I don't know which code I should choose. :)

    Would you mind giving me some advice?

    Both are wrong. Take a look at the documentation and what Netcup is giving you as the Network Settings in the SCP.


    The ChatGPT one has the wrong default route for IPv6. I'm pretty sure the SCP states fe80::1 as your gateway.

    The DeepSeek one is missing the IPv4 default route / gateway.

  • I don't know which code I should choose. :)
    Would you mind giving me some advice?

    Sure thing. NEVER EVER rely on "AI" for this in the first place. Your preferred search engine should point you to one or more how-tos/manuals (that is, if "man netplan" does not immediately point you to examples written by humans as expected). Read those and learn about the basics. For settings specific to Netcup, both the wiki and this forum should already contain numerous explanations.

    VServer IOPS Comparison Sheet: https://docs.google.com/spreadsheets/d/1w38zM0Bwbd4VdDCQoi1buo2I-zpwg8e0wVzFGSPh3iE

    Edited once, last by m_ueberall ().

    Like 6
  • Both are wrong. Take a look at the documentation and what Netcup is giving you as the Network Settings in the SCP.


    The ChatGPT one has the wrong default route for IPv6. I'm pretty sure the SCP states fe80::1 as your gateway.

    The DeepSeek one is missing the IPv4 default route / gateway.

    Thank you for the correction. I will try to understand the documentation.


    Maybe I am a little confused about the network etc.

    Here's my code based on this tutorial >> https://black.host/hc/ipv6/set…buntu-24-04-with-netplan/

    But I am confused because 2 tutorial (https://askubuntu.com/question…config-with-ipv4-and-ipv6) shows different code, like below:


    Code
          critical: true
          dhcp-identifier: mac
          dhcp4: false


    Should I add the code above? and it's like conflict on dhcpt4: should be true or false.


    Thank you.

  • Should I add the code above? and it's like conflict on dhcpt4: should be true or false.

    It is most definitely a conflict. The black host tutorial doesn't set a static IPv4 address and uses DHCP instead.

    Since you want to set a static IPv4 address, you should disable DHCP.

  • It is most definitely a conflict. The black host tutorial doesn't set a static IPv4 address and uses DHCP instead.

    Since you want to set a static IPv4 address, you should disable DHCP.

    Alhamdulillah for all the blessings bestowed upon us. I sincerely thank the kind-hearted individuals who assisted me throughout this setup process—may Allah reward your generosity. <3


    I’m pleased to share that my server now supports IPv6, and I hope this thread serves as a useful reference for enabling IPv6 on an Ubuntu 24.04 server.

    As someone who isn’t an IT expert or well-versed in networking, I found the technical aspects challenging. Your kindness, patience, and clear explanations were invaluable, especially after an initial setback when my server went down.


    After reinstalling and restoring hundreds of gigabytes of data—a process that took considerable time—Alhamdulillah, everything is working perfectly. Thank you for sharing your knowledge and experience. May Allah reward your efforts, guide us all towards goodness, and continuously connect us with good people wherever we may be. :)


    cc: @H6G; @Valkyrie; @m_ueberall