IPv6 howto?

informant

Renowned Member
Jan 31, 2012
793
10
83
Hi all, we have look in forum and found a howto to add ipv6 to proxmox.

we have do following:
Code:
sysctl -w net.ipv6.conf.all.forwarding=1
than add ip:
Code:
ip -6 ro add 2a02:238:f019:412::/64 dev vmbr0
than add gateway:
Code:
ip -6 ro add default via 2a02:238:f019:401:2a0:57ff:fe14:86f5 dev vmbr0
than we have check it via ping6 to 2001:4860:4860::8888, and here we have not response:
Code:
From fe80::21a:4bff:feaf:8cd2 icmp_seq=2 Destination unreachable: Address unreachable

what we can do here? do you have a idea, please?

route -6
Code:
Destination                    Next Hop                   Flag Met Ref Use If
2a02:238:f019:401::/64         ::                         UAe  256 0  3089 vmbr0
2a02:238:f019:412::/64         ::                         U    1024 0     0 vmbr0
fe80::1/128                    ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth1
fe80::/64                      ::                         U    256 0     0 vmbr0
fe80::/64                      ::                         U    256 0     0 vmbr1
fe80::/64                      ::                         U    256 0     0 venet0
fe80::/64                      ::                         U    256 0     0 veth5131.0
fe80::/64                      ::                         U    256 0     0 veth5131.1
::/0                           2a02:238:f019:401:2a0:57ff:fe14:86f5 UG   1024 0    11 vmbr0
::/0                           ::                         !n   -1  1  3687 lo
::1/128                        ::                         Un   0   1    28 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::1/128                    ::                         Un   0   1     0 lo
fe80::21a:4bff:feaf:8cd0/128   ::                         Un   0   1     0 lo
fe80::21a:4bff:feaf:8cd0/128   ::                         Un   0   1     0 lo
fe80::21a:4bff:feaf:8cd2/128   ::                         Un   0   1    39 lo
fe80::21a:4bff:feaf:8cd2/128   ::                         Un   0   1     0 lo
fe80::4010:9aff:fe48:5664/128  ::                         Un   0   1     0 lo
fe80::8057:9eff:feeb:e2ee/128  ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 eth1
ff00::/8                       ::                         U    256 0     0 vmbr0
ff00::/8                       ::                         U    256 0     0 vmbr1
ff00::/8                       ::                         U    256 0     0 venet0
ff00::/8                       ::                         U    256 0     0 veth5131.0
ff00::/8                       ::                         U    256 0     0 veth5131.1
::/0                           ::                         !n   -1  1  3687 lo


ifconfig
Code:
vmbr0     Link encap:Ethernet  Hardware Adresse 00:1a:4b:af:8c:d2
          inet6-Adresse: fe80::21a:4bff:feaf:8cd2/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:768197306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:715983159 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:244552139663 (227.7 GiB)  TX bytes:458624052289 (427.1 GiB)

Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:1a:4b:af:8c:d2
          inet6-Adresse: fe80::21a:4bff:feaf:8cd2/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:1153429039 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1091940765 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:505932658441 (471.1 GiB)  TX bytes:707306503846 (658.7 GiB)

what can we do here? hope for help. thanks and regards
 
You didnt add an ip, you added a route:

> ip -6 ro add 2a02:238:f019:412::/64 dev vmbr0

you never assigned an actual address to your interface, and you don't seem to have autoconf... you cant route traffic from the fe80 addresses as they're for link-local purposes only
 
Hi,

thanks for reply,

if i add as ipv6 [FONT=&amp]2a02:238:f019:412:1:1:1:1 i have the same issue.

how can i configure ipv6 on host with route or in /etc/network/interfaces

do you have more ideas?

regads
[/FONT]
 
ehm, if you add 2a02:238:f019:412:1:1:1:1/64 then you wont be able to reach your gateway of 2a02:238:f019:401:2a0:57ff:fe14:86f5 because its not in the same /64, you would need to add a gateway in 2a02:238:f019:401:*

try:

ip addr add 2a02:238:f019:401::1/64 dev vmbr0
ping6 2a02:238:f019:401:2a0:57ff:fe14:86f5

configuring it in debian is easy, in /etc/network/interfaces just add an iface vmbr0 inet6 block.. but test your config manually first

iface vmbr0 inet6 static
address 2a02:238:f019:412:1:1:1:1
netmask 64
gateway ????
 
hi bert64,

