--- /etc/rc.d/init.d/vz.ORIG 2006-08-09 21:36:20 +0600 +++ /etc/rc.d/init.d/vz 2006-08-18 11:42:00 +0600 @@ -122,6 +122,10 @@ return 0 fi load_modules ${NET_MODULES} || return + [ -s /etc/net/ifaces/${VZDEV}/ipv4address ] && + { ifup ${VZDEV} + return ; + } action "Bringing up interface $VZDEV:" \ ip link set ${VZDEV} up || return action "Assigning address to interface $VZDEV:" \ --- /etc/vz/dists/scripts/etcnet-add_ip.sh.ORIG 2006-08-09 21:36:20 +0600 +++ /etc/vz/dists/scripts/etcnet-add_ip.sh 2006-08-18 11:52:49 +0600 @@ -82,7 +82,7 @@ local ip="$1" && shift local ifnum="$1" && shift - echo "$ip/32 label $VENET_DEV:$ifnum" >>".tmp/$VENET_DEV/ipv4address" || + echo "$ip/24 label $VENET_DEV:$ifnum" >>".tmp/$VENET_DEV/ipv4address" || error "Cannot create .tmp/$VENET_DEV/ipv4address" ${VZ_FS_NO_DISK_SPACE} }