Hello all together,
I've a very simple problem, but I can't solve it by myself. Even with lots of researches and using the old wiki-page about network-configurations (via web archiver).
However, I got one public IPv4 address and I like to use some VMs using NAT.
So I installed Proxmox per ISO. It autoconfigured ens3 and vmbr0.
I created a new bridge for NATing around, vmbr2.
My config-file looks like this:
I created some Debian 9.6 VMs with 10.9.0.x/24 addresses, using the gateway 10.9.0.1 and the vmbr2 as network-interface (called ens18).
The VMs can't reach the internet. They can't ping eachother and they also can't reach the host 10.9.0.1.
I don't know whats wrong. I tried lots of tutorials, guides, informations from the web. Now I can't help myself anymore.
I've a very simple problem, but I can't solve it by myself. Even with lots of researches and using the old wiki-page about network-configurations (via web archiver).
However, I got one public IPv4 address and I like to use some VMs using NAT.
So I installed Proxmox per ISO. It autoconfigured ens3 and vmbr0.
I created a new bridge for NATing around, vmbr2.
My config-file looks like this:
Code:
#nano /etc/network/interfaces
auto lo
iface lo inet loopback
iface ens3 inet manual
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.xxx.xxx #static public ip
netmask 255.255.252.0
gateway xxx.xxx.yyy.yyy # fitting Gateway
bridge_ports ens3
bridge_stp off
bridge_fd 0
auto vmbr2
#private sub network
iface vmbr2 inet static
address 10.9.0.1
netmask 255.255.255.0
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.9.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.9.0.0/24' -o vmbr0 -j MASQUERADE
I created some Debian 9.6 VMs with 10.9.0.x/24 addresses, using the gateway 10.9.0.1 and the vmbr2 as network-interface (called ens18).
The VMs can't reach the internet. They can't ping eachother and they also can't reach the host 10.9.0.1.
I don't know whats wrong. I tried lots of tutorials, guides, informations from the web. Now I can't help myself anymore.