update install.conf.template
Change-Id: Ia0d955455ad15aa01ac3dabf0077738942cdf2ad
This commit is contained in:
parent
92169083f8
commit
7b741227ba
@ -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 )"
|
||||
|
Loading…
x
Reference in New Issue
Block a user