DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd May 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Default Managing IP Addresses

Hi,

I work for a small hosting company and right now we need find a way to manage all of the IP addresses that we have. Let me a give a background on the situation so that you guys may understand what I'm trying to do.

Each of our servers range from 10 to even 250 IP Addresses. We also have one server that keeps IPs that aren't being used by any other server. So whenever there's a new customer or some customer wants more IPs, I just go to the server that keeps the unused IPs and remove how many IPs I need and then I put them in servers that need more IPs. Even though this may seem like exhausting process, it has been working decent. But lately I had some troubles with IPs because the server that was keeping unused IPs was keeping some IPs that were actually being used in other servers already. So I would remove an IP that I thought it was available but then to find out that it was already being used in another machine.

So here's my question: Are there any tools or applications that I could use to manage all of the IPs in our network? I would like to be able to see what IPs we have available, the hostname of the machine that IP is at, find out if IPs are overlapping and so on.

Does anyone know of an application or script that can do such thing?
Reply With Quote
  #2   (View Single Post)  
Old 22nd May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Are you using statically configured IPs or DHCP ?
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

This is something any competent administrator should have kept recorded in a database of some sort..

First of all, due to the lack of information about your specific setup, I'll assume you lease IP's in a single range, I honestly don't know how many so let's assume you own an entire /8 range. (CIDR notation)

Now, You have a range of 16777214 IP's and want to allocate them between various departments in your company..

Joe from Marketing requests a small range, you look in your database.. and assign his department 10.0.1.0/25, it's a small department.. only 60 current employees, but they'll grow over time.

Marketing Department:
Net Contact: joe AT marketing.bigcompany.us
Network: 10.0.1.0/25
Range: 10.0.0.1-10.0.1.126 (126 Hosts)
Netmask: 255.255.255.128
Broadcast: 10.0.1.127

Makes sense, right?
Reply With Quote
  #4   (View Single Post)  
Old 22nd May 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Default

Quote:
Originally Posted by TerryP View Post
Are you using statically configured IPs or DHCP ?
All of the IPs are static.

Quote:
First of all, due to the lack of information about your specific setup, I'll assume you lease IP's in a single range, I honestly don't know how many so let's assume you own an entire /8 range.
We have 35 different class C IPs, and most servers has about 10 different class C IPs.

I just want to be able to know if an IP is already being used by another server or not, and if it is being used, I would like to know in what server (hostname) the IP is being used at. That way there won't be any risk of my assigning an IP that's already being used.
Reply With Quote
  #5   (View Single Post)  
Old 23rd May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

First off, a spreadsheet would do wonders

Probably the most accurate way is to go from machine to machine, run ifconfig, and see what addresses are assigned to each machine. Make sure you record this information somewhere... spreadsheet, database, even a plain text file (if that's your fancy). Then your headaches will ease.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #6   (View Single Post)  
Old 27th May 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Default

One word-

IPPLAN.

It's on sourceforge and it rocks. I manage about 40 Class C blocks for client assignment, mostly all subnetted as well, and IPPLAN works wonders. It will change your life!!!! Just kidding, but it's pretty darn cool. It's a php/mysql webapp.


Before that, as mentioned above, I worked with a spreadsheet. The problem with a spreadsheet comes when more than one person is putting their hand in the cookie jar (and at the same time.)

BTW, you should post questions like this elsewhere on this site... only because I was trolling outside my normal haunts (I'm an OBSD user) did I notice this question.
__________________
Network Firefighter
Reply With Quote
  #7   (View Single Post)  
Old 27th May 2008
dk_netsvil dk_netsvil is offline
Real Name: Devon
Fdisk Soldier
 
Join Date: May 2008
Location: New York
Posts: 75
Default

I use IPPlan to manage 20 class C blocks and it saves me alot of time. I've also played with Racktables to provide a 2D representation of my colocation racks and it may also be worth looking into if your data center has multiple racks.
Reply With Quote
  #8   (View Single Post)  
Old 27th May 2008
funtaff funtaff is offline
Real Name: David Hasson
New User
 
Join Date: May 2008
Location: Los Angeles, CA
Posts: 2
Default

If I might recommend a commercial product - Men and Mice is a professional solution to such a problem:

http://www.menandmice.com/

I have no direct affiliation with them, but we're currently working with their product to manage our rat's nest of an IP scheme.
Reply With Quote
  #9   (View Single Post)  
Old 28th May 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Default

Right on, thanks for all the replies guys!

I'll definitely look into that and I'm really looking forward to give it a go and see how will it work .
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing system mail anomie General software and network 5 23rd September 2008 03:54 PM
How to find available IP addresses? bigb89 Programming 16 20th August 2008 07:32 PM
abbreviating email addresses? ocicat Feedback and Suggestions 9 22nd May 2008 12:21 AM


All times are GMT. The time now is 11:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick