6,534
edits
Changes
→method for vzctl version <= 3.0.22: more CTID->VEID
if [ ! -n "$VZHOSTIF" ]; then
echo "According to $CONFIGFILE CT$CTID VEID has no veth interface configured."
exit 1
fi
if [ ! -n "$VZHOSTBR" ]; then
echo "According to $CONFIGFILE CT$CTID VEID has no bridge interface configured."
exit 1
fi
echo "Adding interface $VZHOSTIF to bridge $VZHOSTBR on CT0 for CT$CTIDVEID"
/sbin/ifconfig $VZHOSTIF 0
echo 1 > /proc/sys/net/ipv4/conf/$VZHOSTIF/proxy_arp