OpenVZ Forum

Home » General » Support » openvz and networking
openvz and networking [message #45633] Sat, 24 March 2012 10:18
yoshx is currently offline  yoshx
Messages: 2
Registered: March 2012
Junior Member

I don't understand something about networking in openvz

I used ipadd to assign an ip in my vm. I can ping it only on my server. If i want to joign a service i have to use iptables.

But i want to access to all my vm

I have only on network card on my server so i use vlan eth0.5.
My network is
I created a bridge br0 with eth0.5 my vlan. I assign to my br0.

vzctl set 101 --netif_add eth0.5. It create veth101.0. So i add it to br0.

br0 8000.0018513b5806 no eth0.5

In vm 101 eth0.5 has I add a route (net route add default dev eth0.5). I didn't ping anything.
On my lan i ping .100 but not .101.

In vm 101 i ping other vm i had in the br0 put never br0's ip

I saw the command --netdev_add et i used it on another vm 102. I assign eth0.5 to vm 102 but i couldn't ping anything.

My goal is to access to my vm as it was a real server

thanks for your help
Previous Topic: direct mount of lvm snapshot into VE
Next Topic: warning: /etc/vz/vz.conf created as /etc/vz/vz.conf.rpmnew
Goto Forum:

Current Time: Fri Dec 02 16:00:04 GMT 2022

Total time taken to generate the page: 0.02222 seconds