Bridging two vms on the same node

Lamia

Member
Jun 25, 2020
24
0
6
34
Hello.

I am a total newbie to Proxmox.

I have two Proxmox nodes. One is 10.200.0.20 and the other is 10.200.0.21

In the first one, I have 2 restored test vms that I would like to connect into a bridge. How to do that?

Is it necessary to create another bridge than the default one?

Thanks
 
hi,

go to your created VM and select 'Hardware' and then find the network device in the list. if you double click on it, a panel will pop up where you can select the options.

if your default bridge is working you can just use that
 
Thanks for your reply oguz. What if I would like to connect the nodes to the Internet? They are currently linked through a switch.

Thanks
 
the default configured bridge should have access to the internet

if it's not working then please run this command and post the output: cat /etc/network/interfaces (you can use [code] [/code] tags when pasting the output here)
 
This is my configuration on the first node

Both servers are linked through a switch and are in a cluster. The I have a desktop that I use to access both servers linked through the switch too with the IP address 10.200.0.2 (set manually). I would like to connect both nodes and the desktop to Internet. If I want to access the internet, I now have to unplug the desktop from the switch and plug elsewhere and change settings so that I get an IP address automatically.

Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.200.0.20
        netmask  255.255.255.0
        gateway  10.200.0.19
        bridge-ports enp1s0
        bridge-stp on
        bridge-fd 1
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

Thanks a lot
 
general network config info can be found here [0]

also check this image for an example setup [1]

default-network-setup-bridge.svg



your configured gateway should be routing to the internet for the external connection to work.



[0]: https://pve.proxmox.com/wiki/Network_Configuration#_default_configuration_using_a_bridge
[1]: https://pve.proxmox.com/pve-docs/images/default-network-setup-bridge.svg
 

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!