From 93a23bc8d2ee2768e7892da8a9d7edbea59ac2d2 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 24 Jan 2013 05:14:34 +0000 Subject: [PATCH] enable ip forwarding on debian/ubuntu when running xcatconfig git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/NetworkUtils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index 5edfa01f4..3307a5665 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -469,6 +469,7 @@ sub setup_ip_forwarding `grep "net.ipv4.ip_forward" $conf_file`; if ($? == 0) { `sed -i "s/^net.ipv4.ip_forward = .*/net.ipv4.ip_forward = $enable/" $conf_file`; + `sed -i "s/^#net.ipv4.ip_forward *= *.*/net.ipv4.ip_forward = $enable/" $conf_file`; #debian/ubuntu have different default format } else { `echo "net.ipv4.ip_forward = $enable" >> $conf_file`; }