aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-18 13:40:22 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-18 13:40:22 +0000
commit7d25fcefa9e2a5aa160177283b4f1ef42121c94c (patch)
tree753f5eb6a72573bffaa3e727eadd224c588c0c3c /tools/examples
parent3d074d85e20fcb7b48b8c90d714216dd466baf3d (diff)
downloadxen-7d25fcefa9e2a5aa160177283b4f1ef42121c94c.tar.gz
xen-7d25fcefa9e2a5aa160177283b4f1ef42121c94c.tar.bz2
xen-7d25fcefa9e2a5aa160177283b4f1ef42121c94c.zip
Revert network-nat script changes introduced by 16739:33dcf04d77152.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/examples')
-rw-r--r--tools/examples/network-nat6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/examples/network-nat b/tools/examples/network-nat
index 165d92ca68..62d2b0c259 100644
--- a/tools/examples/network-nat
+++ b/tools/examples/network-nat
@@ -43,9 +43,9 @@ fi
function dhcp_start()
{
- if ! grep -q "subnet 192.0.2.0" "$dhcpd_conf_file"
+ if ! grep -q "subnet 10.0.0.0" "$dhcpd_conf_file"
then
- echo >>"$dhcpd_conf_file" "subnet 192.0.2.0 netmask 255.255.255.0 {}"
+ echo >>"$dhcpd_conf_file" "subnet 10.0.0.0 netmask 255.255.0.0 {}"
fi
"$dhcpd_init_file" restart
@@ -55,7 +55,7 @@ function dhcp_start()
function dhcp_stop()
{
local tmpfile=$(mktemp)
- grep -v "subnet 192.0.2.0" "$dhcpd_conf_file" >"$tmpfile"
+ grep -v "subnet 10.0.0.0" "$dhcpd_conf_file" >"$tmpfile"
if diff "$tmpfile" "$dhcpd_conf_file" >&/dev/null
then
rm "$tmpfile"