2nd NIC directly to VM

NBfan32

New Member
Mar 8, 2015
5
0
1
Germany
Hey,

I've got a problem connecting a VM to the internet. I've got two physical NICs called eth0 and eth1. Both of them are connected to the internet with two different public IPs. Both IPs currently directing me to my Proxmox-webinterface. But now I want to connect the second NIC (eth1) directly to a VM, without any bridges or something in between. So, if i connect to the first public ip (eth0), I will see my Proxmox-Interface and if i connect to the second IP, i will see whatever the vm will return (e.g. a webserver will return a website). I tried different ways to connect the VM with the internet, but it didn't work properly yet. Either the vm isn't reachable from outside but is able to surf, or the vm isn't connected at all. I tried different ways described in different forums, but as then problems weren't exactly like mine, the solutions shown didn't work for my problem.

I hope my problem is understandable even though even though my english isn't that good...

Thanks in advance for any advice :)

- NBfan
 
Attach your second nic to a bridge. Don't give the bridge any ip info. Attach that to your vm and configure the public ip within the vm


Sent from my iPhone using Tapatalk
 
Okay, I'll try that later... The NIC shouldn't be configurated to use a special ip i guess?
And is there any difference between Linux Bridge and OVS Bridge? Which should i use in my case?

EDIT: It doesn't work as you described, i can't reach my vm from the internet...
 
Last edited:
It has always worked fine for me. I have been running virtualized routers for years. Same concept
 
Hmmm... Do you have an Interface-file (Proxmox & Firewall) with your configurations which you can Show me? Maybe there's just a Little difference which I can't see...
else the Firewall i use can't handle the Bridge I guess... Doesn't seem likely but I don't know what Else could be the problem...
 
I really don't know what the problem is... i tried it exactly as you described it (and in some various ways), but neither the machine can ping to the internet, nor i get a ping from the machine on my computer (never mind getting a ssh connection or web).
Actually there's no chance to get things running except to change my system... maybe another linux version will work (Actually I don't think so, but there's no other thing I can try any more...)

maybe I will find a way to connect my machines properly... In this case I will post the solution in here, but first of all i will try to use another os on my vm...

Even though it didn't work, thanks for your help :)
 
It works :D

After hours of googleing I've found the solution in this article: http://www.linuxfoundation.org/coll..._traffic_gets_trough_.28except_ARP_and_STP.29
Even though ARP and STP didn't worked for me at all, the internet connection on my vm works properly after following the steps in this article... now the machine can access the web and vice versa....

So, your solution was actually right, @pirateghost, ​but in my case i had to do these extra steps... whatever, thanks for your help :)
 

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!