OpenVZ Forum


Home » General » Support » OpenVZ with bridged interfaces and VLAN (OpenVZ with bridged interfaces and VLAN)
OpenVZ with bridged interfaces and VLAN [message #39818] Sun, 06 June 2010 07:44 Go to previous message
deimosfr is currently offline  deimosfr
Messages: 4
Registered: June 2010
Junior Member
Hi !

I've got a problem with OpenVZ with bridged 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 work on br0 (br0.110) and I would like to understand why. I don't have any switch so no problem with unmanageable switch.

When I say it doesn't work, for example I can't ping the default gateway and it works from other hosts (not in VLAN).

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 seems to be 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 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need to connect my centos container to the wifi
Next Topic: Xorg - no render extension inside VE
Goto Forum:
  


Current Time: Fri Oct 11 08:24:08 GMT 2024

Total time taken to generate the page: 0.06194 seconds