OpenVZ Forum


Home » General » Support » VE networking question
Re: VE networking question [message #32689 is a reply to message #32687] Sun, 24 August 2008 13:00 Go to previous messageGo to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
I think that you should change $CTID to $VEID
in all your custom scripts. Probably the naming scheme has changed
with vzctl versions newer than 3.0.22 from VE to CT.

This is what i've setup

#!/bin/bash

CONFIGFILE=/etc/vz/conf/$VEID.conf
. $CONFIGFILE
VZHOSTIF=`echo $NETIF |sed 's/^.*host_ifname=\(.*\),.*$/\1/g'`

if [ ! -n "$VZHOSTIF" ]; then
        echo "According to $CONFIGFILE VE$VEID has no veth interface configured."
        exit 1
fi
if [ ! -n "$BRIDGEDEV" ]; then
        echo "According to $CONFIGFILE VE$VEID veth interface is not enslaved to any bridge."
        exit 1
fi

ifconfig veth${VEID}.0 0
brctl addif ${BRIDGEDEV} veth${VEID}.0
exit $?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What control panel for testing server.
Next Topic: which ve's start on machine boot
Goto Forum:
  


Current Time: Fri Aug 16 22:30:50 GMT 2024

Total time taken to generate the page: 0.02858 seconds