Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > media > main-testing > by-pkgid > 7564505c8b39bb85c995aba611b95a8a > files > 26

xen-3.3.0-7.2mdv2009.0.i586.rpm

#!/bin/bash
#============================================================================
# Default Xen network start/stop script.
# Xend calls a network script when it starts.
# The script name to use is defined in /etc/xen/xend-config.sxp
# in the network-script field.
#
# Usage:
#
# network-route (start|stop|status) {VAR=VAL}*
#
# Vars:
#
# netdev     The gateway interface (default eth0).
# antispoof  Whether to use iptables to prevent spoofing (default yes).
#
#============================================================================

dir=$(dirname "$0")
. "$dir/xen-script-common.sh"

evalVariables "$@"

netdev=${netdev:-eth${vifnum}}

echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp