OpenVZ Forum


Home » General » Support » veth support (networking)
veth support [message #43562] Fri, 23 September 2011 11:40
jamg77 is currently offline  jamg77
Messages: 2
Registered: September 2011
Junior Member
Hello,

I am new to openvz. I have followed all the tutorials in the wiki. I am trying to add two or more veth to a CT. The problem that I am having is that once I add the second veth to the CT it starts to have a 80% packet loss.

I have two networks attached to the CT0.
CT0 - eth4 is 192.168.64.0/20
eth2 is 10.11.8.0/24
I added the veth by running
[CT0]# vzctl set 212 --netif_add eth4 --save
[CT0]# vzctl set 212 --netif_add eth2 --save

[CT0]# echo 1 > /proc/sys/net/ipv4/conf/veth212.4/forwarding
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/veth212.4/proxy_arp
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/eth4/forwarding
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/eth4/proxy_arp

[CT0]# echo 1 > /proc/sys/net/ipv4/conf/veth212.2/forwarding
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/veth212.2/proxy_arp
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/eth2/forwarding
[CT0]# echo 1 > /proc/sys/net/ipv4/conf/eth2/proxy_arp

[CT0]# ip route add 192.168.69.212 dev veth212.4
[CT0]# ip route add 192.168.69.212 dev veth212.2

[CT212}# ifconfig eth4 0
[CT212}# ifconfig eth2 0
[CT212}# ip addr add 192.168.69.212/20 dev eth4
[CT212}# ip addr add 10.11.8.212/24 dev eth2
[CT212}# ip route add default dev eth4

I ran tcpdump on veth212.4 which is the one giving me a hard time, and it shows that while pinging 192.168.64.1 (router) arp request gets a response 10.11.8.211 (CT0) has the address 192.168.69.212.

I can get it to work using vnet, but I need to be able to broadcast that's why I'm trying to set up veth.

Can anyone tell me what am I doing wrong? I actually need to be able to add another netif. I appreciate all the help.
thanks,


jamg
 
Read Message
Previous Topic: Bandwidth limit VPS
Next Topic: Memory Allocation
Goto Forum:
  


Current Time: Mon Aug 05 22:19:54 GMT 2024

Total time taken to generate the page: 0.03106 seconds