Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have trouble setting up IPV6 on my Proxmox (KVM) server:

My ISP sent me this information(xxx=placeholder):

IPs: 2a01:XXX:XXX:301:: /64
Gateway: 2a01:XXX:XXX:300::1 /59

This is the interface setup on the host server:

auto vmbr1
iface vmbr1 inet static
    address  178.XX.XX.4
    broadcast 178.XX.XX.63
    netmask  255.255.255.192
    pointopoint 178.XX.XX.1
    gateway     178.XX.XX.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
iface vmbr1 inet6 static
    address 2a01:XXX:XXX:301::2
    netmask 64
    up ip -6 route add 2a01:XXX:XXX:300::1 dev vmbr1
    down ip -6 route del 2a01:XXX:XXX:300::1 dev vmbr1
    up ip -6 route add default via 2a01:XXX:XXX:300::1 dev vmbr1
    down ip -6 route del default via 2a01:XXX:XXX:300::1 dev vmbr1

On the guest:

auto eth0
iface eth0 inet static
    address 178.xx.xx.47
    netmask 255.255.255.255
    broadcast 178.xx.xx.63
    gateway 178.xx.xx.1
    pointopoint 178.xx.xx.1

iface eth0 inet6 static
    pre-up modprobe ipv6
    address 2a01:XXX:XXX:301::2:2
    netmask 64
        up ip -6 route add 2a01:XXX:XXX:300::1 dev eth0
        down ip -6 route del 2a01:XXX:XXX:300::1 dev eth0
        up ip -6 route add default via 2a01:XXX:XXX:300::1 dev eth0
        down ip -6 route del default via 2a01:XXX:XXX:300::1 dev eth0

Ipv4 works on both host and guest but Ipv6 only works "sometimes". It's up for minutes and then down again until I change something.

However I can actually ping the host and the guest from both host and guest.

host:~# ip -6 neigh
2a01:XXX:XXX:301::100:2 dev vmbr1 lladdr 00:50:56:00:00:e0 REACHABLE
2a01:XXX:XXX:300::1 dev vmbr1 lladdr 00:26:88:76:18:18 router STALE

host:~# ip -6 route
2a01:XXX:XXX:300::1 dev vmbr1  metric 1024  mtu 1500 advmss 1440 hoplimit 4294967295
2a01:XXX:XXX:301::/64 dev vmbr1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev vmbr0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev eth0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev vmbr1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev tap101i1d0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 4294967295
default via 2a01:XXX:XXX:300::1 dev vmbr1  metric 1024  mtu 1500 advmss 1440 hoplimit 4294967295

Does someone know why it isn't working? And is there a way to configure multiple v6 IPs from the same subnet so I can dedicate IPs to websites on a server with multiple virtualhosts?

share|improve this question
    
Did you eventually get this to work? I have a similar problem. –  akaihola Oct 18 '12 at 18:43
add comment

2 Answers

I only have an answer for your second question.

In IPv6 you can have multiple IP address attached to the same interface. Unfortunately the debian tool for managing the network interfaces, ifupdown, is not able to manage multiple IPv6 address on one interface (see this bug report from 2002).

However, you can circumvent this problem by adding the extra IP address with a up directive. You can find several examples on various sites, like this blog post.

share|improve this answer
add comment

i'd try to set it up the simplest way possible ...

For host:

iface vmbr1 inet6 static
    address 2a01:XXX:XXX:301::2
    netmask 59
    router 2a01:XXX:XXX:300::1

For guest:

iface eth0 inet6 static
    pre-up modprobe ipv6
    address 2a01:XXX:XXX:301::2:2
    netmask 59
    router 2a01:XXX:XXX:300::1
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.