OpenVZ Forum


Home » General » Support » OpenVZ with bridged interfaces and VLAN (OpenVZ with bridged interfaces and VLAN)
Re: OpenVZ with bridged interfaces and VLAN [message #39877 is a reply to message #39864] Sat, 12 June 2010 16:30 Go to previous messageGo to previous message
deimosfr is currently offline  deimosfr
Messages: 4
Registered: June 2010
Junior Member
Hi !

Thanks for your answer. So I'm trying what you told me and I still can't get network in my VE.

On the master host, I pull off the VLAN and br0.110 interface to let only br0.

Then I configured the VE to be on br0 interface :
CONFIG_CUSTOMIZED="yes"
VZHOSTBR="br0"
IP_ADDRESS=""
NAMESERVER="192.168.100.3"
NETIF="ifname=eth0,mac=00:18:51:78:46:C8,host_ifname=veth103.0,host_mac=00:18:51:B1:78:DE"


Then in my VE interfaces, here is what I've got :
auto lo eth0.110
iface lo inet loopback

iface eth0.110 inet static
	address 192.168.110.10
	netmask 255.255.255.0
	#gateway 192.168.110.254
	#network 192.168.110.0
	broadcast 102.168.110.255
	vlan_raw_device eth0

And to finish, to validate the vlan config :
> cat /proc/net/vlan/eth0.110 

eth0.110  VID: 110	 REORDER_HDR: 1  dev->priv_flags: 1
         total frames received            1
          total bytes received           46
      Broadcast/Multicast Rcvd            0

      total frames transmitted           15
       total bytes transmitted         2086
            total headroom inc            0
           total encap on xmit           15
Device: eth0
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings: 


I can't ping my router (of course on the same subnet) with this VE but I can from another host not in this VLAN for example.

I'm still wondering why it doesn't work as it looks like so simple on the documentation.

Thanks

[Updated on: Sat, 12 June 2010 16:31]

Report message to a moderator

 
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: Thu Nov 14 20:12:47 GMT 2024

Total time taken to generate the page: 0.03336 seconds