Hi everybody,
I'm getting an issue with my Proxmox v5, I create a new interface to use the nat method, however, after restarting the network all VMS is disconnected to the internet.
my interface configure below
auto lo
iface lo inet loopback
iface ens33 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.2.20
netmask 255.255.255.0
gateway 192.168.2.2
bridge_ports ens33
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 10.10.10.1/24
bridge-stp off
bridge-fd 0
bridge_ports none
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
i used to try several solutions
1) using ifudown2
when I restart network -> error: vmbr10: bridge port none does not exist
and then, all VMS disconnects
my solution: remove the network device and add one again
2) I use a solution from an article http://realtechtalk.com/proxmox_vm_...rt_your_network_on_the_hostnode-2162-articles
however, this is quite time-consuming.
Can everybody help me? thank you so much.
I'm getting an issue with my Proxmox v5, I create a new interface to use the nat method, however, after restarting the network all VMS is disconnected to the internet.
my interface configure below
auto lo
iface lo inet loopback
iface ens33 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.2.20
netmask 255.255.255.0
gateway 192.168.2.2
bridge_ports ens33
bridge_stp off
bridge_fd 0
auto vmbr10
iface vmbr10 inet static
address 10.10.10.1/24
bridge-stp off
bridge-fd 0
bridge_ports none
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
i used to try several solutions
1) using ifudown2
when I restart network -> error: vmbr10: bridge port none does not exist
and then, all VMS disconnects
my solution: remove the network device and add one again
2) I use a solution from an article http://realtechtalk.com/proxmox_vm_...rt_your_network_on_the_hostnode-2162-articles
however, this is quite time-consuming.
Can everybody help me? thank you so much.