[SOLVED] Multiple ethernet one internal and one external IP

ChadRT

New Member
Aug 18, 2018
3
0
1
45
So here is my setup in its basic form:

I am using Proxmox VE to replace some of my key servers and be able to re purpose the left overs as failovers but first I need to make the first box function. Combining some of my in home servers will also allow me to shutdown a couple servers and hopefully save on my power bill a little too!! :D

I have the following VM's running:
  • PBX
  • Webserver
  • NAS
The PBX is FreePBX and it is designed to sit on the outside world and has done so trouble free for a couple years now. This box gets one of static IP's from the Comcast Business connection (I have 5 static IP's)

The Webserver also sits on the outside world with another static IP.

The NAS of course is totally internal and will continue to be available only to me internally.

The Proxmox box has two ethernet connections and the connection to the internal network is working great. I am able to browse all services and I have even migrated nearly a TB of data to the NAS. I have FreePBX all set up and working as well as the webserver. So what I want to accomplish is this:

eth0 should remain internal and eth1 needs to be a direct connection to my Comcast modem so that I can provide a connection to the outside world passed to my VM's. I have tried to set up additional "Linux Bridge"s but this is failing every time. I have tried to add another vmbr and I have also tried to edit the second ethernet.

This is from PROXMOX
Code:
auto lo
iface lo inet loopback

iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.247
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports enp4s0
        bridge_stp off
        bridge_fd 0

iface enp5s0 inet manual
 
It took me a bit of playing but I figured it out and it works quite nicely actually!!

I had to leave all IP information out and active the second ethernet port. Then I created another blank bridge and just assigned it to my machines using vmxnet3 types of ports for both and voila I was able to set my static IP's in the VM's via console.
 

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!