Howdy, Stranger!

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


IPv6 Routed Subnet on Proxmox (Hetzner)
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.

IPv6 Routed Subnet on Proxmox (Hetzner)

lala_thlala_th Member

Hi there, someone gets the Routed IPv6 subnet working on Proxmox?

Can you please help me with this setup?

Comments

  • If you want to use it for VMs inside Proxmox you might be out of luck because Hetzner doesn't allow you to split the IPv6 subnet on most servers.

  • RickBakkrRickBakkr Member, Patron Provider, LIR
    edited July 2022

    iirc they route the /64 on the second IP (::1).

    Thus change netmask on the physical interface to a /127, and set a different IP with /64 subnet mask on the bridge. You can then use all IPs in the /64 , except for the /127, on VMs. The IP you set on the bridge is your gateway (as seen from within the VM).

    Edit: I found this config working on one of my Proxmox nodes in Hetzner;

    Feel free to take some inspiration :-)

    iface enp2s0 inet6 static
      address 2a01:4f8:FF:FFFF::2
      netmask 128
      gateway fe80::1
    
    ...
    
    iface vmbr0 inet6 static
            address 2a01:4f8:FF:FFFF::2
            netmask 64
    
    Thanked by 2lala_th Abd
  • Hi, i've got a /29 subnet going with Hetzner. Their Proxmox configurations guide are actually quite good in that you can copy and paste and replace just the Network interface name and IP addresses. You have to set routes when you configure the vmbr0 bridge and then you also have to add routes to the corresponding host machine - definitely for the VM's but also for the LXC containers even if you can SSH into the container.
    The Promox guide gives the instructions for /etc/network/interfaces but if the guest machine is using Netplan then you have to replace 'pointopoint' with on-link in the Netplan configuration. Like so
    routes:
    - to: 0.0.0.0/0
    via: (Your guest main IP address)
    on-link: true
    Make sure you get the tabs correct in the Netplan.
    When you have configured the Netplan enter 'neplan try' in the command line to see if it works before rebooting etc.
    Hope this helps and best of luck

  • AbdAbd Member, Patron Provider
    edited July 2022

    iirc they route the /64 on the second IP (::1).

    Thus change netmask on the physical interface to a /127, and set a different IP with /64 subnet mask on the bridge. You can then use all IPs in the /64 , except for the /127, on VMs. The IP you set on the bridge is your gateway (as seen from within the VM).

    Edit: I found this config working on one of my Proxmox nodes in Hetzner;

    Feel free to take some inspiration :-)

    iface enp2s0 inet6 static
      address 2a01:4f8:FF:FFFF::2
      netmask 128
      gateway fe80::1
    
    ...
    
    iface vmbr0 inet6 static
            address 2a01:4f8:FF:FFFF::2
            netmask 64
    

    We use same ^ I can confirm it works

  • I made it another way (IPs anonymized):

    auto eth0 inet static
    
    auto vmbr0
    iface vmbr0 inet static
            address 192.168.59.84/24
            gateway 192.168.59.1
            post-up ip -6 a a fe80:2a03:2222::/64 dev vmbr0
            post-up ip -6 r a default via fe80:2a03:2222::1
    # IPv6
            bridge_ports eth0
            bridge_stp off
            bridge_fd 0
    
  • Sorry - re: earlier post - I didn't register the IPV6 bit! I was just a little enthusiastic having just cracked it!

  • RickBakkrRickBakkr Member, Patron Provider, LIR

    Looks fine. Are the subnets correct, and did you enable v6 forwarding in sysctl?

  • lala_thlala_th Member
    edited July 2022

    @RickBakkr Yeah, but no lucky :(

  • AbdAbd Member, Patron Provider
    edited July 2022

    does the IPv6 work on host node ?

    also,
    echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
    echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
    echo 1 > /proc/sys/net/ipv6/conf/default/forwarding

  • @Abd said:

    does the IPv6 work on host node ?

    also,
    echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
    echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
    echo 1 > /proc/sys/net/ipv6/conf/default/forwarding

    Unfortunately not. Can I PM you or @RickBakkr ?

  • AbdAbd Member, Patron Provider

    @lala_th said:

    @Abd said:

    does the IPv6 work on host node ?

    also,
    echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
    echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
    echo 1 > /proc/sys/net/ipv6/conf/default/forwarding

    Unfortunately not. Can I PM you or @RickBakkr ?

    Yeah. :)

  • RickBakkrRickBakkr Member, Patron Provider, LIR

    @lala_th said: Unfortunately not. Can I PM you or @RickBakkr ?

    If our good pal Abdullah can't help, please DM me for my SSH key and I'll configure it for you free of charge :-)

    Thanked by 1Not_Oles
Sign In or Register to comment.