Bridging problems

S

Shetil

Guest
Hi all.

We had a working proxmox server running with several vm's when we decided to do some changes to the setup and now I can't get network bridges to work.

We have a server wit a single network interface (eth0) that we want do set up with several vlans.

This is how the /etc/network/interfaces looks like:

Code:
[FONT=monospace]auto lo[/FONT]
iface lo inet loopback

iface eth0 inet manual

#Proxmox server
auto vmbr0
iface vmbr0 inet static
     address 194.x.x.x    
     netmask 255.255.255.252    
     gateway 194.x.x.x    
    
     bridge_ports eth0    
     bridge_stp off    
     bridge_fd 0

#Vlan for the first VM     
auto vmbr1
iface  vmbr1 inet static
     address 195.x.x.x
     netmask 255.255.255.252

     bridge_ports eth0.1
     bridge_stp off
     bridge_fd 0

With this setup all traffic goes to the proxmox server also traffic to 195.x.x.x. I suspect it has something to do with bridged ports on vmbr0.

This seems to be such a simple setup and but I can't get it to work any more. Help much appreciated.
 
After googling and testing my interfaces file looks like this:

Code:
auto lo
iface lo inet loopback

iface eth0 inet manual

#Proxmox server
auto vmbr0
iface vmbr0 inet static
     address 194.x.x.x         
    netmask 255.255.255.252         
    gateway 194.x.x.x
    
    bridge_ports eth0.1
    bridge_stp off         
    bridge_fd 0

#Vlan for the first VM     
auto vmbr1
iface  vmbr1 inet manual     
   bridge_ports eth0.2     
   bridge_stp off     
   bridge_fd 0

Now vmbr0 is also on a vlan and I have removed the address config for vmbr1.

Still no joy. It seems like the vlan is the culprit because using tcpdump reveals that no packets reaches the bridges and webserver and ssh are down on the proxmox server.

Any tip on how to troubleshoot this vlan mess?
 
Please, always clarify whether your are talking about venet or veth implementation, because they are totally different.

If you mean venet, then you must assign a reasonable address to vmbr1. If not, then built-in ARP proxy won't be able to determine which vmbr is responsible for operation of one or the other of VE's internal interfaces.
 

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!