Sipcalc is an "advanced" console based ip subnet calculator.