Howdy, Stranger!

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


Does anyone knows how to use /48 ipv6 subnet from anynode.net?
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.

Does anyone knows how to use /48 ipv6 subnet from anynode.net?

I got a new VPS from anynode.net and they gave me a /48 ipv6 block. This is what my interfaces looks like on Debian

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The normal eth0
allow-hotplug eth0
iface eth0 inet dhcp

# Additional interfaces, just in case we're using
# multiple networks
allow-hotplug eth1
iface eth1 inet dhcp

allow-hotplug eth2
iface eth2 inet dhcp

# Set this one last, so that cloud-init or user can
# override defaults.
source /etc/network/interfaces.d/*

This is something new to me as I always generated IPv6 in control panel for years. Is there any user who can share the config file with me so that I can use the subnet. There are no IPv4 or IPv6 listed or any gateway information. IPv6 is not working right now. Also I would like to use Wireguard later on, it would be nice to get some information on how to get a subnet for Wireguard

Comments

  • hzrhzr Member

    /etc/netplan/netplan.yaml

    network:
        version: 2
        ethernets:
            eth0:
                addresses:
                - 2001:db8::YOURIP/48
                - 2001:db8::YOURIP/48
                - 2001:db8::YOURIP/48
                gateway6: 2001:your:gateway
                match:
                    macaddress: interface:mac:address # do 'ip a' to show mac
                set-name: eth0
    
    
  • edited October 2020

    Thanks, how can I make couple of /64 subnets to use from 2605:1111:1111::/48

  • hzrhzr Member

    oh sorry, you are on debian with legacy style etc/network/interfaces

    you can probably add something like post-up ip -6 a 2605:111::/48 dev eth0

    you don't need to make, just end in /48

  • Yes I use Debian 10

  • /etc/network/interfaces for an address from a /48 block. Check the CP (e.g. SolusCP) for what values to insert.

    iface eth0 inet6 static
       address 2602:xx:yy::1
       netmask 48
       gateway 2602:gateway
    

    For WireGuard with IPv6 addresses allocated from the block, you need to check if your provider offers routed ipv6 addresses (you are in luck) or just on-link ipv6.

    1. If routed, just assign the ipv6 address in the WireGuard config.
    2. If on-link, you have to ask your provider to disable ebtables (assuming kvm). You will then have to enable ndp proxy and proxy your WireGuard assigned ipv6 address through eth0, so that your provider’s router is able to route the ipv6 data.
  • anyNodeanyNode Member, Host Rep

    Hello,

    Do you have a ticket open? I am guessing you do I shall handle today :)

  • derekyangderekyang Member
    edited October 2020

    I also having issue to setup the ipv6
    Anyone successfully setup via netplan? thanks in advance

    network:
        ethernets:
            ens3:
                dhcp4: true
                dhcp6: false
                match:
                    macaddress: xxxxxxxxxx
                addresses:
                        - 2604:5040:xxx::1/48
                gateway6: 2604:5040::1
                routes:
                        - to: 2604:5040::1
                          scope: link
                set-name: ens3
        version: 2
    
  • anyNodeanyNode Member, Host Rep

    hey @derekyang feel free to hop in our discord or open a ticket but use a netmask of /32 :) any further issues please reach out to me directly

Sign In or Register to comment.