OpenVZ with brdiged interfaces and VLAN

Posted by Deimosfr on Server Fault See other posts from Server Fault or by Deimosfr
Published on 2010-06-05T19:46:36Z Indexed on 2010/06/05 19:53 UTC
Read the original article Hit count: 348

Filed under:
|
|
|
|

Hi, I've got a problem with OpenVZ with brdiged VLAN. Here is my configuration :

                                                    +------+
 +-------+    +-----------+      +---------+  br0   |VE101 |
 |       |    |  OpenBSD  |----->| Debian  |------->|      |   
 | WAN   |--->|  Router   |      | OpenVZ  |        +------+
 |       |    |  Firewall |----->| br0 br1 |  br1   +------+
 +-------+    +-----------+      +---------+------->|VE102 |
                                     |br0           |      |   
                                     |VLAN br0.110  +------+
                                     v    
                                 +---------+     
                                 |VE103.110|           
                                 +---------+    

I can't make VLAN working on br0 (br0.110) and I would like to understand why. I don't have any switch so no problem with unmanageable switch.

I've configured a VLAN interface on OpenBSD in /etc/hostname.vlan110 :

inet 192.168.110.254 255.255.255.0 NONE vlan 110 vlandev sis1

And it seams working fine. I've also adapted my PF configuration to work with VLAN but I don't see any incoming traffic.

On my Debian lenny, here is my interfaces configuration :

# The loopback network interface
auto lo
iface lo inet loopback

# br0
auto br0
iface br0 inet static
    address 192.168.100.1
    netmask 255.255.255.0
    gateway 192.168.100.254
    network 192.168.100.0
    broadcast 192.168.100.255
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

# VLAN 110
auto br0.110
iface br0.110 inet static
    address 192.168.110.1
    netmask 255.255.255.0
    network 192.168.110.0
    gateway 192.168.110.254
    broadcast 192.168.110.255
    pre-up vconfig add br0 110
    post-down vconfig rem br0.110

It looks like ok, but when I start my VE, here is the message :

...
Configure veth devices: veth103.0 
Adding interface veth103.0 to bridge br0.110 on CT0 for VE103
can't add veth103.0 to bridge br0.110: Operation not supported
VE start in progress...

So I've got one error here. I've followed this documentation http://wiki.openvz.org/VLAN but it doesn't work. I've certainly missed something but I don't know why. Someone could help me please ?

Thanks

© Server Fault or respective owner

Related posts about debian

Related posts about vlan