2
#============================================================================
3
# Default Xen network start/stop script.
4
# Xend calls a network script when it starts.
5
# The script name to use is defined in ${XEN_CONFIG_DIR}/xend-config.sxp
6
# in the network-script field.
10
# network-route (start|stop|status) {VAR=VAL}*
14
# netdev The gateway interface (default eth0).
15
# antispoof Whether to use iptables to prevent spoofing (default yes).
17
#============================================================================
20
. "$dir/hotplugpath.sh"
21
. "$dir/xen-script-common.sh"
25
netdev=${netdev:-eth${vifnum}}
27
echo 1 >/proc/sys/net/ipv4/ip_forward
28
echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp