Please help, Routed setup... I cannot get it to work !

mangelot

Member
Apr 7, 2021
16
1
8
45
Hello,

I'm testing my first proxmox install, and I can't manage to get my network config right.
Here's the current situation:

Bridged setup
ipv4 Gateway xxx.xxx.25.1 > eno2 > vmbr1

ipv4 Gateway xxx.xxx.31.1 > eno1 > vmbr0
ipv6 Gateway 2A00:xxxx:x:31::/64 > eno1 > vmbr0

Proxmox WEBGUI
vmbr0 > ipv4 = xxx.xxx.31.22/24 & ipv6 = 2a00:xxxx:x:31::22/128

lxc 100
vmbr0 > eth0 > ipv4 = xxx.xxx.31.5/24
vmbr0 > eth0 > ipv6 = 2a00:xxxx:x:31::5/64

lxc 101
vmbr1 > eth0 > ipv4 = xxx.xxx.25.154/24
vmbr0 > eth1 > ipv6 = 2a00:xxxx:x:31:25::154/64

The above setup works :), I can ping in and out from the container over the internet
but I'm getting disconnects and/or timeouts on ipv6 (which is extremely slow sometimes??)
I was thinking It has to do something with the detection off multiple MAC addresses on a single interface effect,
(explained inside: PVE config manual)


So I tried the routed setup, but I cannot get it to work.. :(

Interfaces configuration routed setup

Code:
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback

# device: eno2
auto eno2
iface eno2 inet static
  # Single Host IPv4 address
  address   xxx.xxx.31.22
  netmask   255.255.255.0
  # The Gateway IP
  gateway   xxx.xxx.31.1
  # route xxx.xxx.31.22/26 via xxx.xxx.31.1
  up route add -net xxx.xxx.31.0 netmask 255.255.255.0 gw xxx.xxx.31.1 dev eno2

iface eno2 inet6 static
  # We gave our Host a single IPv6
  address 2A00:xxxx:x:31::22
  # /128 because our Bridge has the whole /64 Subnet!
  netmask 128
  # The IPv6 Gateway
  gateway 2A00:xxxx:x:31::1

# Bridge used by Proxmox Guests
auto vmbr0
iface vmbr0 inet static
  # Our Host will be the Gateway for LXC
  address xxx.xxx.31.22
  netmask 255.255.255.0
  # Some basic bridge configuration
  bridge_stp off
  bridge_ports none
  bridge_fd 0
  bridge_maxwait 0

# LXC 100
  # Add all single IP's from our .31 subnet
  up route add -host xxx.xxx.31.5 dev vmbr0

iface vmbr0 inet6 static
  # Our Host again as the Gateway
  address 2A00:xxxx:x:31::22
  # Here we use the /64 subnet!
  netmask 64
 

auto eno1
iface eno1 inet static
  # Single Host IPv4 address
  address   xxx.xxx.25.22
  netmask   255.255.255.0
  # The Gateway IP
  gateway   xxx.xxx.25.1
  # route xxx.xxx.25.22/26 via xxx.xxx.25.1
  up route add -net xxx.xxx.25.0 netmask 255.255.255.0 gw xxx.xxx.25.1 dev eno1

# Bridge used by Proxmox Guests
auto vmbr1
iface vmbr1 inet static
  # Our Host will be the Gateway for all lxc
  address xxx.xxx.25.22
  netmask 255.255.255.0
  # Some basic bridge configuration
  bridge_stp off
  bridge_ports none
  bridge_fd 0
  bridge_maxwait 0

# LXC 101
  # Add all single IP's from your .25 subnet
  up route add -host xxx.xxx.25.154 dev vmbr1

But this didn't work also, who can help me setting up 2 different subnets and dualstack ipv6 for all LXC containers ?


:oops:
 
Last edited:
Hi, could you maybe post your current configuration files?

Code:
cat /etc/network/interfaces