VM is disconected the internet after restart network

hung diep

Member
Jun 5, 2018
3
2
8
28
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.
 
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

Are you sure this is the correct gateway? Generally x.x.x.1 is gateway address, not 2.

I would give deeper insight, but would recommend just updating to the latest version of proxmox and likely this issue is solved.
 
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

Are you sure this is the correct gateway? Generally x.x.x.1 is gateway address, not 2.

I would give deeper insight, but would recommend just updating to the latest version of proxmox and likely this issue is solved.
I use VMware, and VMS can get access to the internet
 
  • Like
Reactions: BunkerHosted
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

Are you sure this is the correct gateway? Generally x.x.x.1 is gateway address, not 2.

I would give deeper insight, but would recommend just updating to the latest version of proxmox and likely this issue is solved.
oke i will try it
 
  • Like
Reactions: BunkerHosted

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!