no VLAN traffic between vm and pc

bluto

Member
Jun 24, 2014
3
0
21
Italy
Hi all, after a week of tests and errors I'm really going crazy to figure how to carry out my VLAN configuration, so I ask some help here.

This is my setup:
Proxmox 3.4.6 installed on a HP ProLiant DL380e; the server has 4 ethernet cards connected to a Cisco SG200-26 switch. I use eth0 only for management and I bonded together the other three cards in LAG mode for VM traffic. I need to use VLANs, so I configured the Cisco in this way:
LAG1: mode trunk, default VLAN untagged, VLAN 10 and 100 tagged member
switch port connected to my pc: mode trunk, default VLAN untagged, VLAN 10 and 100 tagged member.

Here's my /etc/network/interface:
Code:
auto vlan100
iface vlan100 inet manual
    vlan-raw-device bond0

auto vlan10
iface vlan10 inet manual
    vlan-raw-device bond0

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto bond0
iface bond0 inet manual
    slaves eth1 eth2 eth3
    bond_miimon 100
    bond_mode 802.3ad
    
# this bridge is only for management
auto vmbr0
iface vmbr0 inet static
    address  192.168.0.1
    netmask  255.255.255.0
    gateway  192.168.0.2
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

# bridges for VM traffic

# bridge for the main network
auto vmbr1
iface vmbr1 inet manual
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0

# bridge for VLAN 10
auto vmbr10
iface vmbr10 inet manual
    bridge_ports vlan10
    bridge_stp off
    bridge_fd 0

# bridge for VLAN 100
auto vmbr100
iface vmbr100 inet manual
    bridge_ports vlan100
    bridge_stp off
    bridge_fd 0

I created 2 openvz machines (vm1 and vm2) for testing and this is the result:
- If I bind the vms on vmbr1 all works fine, I can ping them from my pc and they can ping each other;
- If I bind the vms on vmbr100 (or vmbr10) the vms can ping each other (so I assume the vlan interfaces are ok), but there's no traffic between them and my pc. The ping command says: Destination Host Unreachable


Can anyone tell me if the problem is in the Cisco switch configuration or in Proxmox?
I would greatly appreciate any hint, and sorry for my poor english :(

bluto
 
Last edited:

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!