hi, i would like to setup 2 networks. This is my home server.
My Home network is 192.168.10.0/24. I have vmbr0 set to this network. Although I would like to use vmbr1 with a network of 10.10.1.0/24.
I tried the following setup: (does not work)
The network for the lxc is:
IP: 10.10.1.3/24
GATEWAY: empty
DNS: 1.1.1.1
After creating a lxc/vm they both cannot reach WAN (the internet). Am i perhaps doing something incorrectly ?
vmbr1 settings configured from https://pve.proxmox.com/wiki/Network_Configuration
My Home network is 192.168.10.0/24. I have vmbr0 set to this network. Although I would like to use vmbr1 with a network of 10.10.1.0/24.
I tried the following setup: (does not work)
Code:
auto lo
iface lo inet loopback
auto enp11s0
iface enp11s0 inet manual
dns-nameservers 1.1.1.1
dns-search domain.name
# dns-* options are implemented by the resolvconf package, if installed
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.10.5/24
gateway 192.168.10.1
bridge-ports enp11s0
bridge-stp off
bridge-fd 0
dns-nameservers 1.1.1.1
auto vmbr1
#private sub network
iface vmbr1 inet static
address 10.10.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.1.0/24' -o enp11s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.1.0/24' -o enp11s0 -j MASQUERADE
The network for the lxc is:
IP: 10.10.1.3/24
GATEWAY: empty
DNS: 1.1.1.1
After creating a lxc/vm they both cannot reach WAN (the internet). Am i perhaps doing something incorrectly ?
vmbr1 settings configured from https://pve.proxmox.com/wiki/Network_Configuration