How to connect virtualized network to phyiscal network

  • Thread starter Thread starter samiux
  • Start date Start date
S

samiux

Guest
I virtualized a network inside Proxmox and want to connect to the existing phyiscal network. How to do that? Thanks.
 
History

I had setup a virtualized network by VirtualBox on a desktop PC. One of the servers in the virtualized network was a OpenBSD server which act as a network tap that to connect to a physical switch. The physical switch then connected to a physical wifi router and one wired physical desktop PC.

All wireless and wired PCs could surf the internet via the VirtualBox desktop PC.

Limitation

I had tried to install OpenBSD on Proxmox but it could boot up properly. Therefore, I could not make a virtualized network tap by OpenBSD.

Now

I have 3 network interfaces (eth0, eth1, & eth2) and also have 2 real IPs. The eth0 is for Proxmox which is connected to a wired router. The wired router is equipped with firewall (one real IP is used). eth1 is for the virtualized network to connect to internet by a virtualized router (another real IP is used).

The virtualized servers inside Proxmox are connected to a virtualized switch.

I want to use eth2 to connect to a physical switch in order to connect other physical PCs.

I would like to do the captioned network by mean of Proxmox. How can I make a network tap with Proxmox? Can I bridge Proxmox virtualized network interface (virtualized switch) with a physical network interface (eth2)? If yes, how to do that?

The structure would be :

internet --> Proxmox virtual network (consists of some virtualized servers) --> Proxmox virtual switch --> physical switch --> physical desktop PCs

Any idea? Thank you.
 
You can create a bridges (virtual switch), and add arbitrary physical ports. for example:

vmbr0 -> eth0
vmbr2 -> eth2

- Dietmar
 
Sorry, I am not fully understand.

If I set eth0 for Proxmox, eth1 to vmbr1 (the virtualized router) and eth2 to vmbr2 (the virtual switch with no IP assigned), how can I connect two vmbr1 and vmbr2? In addition, can internal virtual servers be connected via vmbr2?
 
Sorry, I am not fully understand.

If I set eth0 for Proxmox, eth1 to vmbr1 (the virtualized router) and eth2 to vmbr2 (the virtual switch with no IP assigned), how can I connect two vmbr1 and vmbr2?

You can select the bridge when you create a VM.

In addition, can internal virtual servers be connected via vmbr2?

yes.
 
VMs can connect to vmbr2 and they can surf the internet.

However, I cannot make vmbr2 (eth2) to connect to the physical switch that connecting to a desktop.

Anything I missed?

Updated :

I can surf the internet from the physical desktop via physical switch that connecting to eth2.

Thank you very much.
 
Last edited by a moderator:
VMs can connect to vmbr2 and they can surf the internet.

However, I cannot make vmbr2 (eth2) to connect to the physical switch that connecting to a desktop.

Please can you post your network config (/etc/network/interfaces)?

- Dietmar
 
dietmar,

Thank you for your guide. My problem is solved. My Proxmox box which is connected to physical network is running smoothly and prefectly.

Thank you very much.

Samiux