LXC bekommt IPv6 adresse, kann IPv6 aber nicht nutzen?

dekiesel

Member
Apr 30, 2023
61
6
13
Hi,

Ich brauche ipv6 für zwei meiner Container (da ich openthread und matter nutzen möchte).

Ich habe einen Container aufgestellt und dieser bekommt auch eine ipv6:


Bash:
python-matter-server:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth101@if279: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 22:29:80:4f:c0:cc brd ff:ff:ff:ff:ff:ff
    inet 10.1.101.180/24 brd 10.1.101.255 scope global eth101
       valid_lft forever preferred_lft forever
    inet6 fd54:bac3:aabe:339d:2029:80ff:fe4f:c0cc/64 scope global dynamic flags 100
       valid_lft 1672sec preferred_lft 1672sec
    inet6 fe80::2029:80ff:fe4f:c0cc/64 scope link
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 02:42:5a:b0:f0:e2 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

Leider kann ich nichts via ipv6 pingen:

Bash:
python-matter-server:~# ping -c 2 2a01:4f8:121:24cc::102
PING 2a01:4f8:121:24cc::102 (2a01:4f8:121:24cc::102): 56 data bytes
ping: sendto: Network unreachable

Da ich leider nicht wirklich viel Ahnung von ipv6 habe bin ich nicht sicher wie sich das beheben lässt, über Hilfe wäre ich sehr dankbar.

Ist ipv6 auf dem Host auch nötig? Dort ist ipv6 deaktiviert, was ich als Grund vermuten würde, hätte ich nicht Threads gesehen in denen Leute sagen ihre container hätten ipv6, ihr host aber nicht.

Code:
root@pve:/etc/sysctl.d# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0.100
iface vmbr0.100 inet static
        address  10.1.100.12/24
        gateway  10.1.100.1

auto vmbr0
iface vmbr0 inet manual
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

Danke!