source: trunk/packages/xen-3.1/xen-3.1/tools/examples/network-route @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:executable set to *
File size: 741 bytes
Line 
1#!/bin/bash
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#============================================================================
18
19dir=$(dirname "$0")
20. "$dir/xen-script-common.sh"
21
22evalVariables "$@"
23
24netdev=${netdev:-eth${vifnum}}
25
26echo 1 >/proc/sys/net/ipv4/ip_forward
27echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp
Note: See TracBrowser for help on using the repository browser.