You do not need to restart your network over and over again. Just setting your sysctl settings correctly should do the trick. Have a look at http://sunoano.name/ws/openvz.html#sysctl_openvz