Howdy, Stranger!

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


How to setup ipv6 on Proxmox on Naranja.tech server? They only give a:b:c:d::1/64 in their panel.
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.

How to setup ipv6 on Proxmox on Naranja.tech server? They only give a:b:c:d::1/64 in their panel.

stonedstoned Member
edited December 2022 in Help

Naranja.tech server, I am trying to setup ipv6, they give only a subnet like a:b:c:d::1/64 in their panel. How would I find out the gateway for it?

They don't seem to have any other documentation available.

Comments

  • Ticket and ask them?

  • The gateway will be a:b:c::1 (the /48).

    You can do something like:

    ip -6 route add a:b:c::1 dev eth0
    ip -6 route add default via a:b:c::1
    
    Thanked by 1stoned
  • Oh it's the /48. I got it now. Thanks! I opened a ticket for nothing. I'll close it. Don't like to bother support people too much so I asked here first. Much appreciated. It's good now.

  • stonedstoned Member
    edited December 2022

    I've installed proxmox on the server. I've got ipv6 and gateway. I can ping6 google from within the host.

    I setup lxc container
    I give it another ipv6, like a:b:c:d::2/64, I set gateway as a:b:c::1

    I get Destination unreachable: Address unreachable

    So I installed ndppd on the host, thinking they may not be routing at their end, configured ndppd to route, created a ::2 on their panel in the subnet as another ip, gave the ::2 ip to the container with ::1 as the gateway, and I get address unreachable.

    Host can ping container ipv6
    The container cannot ping the host ipv6 at ::1.

    Anyone have idea of how naranja.tech ipv6 routes?

  • MaouniqueMaounique Host Rep, Veteran
    edited December 2022

    Check if forwarding is working for ipv6. Also, how did you bridge the VM? PM me your config to take a look.

    Thanked by 1stoned
  • auto lo
    iface lo inet loopback
    
    iface ens3 inet manual
    
    auto vmbr0
    iface vmbr0 inet static
            address 1.2.3.4/24
            gateway 1.2.3.1
            bridge-ports ens3
            bridge-stp off
            bridge-fd 0
    
    iface vmbr0 inet6 static
            address a:b:c:d::ffff/128
            gateway a:b:c::1
    
            post-up sleep 5; ip -6 route add a:b:c::1 dev vmbr0
            post-up sleep 5; ip -6 route add default via a:b:c::1
    
            pre-down ip -6 route del default via a:b:c::1
            pre-down ip -6 route del a:b:c::1 dev vmbr0
    
            post-up echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp
            post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
            post-up echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
    
    auto vmbr1
    iface vmbr1 inet static
            address 192.168.1.0/24
    
            bridge-ports none
            bridge-stp off
            bridge-fd 0
    
            post-up echo 1 > /proc/sys/net/ipv4/ip_forward
            post-up iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o vmbr0 -j MASQUERADE
            post-down iptables -t nat -D POSTROUTING -s 192.168.1.0/24 -o vmbr0 -j MASQUERADE
    
    iface vmbr1 inet6 static
            address a:b:c:d::1/64
    

    vmbr0 at a:b:c:d::ffff
    vmbr1 at a:b:c:d::1

    Attatch containers/VMs to vmbr1, use any ipv6 in your /64, and use vmbr1's ipv6 a:b:c:d::1 as the gateway.

    Then use ndppd: /etc/ndppd.conf

    route-ttl 30000
    proxy vmbr0 {
            router yes
            timeout 500
            ttl 30000
            rule a:b:c:d::/64    {
                    static
            }
    }
    

    This in sysctl.conf

    net.ipv6.conf.all.autoconf=0
    net.ipv6.conf.all.accept_ra=0
    net.ipv4.ip_forward=1
    net.ipv6.conf.all.forwarding=1
    

    And LXC container seem to have ipv4 and ipv6 now.

Sign In or Register to comment.