Help wanted ipv6

rvrhee

New Member
Jul 3, 2020
4
0
1
48
netherlands
Little help needed .
/etc/network/interfaces

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp2s0
iface enp2s0 inet static
address 46.4.107.107/27
gateway 46.4.107.97
up route add -net 46.4.107.96 netmask 255.255.255.224 gw 46.4.107.97 dev enp2s0

iface enp2s0 inet6 static
address 2a01:04f8:0141:03e4::1/64
post-up /sbin/ip -f inet6 route add 2a01:04f8:0141:03e4:ff:ff:ff:ff dev enp2s0
post-up /sbin/ip -f inet6 route add default via 2a01:04f8:0141:03e4:ff:ff:ff:ff
pre-down /sbin/ip -f inet6 route del 2a01:04f8:0141:03e4:ff:ff:ff:ff dev enp2s0
pre-down /sbin/ip -f inet6 route del default via 2a01:04f8:0141:03e4:ff:ff:ff:ff
#gateway fe80::1


auto vmbr0
iface vmbr0 inet static
address 192.168.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0

iface vmbr0 inet6 static
address 2a01:04f8:0141:03e4::10
post-up /sbin/ip -f inet6 route add 2a01:04f8:0141:03e4::/64 dev vmbr0
pre-down /sbin/ip -f inet6 route del 2a01:04f8:0141:03e4::/64 dev vmbr0

post-up sysctl -p
post-up iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o enp2s0 -j SNAT --to-source 46.4.107.107

------------------------------------------------------------------
when i try to ping google on ipv6

ping ipv6.google.com
PING ipv6.google.com(fra15s46-in-x0e.1e100.net (2a00:1450:4001:808::200e)) 56 data bytes
From sintest6 (2a01:4f8:141:3e4::1): icmp_seq=1 Destination unreachable: Address unreachable
From sintest6 (2a01:4f8:141:3e4::1): icmp_seq=2 Destination unreachable: Address unreachable
From sintest6 (2a01:4f8:141:3e4::1): icmp_seq=3 Destination unreachable: Address unreachable
From sintest6 (2a01:4f8:141:3e4::1): icmp_seq=4 Destination unreachable: Address unreachable
From sintest6 (2a01:4f8:141:3e4::1): icmp_seq=5 Destination unreachable: Address unreachable

i can ping the guests on ipv4 and ipv6 i dont know what i did wrong.
 
what does your ip6 routing table look like?
ip -6 ro

from the ip 2a01:4f8:141:3e4::1 guess you're at hetzner, they tend to use fe80::1 as gateway... but you don't - maybe thats your problem?
 
root@sintest6 ~ # ip -6 ro
::1 dev lo proto kernel metric 256 pref medium
2a01:4f8:141:3e4::10 dev vmbr0 proto kernel metric 256 pref medium
2a01:4f8:141:3e4:ff:ff:ff:ff dev enp2s0 metric 1024 pref medium
2a01:4f8:141:3e4::/64 dev enp2s0 proto kernel metric 256 pref medium
2a01:4f8:141:3e4::/64 dev vmbr0 metric 1024 pref medium
fe80::/64 dev enp2s0 proto kernel metric 256 pref medium
fe80::/64 dev vmbr0 proto kernel metric 256 pref medium
default via 2a01:4f8:141:3e4:ff:ff:ff:ff dev enp2s0 metric 1024 pref medium


yes i am at hetzner if i use fe80::1 it works on host but not at guests

ipv4 nat is ok on hosts.
but i need real ipv6 on the hosts
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!