ia64/xen-unstable

view tools/examples/network-route @ 12647:4dad3420d74a

Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
author kfraser@localhost.localdomain
date Wed Nov 29 10:57:30 2006 +0000 (2006-11-29)
parents 0a4b76b6b5a0
children b071319927b6
line source
1 #!/bin/sh
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 /etc/xen/xend-config.sxp
6 # in the network-script field.
7 #
8 # Usage:
9 #
10 # network-route (start|stop|status) {VAR=VAL}*
11 #
12 # Vars:
13 #
14 # netdev The gateway interface (default eth0).
15 # antispoof Whether to use iptables to prevent spoofing (default yes).
16 #
17 #============================================================================
19 dir=$(dirname "$0")
20 . "$dir/xen-script-common.sh"
22 evalVariables "$@"
24 netdev=${netdev:-eth${vifnum}}
26 echo 1 >/proc/sys/net/ipv4/ip_forward
27 echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp