Configure ml0 devices and make its ip permement

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2011-07-13 06:16:28 +00:00
parent ed082bea1e
commit 1dc4b6a06d

View File

@ -105,7 +105,13 @@ CLIENT_IP=`ping -q -n -c 1 -w 1 $name-ml0 | grep PING |awk '{print $3}' | sed 's
if [ -n $CLIENT_IP ]
then
mkhfi -i ml0 -a $CLIENT_IP -m $NETMASK
#Check whether the mlt0 is available
`lsdev -C | grep mlt0 | grep Available 2>&1 >/dev/null`
if [ -n $? ]
then
chdev -l ml0 -a state=detach
chdev -l ml0 -a netaddr=$CLIENT_IP -a netmask=$NETMASK -a state=up
fi
fi
fi