From 7b741227babec359ea35785e2c3d4709e4101bde Mon Sep 17 00:00:00 2001 From: xiaodongwang991481 Date: Tue, 5 Jan 2016 23:26:00 -0800 Subject: [PATCH] update install.conf.template Change-Id: Ia0d955455ad15aa01ac3dabf0077738942cdf2ad --- install/install.conf.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.conf.template b/install/install.conf.template index 4d4df8f5..6f593225 100755 --- a/install/install.conf.template +++ b/install/install.conf.template @@ -24,8 +24,8 @@ export SUPPORT_CENTOS_7_2=${SUPPORT_CENTOS_7_2:-"y"} export SUPPORT_UBUNTU_14_04_03=${SUPPORT_UBUNTU_14_04_03:-"y"} # DHCP config -# export IPADDR=`ifconfig $NIC | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` -export IPADDR=`ip addr show $NIC | grep "inet " | sed 's/^[ \t]*//g' | cut -d' ' -f 2 | cut -d'/' -f 1` +export IPADDR=`ifconfig $NIC | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` +# export IPADDR=`ip addr show $NIC | grep "inet " | sed 's/^[ \t]*//g' | cut -d' ' -f 2 | cut -d'/' -f 1` # export NETMASK=$(ifconfig $NIC |grep Mask | cut -f 4 -d ':') export NETMASK=$(ipcalc `ip addr show $NIC | grep "inet " | sed 's/^[ \t]*//g' | cut -d' ' -f 2` -m | grep NETMASK | cut -d '=' -f 2) # DHCP option router address(Default is your management interface IP address )"