From: Michal J. <mi...@ha...> - 2004-08-16 16:09:28
|
This is not earth shattering but sometimes confusing. If you happen to use some "atypical" addresses and/or masks on a cluster interface then a broadcast address is guessed wrong and a confusion may ensue. There used to be an invocation of 'ipcalc' to compute that broadcast correctly in a startup file but for some reasons it got commented out. If 'sed' was of a concern then this is sed-less version. --- beoboot-cm1.9/rc.clustermatic~ 2004-08-16 09:13:00.093179048 -0600 +++ beoboot-cm1.9/rc.clustermatic 2004-08-16 09:24:35.400476272 -0600 @@ -155,8 +155,9 @@ echo >&2 "Error: No netmask given for interface." exit 1 fi - #BCAST=`ipcalc --broadcast $ADDR $NMSK | sed -e 's/.*=//'` - if ifconfig $IF $ADDR netmask $NMSK; then + BCAST=$(ipcalc --broadcast $ADDR $NMSK) + BCAST=${BCAST#*=} + if ifconfig $IF $ADDR netmask $NMSK broadcast $BCAST; then Xsuccess else Xfailure This will set that interface parameters to what they were really configured in /etc/clustermatic/config. Michal |