From dc5d96e183a81afff14e6946ba9918881e46fb71 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 30 Apr 2012 13:04:54 +0000 Subject: [PATCH] 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 --- xCAT-nbroot2/restart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-nbroot2/restart b/xCAT-nbroot2/restart index 785110cdc..19a624f6e 100755 --- a/xCAT-nbroot2/restart +++ b/xCAT-nbroot2/restart @@ -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