Two Physical Network with IP Local and IP Public

fachrul razy

New Member
Sep 8, 2017
2
1
1
32
Hello all,
I'm new in proxmox and I have this issue:
I installed Proxmox 4.4 in Physical server that have two physical network card (2 NIC).
Host OS/Proxmox:
  1. vmbr0 >>bridge>> eth0 > Local IP (172.16.x.x)
  2. vmbr1 >>bridge>> eth1 > Public IP (202.x.x.x)
Guest OS/Centos 7:
  1. eth0 >>bridge>> vmbr0 (172.16.x.x)
This is my configuration in file /etc/network/interfaces (Host OS/Proxmox):
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
#IP Lokal

auto eth1
iface eth1 inet manual
#IP Publik

auto vmbr0
iface vmbr0 inet static
        address  172.16.x.x
        netmask  255.255.255.0
        gateway  172.16.x.x
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
   address  202.x.x.x
        netmask  255.255.255.0
        gateway  202.x.x.x
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

This is my current network configuration file in one of my VM (Guest OS/Centos 7):
Code:
DEVICE=eth0
HWADDR=0A:13:4F:E1:AD:ED
TYPE=Ethernet
UUID=534a5ea9-ce94-4fdc-9eb7-c284846c7021
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=172.16.x.x
NETMASK=255.255.255.0
GATEWAY=172.16.x.x
DNS1=172.16.x.x
DNS2=8.8.8.8

My questions are:
Can I use Interface vmbr0 (local) on my VMs to access them from outside my local network (public internet)?
Is there any additional configuration to get these things work?

Regards,
 
  • Like
Reactions: Dersonmanhique
do you plan to assign public IPs to your VMs ?
if yes you can create an second NIC for your VM, add it to the vmbr1 bridge and inside the VM configure it with a public IP
 
thank you for your reply,

so the ip public will sign to vm interface and the proxmox interface (eth1) bridge to vmbr1?
 

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!