IPv6 für VM nachträglich aktivieren

DerCedrik

Member
Jul 17, 2024
37
1
8
Hallo,

Ich möchte sehr gerne nachträglich für eine laufende VM IPv6 aktivieren/hinzufügen. In meinen Router hat diese VM zwar IPv6, zumindest hat mein Router eine zugewiesen. Jedoch ist mein Proxmox server ohne IPv6.
Ich habe das nach folgender Anleitung versucht zu machen, leider ohne Erfolg: Anleitung

Das habe ich in die sysctl.conf eingetragen:
net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv6.conf.all.forwarding=1

Mein Interface Eintrag sieht jetzt so aus:

Code:
auto lo
iface lo inet loopback


iface enp1s0 inet manual


auto eth0
iface eth0 inet6 static
        address 2a01:4f8:201:806b::2/128
        gateway fe80::1
        up sysctl -p


iface enp2s0 inet manual


iface enp3s0 inet manual


iface enp4s0 inet manual


auto vmbr0
iface vmbr0 inet static
        address 192.168.188.55/24
        gateway 192.168.188.1
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0


source /etc/network/interfaces.d/*

Danach haben alle weiteren Befehle nicht funktioniert. Und zwar folgende:

iface vmbr0 inet6 static
pre-up /sbin/modprobe -q ipv6 ; /bin/true
address 2a01:4f8:201:806b::3
netmask 64
up ip route add IP.v4.local.route dev vmbr0
up ip -6 route add 2a01:4f8:201:806b::/64 dev vmbr0

Meine Netzwerkkarte sieht jetzt so aus: (Restart habe ich gemacht)
1726500459383.png
 
Nach diesen Weg wird in meinen Router jetzt eine IPv6 Adresse angezeigt. Ich habe die jetzt in meiner Bridge so eingetragen:

1726503815591.png

Ist es damit erledigt?
 
Ich habe noch ein Youtube Video gefunden mit einen anderen Ansatz. Würde es auch so gehen oder ist das zu spezifisch?
https://www.youtube.com/watch?v=GhaGO83VIz0

Der Hauptgrund warum ich das machen möchte ist derer, dass ich meine Home Assistant VM mit meinen Thread Netzwerk Border Router (Echo 4) verbinden möchte. Dies geht nur über IPv6 und da es nicht funktioniert habe ich proxmoxx in Verdacht.

Aber laut proxmoxx hat mein Weg anscheinend Funktioniert und es gibt eine IPv6 Adresse:

1726646996505.png

Wobei kurioserweise sind das mehrere:

Einmal Proxmox Homeassistant
1726647099811.png

Homeassistant in meiner Fritz box:
1726647341326.png

Proxmoxx Server selber im ganzen, also pve
1726647398400.png

Proxmox Server in meiner Fritz box (Keine IPv6 Adresse zugewiesen)
1726647476840.png
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!