Can I have multiple VMs share internet access off one NIC?

jumpin_jamie

New Member
Mar 13, 2023
6
0
1
I want to use 2 (possibly more in the future) virtual machines with internet access off of one NIC. I have one default gateway from my network router. I use the default vmbr0 running off of the eno interface (as seen in attached images) to share internet access. Both VMs use the same OS and they both share vmbr0 in their configurations. When the OS is setup, only one is allowed to use internet access and the other just says no internet. Is there a way around this or do I need to do some more proxmox config. If so please explain in detail as I am a bit of an ameteur. Thank you!
 

Attachments

  • VM2.png
    VM2.png
    41.3 KB · Views: 37
  • VM1.png
    VM1.png
    41 KB · Views: 35
  • ProxmoxNetwork.png
    ProxmoxNetwork.png
    12.7 KB · Views: 37
You have set different MAC adresses for your 2 vms, which is correct, do you use DHCP in you vms or are you setting static IPs?
You have to configure your Router as default gateway in both machines, give them different IPs inside in your Network and set the DNS nameserver, probably to the IP of your Router, too. Try to ping the IP you of your router simultanously, it should work. If it works try pinging 8.8.8.8 (Google DNS)
then try DNS name resolution via host heise.de for example
 
I run 5 different VM's off one host with one NIC. As long as you take throughput/bandwidth into account, you're good
 

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!