FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-21-2007, 03:14 PM
"Ashley M. Kirchner"
 
Default CLI IP range lookup tool

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.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-21-2007, 03:18 PM
"Robert P. J. Day"
 
Default CLI IP range lookup tool

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
================================================== ======================

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-21-2007, 08:03 PM
Rick Stevens
 
Default CLI IP range lookup tool

On Fri, 2007-12-21 at 09:14 -0700, 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.

I'm not sure what you're trying to do. The normal way of doing it
is to use ifconfig:

# ifconfig eth0 123.235.126.232 netmask 255.252.0.0

That's a /14 netmask. ipcalc can show it to you:

# ipcalc -m 123.235.126.232/14
NETMASK=255.252.0.0

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer rstevens@internap.com -
- CDN Systems, Internap, Inc. http://www.internap.com -
- -
- There are only 10 kinds of people in the world -- those who -
- understand binary and those who don't -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-21-2007, 08:45 PM
"Jon Stanley"
 
Default CLI IP range lookup tool

On 12/21/07, Ashley M. Kirchner <ashley@pcraft.com> 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'?

I use aggis (http://www.lafferty.ca/files/software/aggis) - it's about
10-15 years old, but I've not had a problem making it work with a
modern version of perl. It has lots of features and does exactly what
you want it to do and more.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 01:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org