[Users] veth address persistence

2009-03-23 Thread Chris McGee
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

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] veth address persistence

2009-03-23 Thread Gregor at HostGIS
Am I missing some step?  Maybe another EXTERNAL_SCRIPT to initialize the 
ip/routes?


Yeppers.

http://wiki.openvz.org/Veth#Making_a_veth-device_persistent

--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users