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.
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
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
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
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
Add a IPv6 nameserver, maybe.
gateway6
must be in the same subnet as one of the addresses.If it's not, you must specify the gateway using
routes
key withon-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.
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.
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.
Blame that on my poor eyesight, I could swear that there was no "show configuration details" button on their panel