i have add following to the interface
Code:
iface vmbr0 inet6 static
        address [COLOR=#1F497D]2a02:238:f019:412:1:1:1:1[/COLOR]
        netmask 64
        gateway [COLOR=#1F497D][FONT=&amp]2a02:238:f019:401:2a0:57ff:fe14:86f5[/FONT][/COLOR]

but if i restart network service its come:
Code:
Reconfiguring network interfaces...
Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
RTNETLINK answers: File exists
Failed to bring up vmbr0.
and i cant ping ....

do you have more ideas?

regards and thanks for your help...
 
yes that configuration will never work because the assigned address and gateway are in different /64 block

address is
2a02:238:f019:412::/64
gateway is
2a02:238:f019:401::/64

you either need to use a larger network size, or addresses in the same /64 range
 
OK,

i have use /56 network
but after restart network service i get
Reconfiguring network interfaces...Device "vmbr0" does not exist.

and ping6 don´t work.

it´s the network still to small ?

regards
 
err, how is your gateway configured? both devices must be configured with the same network size
 
i have send a question to my provider, well i don´t have this information and for reply the correct information, if i receive it, i would post it. very thanks for help to here. i would post the answer of provider.

i have only my ipv6 network gateway adresse and the dns servers.

regards
 
hi bert64,

my provider said, we must set a route or use normal his gateway.
do you have a idea, to configure the ipv6 as working network?

i have following data:

ipv6-network: [FONT=&amp]2a02:238:f019:412::/64
ipv6-ip for my server: [/FONT]
[FONT=&amp]2a02:238:f019:412:1:1:1:1
gateway: [/FONT]
[FONT=&amp]fe80::2a0:57ff:fe14:86f5 or 2a02:238:f019:401:2a0:57ff:fe14:86f5[/FONT]
dns1: [FONT=&amp]2a02:238:f:11:0:2170:6922:4072
dns2: [/FONT]
[FONT=&amp]2001:4860:4860::8888 (Google)

i have test this
Code:
[/FONT][/COLOR]iface vmbr0 inet6 static
        address 2a02:238:f019:412:1:1:1:1
        netmask 64
        up ip -6 route add default via 2a02:238:f019:401:2a0:57ff:fe14:86f5 dev vmbr0
        down ip -6 route del default via 2a02:238:f019:401:2a0:57ff:fe14:86f5 dev vmbr0[COLOR=#1F497D][FONT=&amp]

without result.

error message:
Code:
[/FONT][/COLOR]/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...
Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
RTNETLINK answers: File exists
Failed to bring up vmbr0.
[COLOR=#1F497D][FONT=&amp]

i can ping my own ip but not the gateway andnot the google dns ipv6 adress.

do you or a other user have any ideas?

regards[/FONT]
 
Last edited:
Hi all,

we have test with a ipv6 gateway in same network ([FONT=&amp]2a02:238:f019:412:1:1:1:ff)[/FONT] as our ip, but we dont get a connection out of server.
have anyone an idea? We ask for your help. many thanks.

we have create a ipv6 dhcp server, how we can test, if it run on proxmox if static ipv6 doesnt work?

please help.

thanks and regards
 
Hi all,

i have this configuration on host:

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth1 inet manual

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  217.*.*.69
        netmask  255.255.254.0
        gateway  217.*.*.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address  10.11.12.61
        netmask  255.255.0.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

iface vmbr0 inet6 static
    address 2a02:238:f019:412:1:1:1:1
    netmask 64
    gateway 2a02:238:f019:412:1:1:1:ff

same issue with
Code:
...
iface vmbr0 inet6 static
         address 2a02:238:f019:412:::1 # IPv6 trouvée dans le manager
         netmask 64 # le masque
         post-up ip -6 route add 2a02:238:f019:41FF:FF:FF:FF:FF/128 dev vmbr0 # on déclare la passerelle
         post-up ip -6 route add default via 2a02:238:f019:41FF:FF:FF:FF:FF # on active la passerelle comme route par default

...

but if i restart the network service i have the message:
Code:
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...[U][I][B]Device "vmbr0" does not exist[/B][/I][/U].
Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
Waiting for vmbr1 to get ready (MAXWAIT is 2 seconds).
done.
i can ping myself but not gateway or google ipv6 dns ip-adress.
what can i do to bring online ipv6 on host and vms/cts, can you help me please to find a issue?

thanks and regards
 
Last edited:
hi, i have change configuration to:
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth1 inet manual

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet6 static
         address 2a02:238:f019:412:1:1:1:1
         netmask 64
         gateway 2a02:238:f019:412:1:1:1:FF
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr0:0
iface vmbr0:0 inet static
        address  217.*.*.69
        netmask  255.255.254.0
        gateway  217.*.*.1


auto vmbr1
iface vmbr1 inet static
        address  10.11.12.61
        netmask  255.255.0.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

but on network restart its comes:

Code:
 /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...
Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
[U][I]RTNETLINK answers: File exists
Failed to bring up vmbr0.[/I][/U]

Waiting for vmbr1 to get ready (MAXWAIT is 2 seconds).
done.

how can i repair this error? please help. thanks

regards