[Users] veth address persistence

Chris McGee cmcgee at gliq.com
Mon Mar 23 17:18:49 EDT 2009


I am currently running a test environment with 1 CT on 1 HN running centos.
The CTID 101 is using a veth interface instead of venet because this setup
will be required for multiple networks when implemented in my live
environment.  Everything works when I start the VE and manually ifconfig the
interface and setup the default route.  When restarting the VE the ip/route
disappears, however, the bridge gets configured correctly.

 

My current /etc/vz/vznet.conf contains the following:

#!/bin/bash

EXTERNAL_SCRIPT="/usr/sbin/vznetaddbr"

 

The network config in 101.conf is the following:

NETIF="ifname=eth0,bridge=br0,mac=00:18:51:2C:DD:2D,host_ifname=veth101.0,ho
st_mac=00:18:51:68:37:52"

CONFIG_CUSTOMIZED="yes"

VETH_IP_ADDRESS="192.168.11.244/24"

VE_DEFAULT_GATEWAY="192.168.11.1"

 

Am I missing some step?  Maybe another EXTERNAL_SCRIPT to initialize the
ip/routes?

 

Thanks in advance,

Chris M

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20090323/319496b8/attachment.html


More information about the Users mailing list