[pve-devel] disabling iptables on bridge by default (like rhel6 and rhev) ?

Alexandre DERUMIER aderumier at odiso.com
Wed Mar 7 10:53:17 CET 2012


Ok, I'll put it on my top priority list !


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 7 Mars 2012 10:41:57 
Objet: RE: [pve-devel] disabling iptables on bridge by default (like rhel6 and rhev) ? 

> To be honest,I didn't know that we can put vlan on a linux bridge. 
> 
> I always put vlan on ethX, then put a bridge on it 

Yes, me too - I just found that recently. But I do not know if it works - not tested so far. 

> So, I understand the thread: 
> 
> adding a new bridge,tagged with specific vlan, on the main non tagged 
> bridge,then put the tap interface on it. 
> 
> 
> vm with vlan2: 
> -------------- 
> 
> system ("/sbin/vconfig add vmbr0 2"); 
> system ("/usr/sbin/brctl addbr br2"); 
> system ("/usr/sbin/brctl addif br2 vmbr0.2"); system ("/sbin/ip link set br2 up"); 
> system ("/usr/sbin/brctl addif br2 tapxxxi0") ; 
> 
> 
> /etc/network/interface 
> ------------ 
> auto eth0 
> iface eth0 inet manual 
> auto eth1 
> iface eth1 inet manual 
> 
> auto bond0 
> iface bond0 inet manual 
> slaves eth0 eth1 
> bond_miimon 100 
> bond_mode active-backup 
> pre-up ifup eth0 eth1 
> post-down ifdown eth0 eth1 
> 
> auto vmbr0 
> iface vmbr0 inet manual 
> bridge_ports bond0 
> bridge_stp off 
> bridge_fd 0 
> 
> 
> 
> if it's works, I could really be fine, because It's really a pain when I need to add 
> new vlan on all my proxmox hosts. 
> 
> Do you want to add a new vlan option to netX interfaces definition ? 

Yes, that is the idea. 

> I'll test that to see if it's working fine. 
> (Do you plan to add it for proxmox 2.0 release ???) 

Yes, I would add that if it works. 

- Dietmar 



-- 

-- 




	Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
	


More information about the pve-devel mailing list