OpenVZ Forum


Home » General » Support » howto auto add VE veth to a HN bridge upon VE startup?[Solved]
Re: howto auto add VE veth to a HN bridge upon VE startup? [message #20225 is a reply to message #20062] Thu, 13 September 2007 13:30 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
ok, i have good news for you.
When you add a veth device to the bridge manually it (veth101.0 interface) is already in the UP state.
At the same time when the script /etc/vz/veth.bridge.addif runs veth101.0 is still down cause avahi-daemon hasn't brought it UP yet. Thus brctl adds downed interface into the bridge and that's why veth doesn't work.

To correct this it's enough to add a line to the /etc/vz/veth.bridge.addif:

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

+       ifconfig veth${VEID}.0 0
        brctl addif dmzbr0 veth${VEID}.0
        exit $?


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
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: Audit issues
Next Topic: private vs root
Goto Forum:
  


Current Time: Sat Sep 28 19:11:03 GMT 2024

Total time taken to generate the page: 0.03924 seconds