OpenVZ Forum


Home » General » Support » Bonding 2 nics and vlans works partly (Vlans work, LAG don't work. What am I doing wrong?)
Bonding 2 nics and vlans works partly [message #51031] Sat, 28 December 2013 23:08
Gerard64 is currently offline  Gerard64
Messages: 6
Registered: August 2011
Location: Eijsden / The Netherlands
Junior Member
I have one openvz host with 10 vps's. The host is in the dmz (vlan66) network just as 9 of 10 of my vm's. I have the 2 nics on the host machine teamed together in /etc/network/interfaces

# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode 802.3ad

auto vmbr0
iface vmbr0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.250
bridge_ports bond0
bridge_stp off
bridge_fd 0

I found this configuration on "pve.proxmox.com/wiki/Network_Model".

This works 100% the way i want. Host can update debian from the internet and the vm's can be reached everything oke. Except one thing. I did not set the 2 switch ports to LAG lacp. I have de openvz host connected to port 7 & 8 of my switch and vlan22(lan) & vlan88(wlan) tagged and vlan66(dmz) untagged.

Wen I setup LAG1(lacp) with switch ports 7 & 8 and set the vlans 22 & 88 tagged and 66 untagged. I can't reach my vm's and the host machine can't reach the internet. I read and search many maaaaany howto's, tutorials and forums posts but whatever I do it wont work. Wen I remove lag1 everything works 100% again.

How can I have a working LAG with vlans? Also the host machine is on a vlan (vlan 66 (dmz)). vm's are on vlan66 vlan22 and vlan88.
Previous Topic: Copy data from container to host
Next Topic: Bridging with NIC alias possible?
Goto Forum:
  


Current Time: Wed Oct 09 16:17:34 GMT 2024

Total time taken to generate the page: 0.05944 seconds