Correct problem where multiple nics on the same subnet don't quite pan out very well in discovery

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-30 13:04:54 +00:00
parent d226d3d75d
commit dc5d96e183

View File

@ -26,11 +26,14 @@ while [ $WAITING -gt 0 ]; do
for pidfile in /var/run/dhclient.*.pid; do
NIC=`echo $pidfile|awk -F. '{print $2}'`
dhclient -r -1 -cf /etc/dhclient.conf -pf $pidfile $NIC
ip -4 addr flush dev $NIC
dhclient -cf /etc/dhclient.conf -nw -pf $pidfile $NIC
done
for pidfile in /var/run/dhclient6.*.pid; do
NIC=`echo $pidfile|awk -F. '{print $2}'`
dhclient -6 -r -1 -pf $pidfile -lf /var/lib/dhclient/dhclient6.leases $NIC
ip -6 addr flush dev $NIC scope global
ip -6 addr flush dev $NIC scope site
dhclient -6 -pf $pidfile -nw -lf /var/lib/dhclient/dhclient6.leases $NIC
done