Thanks for your replies @tomp, @markylaing!
I’ve finally found the motivation to try this again, here are the exact steps, i’ve taken:
(some ip’s were anonymized, but the structure of the ip is the same)
As far as i’ve understood
My hoster allows me all addresses inside 2001:2000:20:20a::/64
And from it, i picked the target ipv6 address 2001:2000:20:20a:c::c1
Host
sudo sysctl net.ipv6.conf.all.forwarding=1
sudo sysctl net.ipv6.conf.eth0.forwarding=1
sudo sysctl net.ipv6.conf.all.proxy_ndp=1
sudo sysctl net.ipv6.conf.eth0.proxy_ndp=1
sudo lxc init ubuntu:jammy c1
sudo lxc config device add c1 eth0 nic name=eth0 nictype=routed parent=eth0 ipv6.address=2001:2000:20:20a:c::c1
ip -6 r
2001:2000:20:20a::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::1 dev eth0 proto static metric 1024 pref medium
ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 2001:2000:20:20a:c::c1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::d550:550:550:550/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
sudo lxc start c1
Inside C1
vim /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
dhcp6: false
addresses:
- 2001:2000:20:20a:c::c1/64
nameservers:
addresses:
- 2001:4860:4860::8888
- 2001:4860:4860::8844
routes:
- to: "::/0"
via: "fe80::1"
on-link: true
netplan apply
Host
sudo lxc restart c1
sudo lxc config show c1 --expanded
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 22.04 LTS amd64 (release) (20230815)
image.label: release
image.os: ubuntu
image.release: jammy
image.serial: "20230815"
image.type: squashfs
image.version: "22.04"
volatile.base_image: ebed156c664de5e9f86c1a2eee7b61031af072af35e90048d2944b3e485f8303
volatile.cloud-init.instance-id: ef81daf9-78be-479e-98e8-f96e0751b003
volatile.eth0.host_name: veth8a6d6890
volatile.eth0.hwaddr: 00:16:3e:17:c9:a1
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: RUNNING
volatile.last_state.ready: "false"
volatile.uuid: 45b624ed-7bfb-4b40-bbaa-2c5d94060242
volatile.uuid.generation: 45b624ed-7bfb-4b40-bbaa-2c5d94060242
devices:
eth0:
ipv6.address: 2001:2000:20:20a:c::c1
name: eth0
nictype: routed
parent: eth0
type: nic
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
Inside C1
ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
7: eth0@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 2001:2000:20:20a:c::c1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fe17:c9a1/64 scope link
valid_lft forever preferred_lft forever
ip -6 r
2001:2000:20:20a::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::1 dev eth0 proto static metric 1024 onlink pref medium
Host
sudo nft flush ruleset
deactivate firewall completely
Inside C1
ping -6 google.com
^C
timeout
ping 2001:4860:4860::8888
PING 2001:4860:4860::8888(2001:4860:4860::8888) 56 data bytes
From 2001:2000:20:20a:c::c1 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:2000:20:20a:c::c1 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:2000:20:20a:c::c1 icmp_seq=3 Destination unreachable: Address unreachable
^C
--- 2001:4860:4860::8888 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5065ms
I’m pertty sure something is wrong with this, just not sure what, can you help me out?