Howdy, Stranger!

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

Advertise on LowEndTalk.com
How to route one ipv6 address from a /64 to a kvm?
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

How to route one ipv6 address from a /64 to a kvm?

Hey guys,
I don't use proxmox or virtualizor or anything else. I'm doing some R&D with FaaS (aws firecracker) and I need a simple way (iptable?) to route one ipv6 address from a /64 to a kvm instance.

Let's say I have 3 kvm (10.0.0.1 to 10.0.0.3) and I want to route for each of them a public ipv6 address from the host containing the 3 kvm.

How can I do that in the simplest way possible?

Thanks for your advices :)

Comments

  • ClouviderClouvider Member, Provider

    That depends on the subnet configuration.
    Is the subnet route to you over say a link /126 IPv6 or is it on your ISPs interface and you just “add” IPs on the interface ?

    Clouvider Limited - Leading Hosting Provider & Connectivity Partner || Dedicated Server Sale - Our Latest LET Offer

    Cloud Web Hosting | SSD & SAS HA OnApp VPS | UK, NL & DE Dedicated Servers | Network Services | Colocation | Managed Services

  • Its a dedicated server from hetzner (ax-51), they come with a /64

  • Mr_TomMr_Tom Member, Provider

    Are you trying to route the address to a KVM VPS on that machine? Or another server?

  • Hetzner gives you a /64 by default.
    So everything what you need is take example a /80 out of that /64 and configure the bridge which the VM is using.

    You can use tools like this one:
    https://subnettingpractice.com/ipv6_subnetting.html

    Afterwards, you just configure the IPv6 from that subnet on the VM.
    Regarding the neighbour discovery protocol, you can proxy these requests for every single IPv6 or just use ndppd for that.

  • @Mr_Tom said:
    Are you trying to route the address to a KVM VPS on that machine? Or another server?

    Kvm vps are on the same machine and have only a private ip for now

  • Afterwards, you just configure the IPv6 from that subnet on the VM.
    Regarding the neighbour discovery protocol, you can proxy these requests for every single IPv6 or just use ndppd for that.

    Can you point to a tutorial for that part or a samplr script ?
    Thanks

  • NeoonNeoon Member
    edited November 2019

    Lets say the /64 Subnet you got is this:

    2001:DB8:ABCD:12::/64

    That's the Subnet:

    2001:db8:abcd:12:1::/80

    That's the bridge:

    auto vmbr0
    iface vmbr0 inet6 static
    address 2001:db8:abcd:12:1::1
    netmask 80
    bridge-ports none
    bridge-stp off
    bridge-fd 0

    That's your VM:

    iface eth0 inet6 static
    address 2001:db8:abcd:12:1::5/80
    gateway 2001:db8:abcd:12:1::1

    That's what ndppd would look like:

    route-ttl 30000
    proxy eth0 {
    router no
    timeout 500
    ttl 30000
    rule 2001:DB8:ABCD:12::/64 {
    static
    }
    }

    Thanked by 2angelius Shot2
  • Or do it without a different subnet:
    https://wiki.x8e.net/doku.php?id=proxmox_ipv6

    my old config.

    Thanked by 1angelius
Sign In or Register to comment.