Assign IPv6 for VM

thapana

New Member
Aug 25, 2020
1
0
1
37
Hi,
First of all thank you all the staff and community for this awesome product !
I am in
For being a fresh member, I met some problems, VM has assigned IPv6, but no route.

VM:
Code:
[root@localhost ~]# ip -6 ro
unreachable ::/96 dev lo metric 1024 pref medium
unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 pref medium
unreachable 2002:a00::/24 dev lo metric 1024 pref medium
unreachable 2002:7f00::/24 dev lo metric 1024 pref medium
unreachable 2002:a9fe::/32 dev lo metric 1024 pref medium
unreachable 2002:ac10::/28 dev lo metric 1024 pref medium
unreachable 2002:c0a8::/32 dev lo metric 1024 pref medium
unreachable 2002:e000::/19 dev lo metric 1024 pref medium
2604:x:x:x::/64 dev eth0 proto ra metric 100 pref medium
unreachable 3ffe:ffff::/32 dev lo metric 1024 pref medium
fe80::/64 dev eth0 proto kernel metric 100 pref medium
default via 2604:x:x:x::1 dev eth0 metric 1 pref medium
default via fe80::18b8:18ff:fe18:1f86 dev eth0 proto ra metric 100 pref medium
[root@localhost ~]#
-----
[root@localhost ~]# ping6 ipv6.google.com
PING ipv6.google.com(ord38s18-in-x0e.1e100.net (2607:f8b0:4009:804::200e)) 56 data bytes
^C
--- ipv6.google.com ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6146ms
[root@localhost ~]#


The host have /64 IPv6, it works well
I want to assign IPv6 for VM
I have installed radvd, proxy_ndp.
The main interface I use auto for IPv6, the gateway for IPv6 is 2604:x:x:x::/64

interfaces ipv6 part
---------
Code:
face enp2s0f0 inet6 auto
    dns-servers 2606:4700:4700::1111 2606:4700:4700::1001

auto vmbr0
iface vmbr0 inet6 static
    address 2604:x:x:x::1/64
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    post-up ip -6 route add 2604:x:x:x::/64 dev vmbr0

---------


sysctl.conf
-----
Code:
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.lo.forwarding = 1
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.default.proxy_ndp=1
net.ipv6.conf.all.proxy_ndp=1
-------

radvd.conf

-------
Code:
interface vmbr0 {
    AdvSendAdvert on;
    MinRtrAdvInterval 30;
    MaxRtrAdvInterval 100;
    prefix 2604:x:x:x::/64
    {
        AdvOnLink on;
        AdvAutonomous on;
        AdvRouterAddr on;
    };
    RDNSS 2606:4700:4700::1111 2606:4700:4700::1001    
    {
        AdvRDNSSLifetime 100;
        AdvRDNSSPreference 8;
    };
};

-----

How to correct?
Thanks in advance.
 
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!