Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LXD: trouble setting IPv6 connectivity
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
soratobuneko
n00b
n00b


Joined: 20 Oct 2020
Posts: 25

PostPosted: Tue Apr 13, 2021 4:59 pm    Post subject: LXD: trouble setting IPv6 connectivity Reply with quote

I have installed LXD on a Gentoo system installed on a kimsufi (OVH). With the default configuration, containers can access IPv4 internet but not with IPv6. On the host I can use IPv6 to access internet.

It looks like I have a /56 prefix assigned to my server (unsure). So I tried to assignate a /64 subnet to my LXD bridge with:
Code:
lxc network set lxdbr0 ipv6.address 2001:xxxx:xxxx:xxxx::1/64


Then my containers have a v6 address in that subnet and have the lxdbr0 bridge address as default gateway. I can ping the gateway but not anything beyond that. For instance if I try to ping the v6 address of the host of its internet facing interface I get
Code:
2001:xxxx:... icmp_seq=1 Destination unreachable: Address unreachable


I am far from being an IPv6 expert. So my question is how can I get IPv6 connectivity with the prefix assignated to my server. And in the case I am wrong and have just 1 v6 address assigned how can I set up NATv6? I tried
Code:
lxc network set lxdbr0 ipv6.nat true

But it doesn't work either.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Tue Apr 13, 2021 10:39 pm    Post subject: Reply with quote

soratobuneko,

This page says that you have a /128 IP6 address. range.
That's a single IP.

You can NAT IPv6 but I have never needed to.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
soratobuneko
n00b
n00b


Joined: 20 Oct 2020
Posts: 25

PostPosted: Wed Apr 14, 2021 8:32 am    Post subject: Reply with quote

I thought I had a full prefix because IPv6 auto configuration gave me another address than the assigned 2001:xxxx:xxxx:xxxx:xx00::1 and it was working.

Anyway how do I get the NAT working? I tried setting ipv6.nat to true and it didn't work. Then I also tried setting ipv6.nat.address to my host address and it didn't work either. By the way the error I get looks more like a routing error "Destination unreachable: No route" even if I have a default route via lxdbr0 IP address.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum