[Ext] Re: [Ext] Re: Static IP and IP management

Jim Glassford jmglass at iup.edu
Wed Feb 24 19:12:03 UTC 2016


Hi Bernard,
:-)
I'm the campus cable dog, I am no programmer so limited help. Another 
wrote the original network scripts almost 20 years ago in Perl for our 
10Mb shared Digital Equipment DECRepeaters and 3COM SuperStacks. (when 
the good old days really were not that good)
Been hacking at the Perl since as generations of stuff has been upgraded 
over the years. Working to move off it and go with something more 
supported using Open Source.

I like Netdisco, does everything we are doing for pulling in the 
information. No IPAM though so need to tie that in but the MAC and IP 
addresses found on the layer two switches and routers are added to the 
PostgresSQL db. Just need to compare what was found to what was expected.

https://metacpan.org/pod/App::Netdisco

best!
jim

On 2/24/2016 1:20 PM, Bernard Fay wrote:
> This is interesting!  I'll have to find out how to write such 
> scripts.  Would you have some pointers related to this subject?
>
> Thanks Jim
>
> On Wed, Feb 24, 2016 at 10:00 AM, Jim Glassford <jmglass at iup.edu 
> <mailto:jmglass at iup.edu>> wrote:
>
>     Hi,
>
>     This works for us, ymmv. We use home grown scripts that pull
>     information from a database to build our dhcpd.conf and dns files
>     for all static assignments.  We also have different scripts that
>     pull the arp tables from the routers each hour and from layer two
>     switches ports to keep track of who is where.
>
>     Put these together to keep some control for IPAM, sure the
>     commercial products do a better job.
>
>     As part of the hour run script, we do a compare on what is found
>     in arp tables to what we have in the assigned database. If a
>     match, the MAC and IP address match what is in the database,
>     update a count field and the date it was found. If a MAC is found
>     in arp table does not match the assigned IP address, send and
>     email for a discrepancy (someone hard coded when they should not
>     or other issue that needs addressed)
>     Once in awhile (when I need more static IP addresses for a subnet)
>     review the count and last updated fields, if older than a year +/-
>     then safe to re-assign this IP address.
>
>     best!
>     jim
>
>
>     On 2/24/2016 9:16 AM, Bernard Fay wrote:
>>     I manage a lab where there is about 300-400 IPs assigned to
>>     different network equipments, physical and virtual servers.  So
>>     IPs might be assigned for a while then equipments removed because
>>     not needed anymore, remember this is a lab.  I would like to know
>>     which IPs are in used or not.  Equipments removed means IPs not
>>     used anymore so we could reuse those IPs.
>>
>>     I hope I am clear enough
>>     Thanks,
>>
>>
>>     On Wed, Feb 24, 2016 at 9:06 AM, Patrick Trapp
>>     <ptrapp at nex-tech.com <mailto:ptrapp at nex-tech.com>> wrote:
>>
>>         I believe a helpful answer will require some context. You
>>         haven't told us what issues you are having with IP
>>         management, so it's going to be difficult to identify how
>>         static IP's might be beneficial.
>>
>>         Are you having a specific issue you wish to address?
>>
>>         ------------------------------------------------------------------------
>>         *From:* dhcp-users-bounces at lists.isc.org
>>         <mailto:dhcp-users-bounces at lists.isc.org>
>>         [dhcp-users-bounces at lists.isc.org
>>         <mailto:dhcp-users-bounces at lists.isc.org>] on behalf of
>>         Bernard Fay [bernard.fay at gmail.com
>>         <mailto:bernard.fay at gmail.com>]
>>         *Sent:* Wednesday, February 24, 2016 7:39 AM
>>         *To:* Users of ISC DHCP
>>         *Subject:* Static IP and IP management
>>
>>         Hello everyone,
>>
>>         I have been told that static IP assignation can help in IP
>>         management.  Of course, I can know which IPs are assigned by
>>         looking in dhcpd.conf. But after a while an IP might not be
>>         used anymore and nothing in dhcpd or bind will tell me if it
>>         still in use or not.  I have setup a lab to experiment where
>>         I have configured dhcpd and bind and I cannot find out how
>>         static IP can really help in IP management.
>>
>>         Did I miss something somewhere?
>>
>>         Thanks,
>>         B
>>
>>
>>         _______________________________________________
>>         dhcp-users mailing list
>>         dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>>         https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>>
>>
>>
>>     _______________________________________________
>>     dhcp-users mailing list
>>     dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>>     https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>     _______________________________________________
>     dhcp-users mailing list
>     dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>     https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20160224/d81963f0/attachment-0001.html>


More information about the dhcp-users mailing list