Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Configuring IPv6 on a Hosthatch VPS
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Configuring IPv6 on a Hosthatch VPS

bulbasaurbulbasaur Member
edited May 2021 in General

I've been trying to configure IPv6 on a Hosthatch VPS running Ubuntu 20.04, but to no avail.

Their support is not the best and tried to give me standard documentation about netplan when I tried asking them, followed by gateway settings that don't work. The "reconfigure networking" is broken and places a IPv4 only /etc/network/interfaces file even when an IPv6 address has been added through their panel :joy:

Here's the configuration that I have:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      accept-ra: no
      addresses:
        - 153.92.127.xxx/24
        - 2a01:6f0:ffff:xxxx::xxxx/64
      gateway4: 153.92.127.1
      gateway6: 2a01:6f0:ffff::1
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

The configuration seems like it should work but here's what happens when I try to connect to a IPv6 host:

$ curl -v6 ipv6.icanhazip.com
*   Trying 2606:4700:10::ac43:98a:80...
* TCP_NODELAY set
* Immediate connect fail for 2606:4700:10::ac43:98a: Network is unreachable
*   Trying 2606:4700:10::6816:13bc:80...
* TCP_NODELAY set
* Immediate connect fail for 2606:4700:10::6816:13bc: Network is unreachable
*   Trying 2606:4700:10::6816:12bc:80...
* TCP_NODELAY set
* Immediate connect fail for 2606:4700:10::6816:12bc: Network is unreachable
* Closing connection 0
curl: (7) Couldn't connect to server

Has anyone managed to get IPv6 working? If so, please let me know how you got it working?

Comments

  • codelockcodelock Member
    edited May 2021

    First you have assign a random ipv6 address from subnet they alloted you in the control pannel, then reboot server
    Then edit etc/network/interfaces to look like

    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address redacted
    gateway redacted
    netmask 255.255.255.0
    dns-nameservers 8.8.8.8 8.8.4.4
    iface eth0 inet6 static
    address ipaddressyouassigned
    netmask 48
    gateway gatewayipasseenincontrolpannel

    Be sure to set netmask as 48

    Restart networking or reboot

    Sorry for formatting on Mobile

    Thanked by 1bulbasaur
  • didogdidog Member

    Add a IPv6 nameserver, maybe.

  • yoursunnyyoursunny Member, IPv6 Advocate

    @stevewatson301 said:
    Here's the configuration that I have:

    network:
      ethernets:
        ens3:
          addresses:
            - 2a01:6f0:ffff:xxxx::xxxx/64
          gateway6: 2a01:6f0:ffff::1
    

    gateway6 must be in the same subnet as one of the addresses.
    If it's not, you must specify the gateway using routes key with on-link: true.
    How to Select Default IPv6 Source Address for Outbound Traffic with Netplan has an example.

    Also, be careful writing "ens3" as Interface name.
    See Disabling VNC in Virtualizor ⇒ Lost Connectivity? for a case when it caused trouble.

    Thanked by 1bulbasaur
  • bulbasaurbulbasaur Member
    edited May 2021

    @yoursunny said: gateway6 must be in the same subnet as one of the addresses.

    @codelock said: Be sure to set netmask as 48

    Thanks, this was my issue. The entire subnet had to be used (/48), I had confused it with the subnet assigned to me (/64). Once I updated it to /48, I had IPv6 working.

  • DPDP Administrator, The Domain Guy

    :D

    Thanked by 1skorous
  • yoursunnyyoursunny Member, IPv6 Advocate

    @thedp said:

    Enlarging the subnet from /64 to /48 could cause reachability problems with other addresses in the same /48 subnet.
    This depends on router and ebtables configuration.

  • @thedp said:

    :D

    Blame that on my poor eyesight, I could swear that there was no "show configuration details" button on their panel :tongue:

Sign In or Register to comment.