VM "teaming"

BitRausch

Renowned Member
Mar 16, 2009
140
0
81
Muenster
Hi guys,

I am trying to team up 2 kvm vm's in a subnet. I do have problems with the whole network/routing thing and I was wondering if you could help me on this.

pve server 1.3
2 NIC
1) 192.168.178.x - vmbr0
GW 192.168.178.1

2) 192 168.16.1 - vmbr1

Two kvm vm with vmbr1.
a) linux - ip 192.168.16.11
b) windows - ip 192.168.16.2


interfaces:

iface vmbr0 inet static
address 192.168.178.22
netmask 255.255.255.0
gateway 192.168.178.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.16.1
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0
up route add -net 192.168.16.0 netmask 255.255.255.0 dev vmbr1
down route add -net 192.168.16.0 netmask 255.255.255.0 dev vmbr1

Somehow I am not able to reach any of the vm ip's.
I am pretty sure it's probably a simple mistake but I can not figure it out.:(
Any help would be appreciated.

Kind regards
B.
 
Hi dietmar,

I am not able to reach any of the vm's ip address. E.g ping 192.168.16.11 does not work. I am not very good with linux networking so I am not sure what is wrong.
If I change the vm ip to the 192.168.178.x subnet I can see them without a problem.

Basically I need to simulate a different subnet with 2 machines included in that net. So I thought I could use the 2nd NIC to create the subnet.
Maybe my thinking is wrong...

Thanks in advance for your time.

Kind regards
B.
 
Re: VM "teaming" -SOLVED

Hi dietmar,

I found the error:

I had to provide the vmbr1 address as the gateway address to vm ip configuration and set a static route to the router!!

here is the solution for anybody who is interested:

PVE Server interfaces:

iface vmbr0 inet static
address 192.168.178.22
netmask 255.255.255.0
gateway 192.168.178.1
bridge_ports eth0
bridge_stp off
bridge_fd 0


auto vmbr1
iface vmbr1 inet static
address 192.168.16.10
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0


vm entry (ubuntu interfaces as a sample)

iface eth0 inet static
address 192.168.16.11
netmask 255.255.255.0
gateway 192.168.16.10

On my router (AVM FritzBox 7170) I added a static route:
Network 192.168.16.0
Netmask 255.255.255.0
Gateway 192.168.178.1

Now I can ping/reach all my clients :p

Kind regards
B.
 

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!