On Fri, 21 Dec 2007, Ashley M. Kirchner wrote: > > Is there a command line tool that can get me from '123.235.126.232' to > '123.232.0.0/14' or even to '123.232.0.0:123.235.255.255'? > > Right now I'm manually using any of ripe.net, lacnic.net, or arin.net to go > from the IP to the range '123.232.0.0:123.235.255.255' and then using > 'netmask' to get to '123.232.0.0/14'. I'm wondering if there's a single tool > to go from one to the other. > > Thanks. purely from memory, i recall "ipcalc". it's part of the initscripts package so it's probably on your system. more than that, i can't really say. $ man ipcalc rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ========================================================================