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.
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
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 ?
Its a dedicated server from hetzner (ax-51), they come with a /64
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.
Kvm vps are on the same machine and have only a private ip for now
Can you point to a tutorial for that part or a samplr script ?
Thanks
Lets say the /64 Subnet you got is this:
That's the Subnet:
That's the bridge:
That's your VM:
That's what ndppd would look like:
Or do it without a different subnet:
https://wiki.x8e.net/doku.php?id=proxmox_ipv6
my old config.