OpenVZ Forum


Home » General » Support » Handle ip from inside VE
Re: Handle ip from inside VE [message #22165 is a reply to message #22139] Mon, 22 October 2007 17:58 Go to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
http://en.wikipedia.org/wiki/Proxy_ARP

If it might help , this is my network configuration for bridge:
projsrv1 ~ # cat /etc/vz/vznet.conf 
#!/bin/bash

EXTERNAL_SCRIPT="/etc/vz/bin/vzbridge.add"
projsrv1 ~ # cat /etc/vz/bin/vzbridge.add 
#!/bin/bash

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

BRIDGED_VES_REGEXP='(101|102|103)'
echo "$VEID" | egrep -e "$BRIDGED_VES_REGEXP" > /dev/null
if [ "$?" == "0" ]; then

        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 br0 veth${VEID}.0
        exit $?
fi

exit 0
projsrv1 ~ #

The eth0 is enslaved to br0

[Updated on: Mon, 22 October 2007 18:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Failover active/active Questions
Next Topic: NFS mounts disappearing from OAS servers
Goto Forum:
  


Current Time: Thu Jul 24 05:31:10 GMT 2025

Total time taken to generate the page: 0.27236 seconds