Can't access internet from VM

RTV4

New Member
Feb 19, 2023
3
0
1
Hello,
I have multiple public IPv4 addresses, and I would like to give each VM its own dedicated IP address.

After installing the VM, I found that I can only ping the IP address of the host server, but I cannot ping the gateway or 1.1.1.1 from the VM.
1684673361732.png
I can ping everything from the host server, including the IP address of the VM.
1684673408277.png

I've tried searching the forum and google, but unfortunately I only find threads that address one public IPv4 for all VMs and proxmox.

Anyone know how to make VMs accessible from the internet please?

I have /etc/network/interfaces set up like this:
on host server:
Code:
auto lo
iface lo inet loopback

iface enp34s0 inet manual

iface enp41s0 inet manual

iface enx1a3de1cdf94d inet manual

auto vmbr0
iface vmbr0 inet static
        address 188.130.232.200/24
        gateway 188.130.232.1
        bridge-ports enp34s0
        bridge-stp off
        bridge-fd 0
on VM:
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug ens18
iface ens18 inet static
        address 188.130.232.201/24
        gateway 188.130.232.1
        dns-nameservers 1.1.1.1
        dns-search testserver


Thank you very much in advance!
 
some providers need register VM MAC to public ip used.
 
Last edited:

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!