Hello,
i want to use IPv6 Adresses from my subnet on my containers.
But on the containers are only an default ip or so, but i configured the right ip.
Host network config:
VM Container network config:
With this config i get the following ifconfig for eth0 on my VM:
Thanks for any help
i want to use IPv6 Adresses from my subnet on my containers.
But on the containers are only an default ip or so, but i configured the right ip.
Host network config:
Code:
### Hetzner Online GmbH - installimage
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# device: eth0
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
gateway xxx.xxx.xxx.xxx
pointopoint xxx.xxx.xx.xxx
iface eth0 inet6 static
address xxxx:xxx:xxx:xxxx::2
netmask 128
gateway fe80::1
up sysctl -p
# device: vmbr0
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add xxx.xxx.xxx.xxx/32 dev vmbr0
up ip route add xxx.xxx.xxx.xxx/32 dev vmbr0
up ip route add xxx.xxx.xxx.xxx/32 dev vmbr0
iface vmbr0 inet6 static
address xxxx:xxx:xxx:xxxx::2
netmask 64
# device: vmbr1
auto vmbr1
iface vmbr1 inet static
address 192.168.99.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up iptables -t nat -A POSTROUTING -s '192.168.99.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.99.0/24' -o eth0 -j MASQUERADE
VM Container network config:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
# --- BEGIN PVE ---
post-up ip route add xxx.xxx.xxx.xxx dev eth0
post-up ip route add default via xxx.xxx.xxx.xxx dev eth0
pre-down ip route del default via xxx.xxx.xxx.xxx dev eth0
pre-down ip route del xxx.xxx.xxx.xxx dev eth0
# --- END PVE ---
post-up ip route add xxx.xxx.xxx.xxx dev eth0
post-up ip route add default via xxx.xxx.xxx.xxx
pre-down ip route del default via xxx.xxx.xxx.xxx
pre-down ip route del xxx.xxx.xxx.xxx dev eth0
iface eth0 inet6 static
address xxxx:xxx:xxx:xxxx::101
netmask 64
gateway xxxx:xxx:xxx:xxxx::2
auto eth1
iface eth1 inet static
address 192.168.99.101
netmask 255.255.255.0
gateway 192.168.99.1
With this config i get the following ifconfig for eth0 on my VM:
Code:
eth0 Link encap:Ethernet Hardware Adresse xx:xx:xx:xx:xx:xx
inet Adresse:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Maske:255.255.255.255
inet6-Adresse: fe80::6031:61ff:fe39:3764/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:6092 errors:0 dropped:0 overruns:0 frame:0
TX packets:4191 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:899025 (877.9 KiB) TX bytes:752223 (734.5 KiB)
Thanks for any help