mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Add VIF-routing capability to xend. The default is still to bridge.
20 lines
584 B
Bash
Executable File
20 lines
584 B
Bash
Executable File
#!/bin/sh
|
|
#============================================================================
|
|
# 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).
|
|
#
|
|
#============================================================================
|
|
|
|
echo 1 >/proc/sys/net/ipv4/ip_forward
|