Score:0

Libvirt IPv6 routing to nated network

vn flag

I'm having trouble getting IPv6 to work for my KVM/qemu guests.

I have two bridges setup, one routed (external, non libvirt) bridge for public dedicated ipv4 + ipv6 which works for both protocols.

Then I have a libvirt nat bridge (with the routed bridge as parent) with a nated ipv4 (that works) and I also want a public ipv6. I'm able to transmit udp packets out but I never get any response.

Looking at tcpdump there are incoming neighbor solicitations that get unanswered and don't get forwarded to the guest.

Do I need to set something special up for this to work? Ubuntu 22.04 / Libvirt 8.0.0

The routed bridge (pubBr) has ipv6 2001:x:x:7d8e:: - My nat bridge xml config below:

<network>
    <name>natbr</name>
    <bridge name="natbr" />
    <forward mode='nat' dev='pubBr'>
      <nat>
        <port start='8000' end='30000'/>
      </nat>
    </forward>
    <ip address="10.1.1.1" netmask="255.255.0.0">
      <dhcp>
        <range start='10.1.1.2' end='10.1.1.255'/>
      </dhcp>
    </ip>
    <ip family="ipv6" address="2001:x:x:7d8e::1" prefix="64">
      <dhcp>
        <host name="test" ip="2001:x:x:7d8e:a01:2ff::"/>
      </dhcp>
    </ip>
  </network>
Ron Maupin avatar
us flag
Bridges do not route. Bridges (switches are bridges) bridge layer-2 frames on the same network. but routers route layer-3 packets between networks. Bridges know nothing , nor do they care, about layer-3 (IP) packet addresses, only switching frames based on the layer-2 frame addresses. NAT translates layer-3 IPv4 packet addresses, so switches know nothing about NAT. IPv6 does not have a NAT standard the way IPv4 does, not needing NAT that is a kludge to extend the life of IPv4 until IPv6 can become ubiquitous.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.