how to configure MRTG with a dynamic IP address

5 messages Options
Embed this post
Permalink
Begum Bolu () how to configure MRTG with a dynamic IP address
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
 
I have a modem-router(Huawei E960) which sets up the IP addresses dynamically. A pc that boots up first gets 192.168.1.100 and second gets x.x.x.101 and so on. i only know how to setup monitoring network traffic by using the ip address of the pc at the time of the configuration. that works fine till the rest of the day but makes an issue after shut down and the bootup order of the Pcs is changed. Basically it doesnt graph any traffic after the ip address is changed.
 
i searched mrtg mail achieves a lot yesterday. only found 2 possible solutions but i am not sure neither of them. thats why i am asking for your help. one of the solutions was reseting the registry of 'ip address lease after shutdown'. my initial thought was assigning one ip address to a computer indefinitely might create some problems later on. i might be wrong. if this is a good solution, i would like to know the reasons. the second solution was a dhcp script for mrtg by Eric Garnel. i didnt quite understand how to modify the code and its pretty old message (way back in 2003).
 
I really would like to get this MRTG working. Any assist that will help me to achieve that would be appreciated.
 
Cheers
Becky

Find out how here Get Hotmail on your iPhone
_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Anson Rinesmith () Re: how to configure MRTG with a dynamic IP address
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Not really on topic for MRTG, I don’t feel it was the designer’s intent to have to keep track of what IP a server might have.

On a networking note, there are two ways to solve this.

1) Allocate a static IP to the PC in question. Sounds like you are only using 100+ so 2-99 would be a good choice. This is a pretty common network setup.

2) A second way is to have your router do static leases based on MAC addresses, although not many SOHO class routers handle this.

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Begum Bolu
Sent: Monday, October 26, 2009 7:38 AM
To: [hidden email]
Subject: [mrtg] how to configure MRTG with a dynamic IP address

 

Hi,
 
I have a modem-router(Huawei E960) which sets up the IP addresses dynamically. A pc that boots up first gets 192.168.1.100 and second gets x.x.x.101 and so on. i only know how to setup monitoring network traffic by using the ip address of the pc at the time of the configuration. that works fine till the rest of the day but makes an issue after shut down and the bootup order of the Pcs is changed. Basically it doesnt graph any traffic after the ip address is changed.
 
i searched mrtg mail achieves a lot yesterday. only found 2 possible solutions but i am not sure neither of them. thats why i am asking for your help. one of the solutions was reseting the registry of 'ip address lease after shutdown'. my initial thought was assigning one ip address to a computer indefinitely might create some problems later on. i might be wrong. if this is a good solution, i would like to know the reasons. the second solution was a dhcp script for mrtg by Eric Garnel. i didnt quite understand how to modify the code and its pretty old message (way back in 2003).
 
I really would like to get this MRTG working. Any assist that will help me to achieve that would be appreciated.
 
Cheers
Becky


Find out how here Get Hotmail on your iPhone


_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Begum Bolu () Re: how to configure MRTG with a dynamic IP address
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Thank you very much Mr. Rinesmith, allocating a static ip to pc beyond the IP scope of the router worked like a breeze. i must say i wasn't expecting such a quick and at the same time an accurate answer. I really appeciated it.
 
 

From: [hidden email]
To: [hidden email]; [hidden email]
Subject: RE: [mrtg] how to configure MRTG with a dynamic IP address
Date: Mon, 26 Oct 2009 08:17:12 -0500

Not really on topic for MRTG, I don’t feel it was the designer’s intent to have to keep track of what IP a server might have.

On a networking note, there are two ways to solve this.

1) Allocate a static IP to the PC in question. Sounds like you are only using 100+ so 2-99 would be a good choice. This is a pretty common network setup.

2) A second way is to have your router do static leases based on MAC addresses, although not many SOHO class routers handle this.

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Begum Bolu
Sent: Monday, October 26, 2009 7:38 AM
To: [hidden email]
Subject: [mrtg] how to configure MRTG with a dynamic IP address

 

Hi,
 
I have a modem-router(Huawei E960) which sets up the IP addresses dynamically. A pc that boots up first gets 192.168.1.100 and second gets x.x.x.101 and so on. i only know how to setup monitoring network traffic by using the ip address of the pc at the time of the configuration. that works fine till the rest of the day but makes an issue after shut down and the bootup order of the Pcs is changed. Basically it doesnt graph any traffic after the ip address is changed.
 
i searched mrtg mail achieves a lot yesterday. only found 2 possible solutions but i am not sure neither of them. thats why i am asking for your help. one of the solutions was reseting the registry of 'ip address lease after shutdown'. my initial thought was assigning one ip address to a computer indefinitely might create some problems later on. i might be wrong. if this is a good solution, i would like to know the reasons. the second solution was a dhcp script for mrtg by Eric Garnel. i didnt quite understand how to modify the code and its pretty old message (way back in 2003).
 
I really would like to get this MRTG working. Any assist that will help me to achieve that would be appreciated.
 
Cheers
Becky


Find out how here Get Hotmail on your iPhone



Find out how here Use Messenger in your Hotmail inbox
_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
McDonald, Dan () Re: how to configure MRTG with a dynamic IP address
Reply Threaded More More options
Print post
Permalink
In reply to this post by Begum Bolu
On Mon, 2009-10-26 at 23:38 +1100, Begum Bolu wrote:
> Hi,
>  
> I have a modem-router(Huawei E960) which sets up the IP addresses
> dynamically. A pc that boots up first gets 192.168.1.100 and second
> gets x.x.x.101 and so on. i only know how to setup monitoring network
> traffic by using the ip address of the pc at the time of the
> configuration. that works fine till the rest of the day but makes an
> issue after shut down and the bootup order of the Pcs is changed.
> Basically it doesnt graph any traffic after the ip address is changed


Use dynamic dns, and then use the dns name in cfgmaker.


--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com


_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

signature.asc (204 bytes) Download Attachment
S Shipway () Re: how to configure MRTG with a dynamic IP address
Reply Threaded More More options
Print post
Permalink
In reply to this post by Begum Bolu
Some javascript/style in this post has been disabled (why?)

You need to allocate a static IP to your devices.  For my network at home, I used to do it by configuring the DHCP to bind a fixed IP to a particular MAC address, so I could be sure of always getting the same IP.  However, when I changed my router, I could no longer do this, so instead I disabled DHCP and assigned fixed IP addresses to the servers.  Eventually, I reenabled DHCP, but gave it a smaller address pool (2-99) and used the high numbers for fixed addresses on the hosts I wanted to monitor.

 

Something you might like to look into as well (if it is configurable) is to set the DHCP lease time to something like 24 hours or more, to ensure a machine continues to get the same IP address, if it is used daily.  I even set mine to 1 week at one point, without problem.

 

If you have a lot of coding skill, you could possibly write something that uses ARP to identify MAC addresses and logs counts against them but that would be lots of work.

 

Steve

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Begum Bolu
Sent: Tuesday, 27 October 2009 1:38 a.m.
To: [hidden email]
Subject: [mrtg] how to configure MRTG with a dynamic IP address

 

Hi,
 
I have a modem-router(Huawei E960) which sets up the IP addresses dynamically. A pc that boots up first gets 192.168.1.100 and second gets x.x.x.101 and so on. i only know how to setup monitoring network traffic by using the ip address of the pc at the time of the configuration. that works fine till the rest of the day but makes an issue after shut down and the bootup order of the Pcs is changed. Basically it doesnt graph any traffic after the ip address is changed.
 
i searched mrtg mail achieves a lot yesterday. only found 2 possible solutions but i am not sure neither of them. thats why i am asking for your help. one of the solutions was reseting the registry of 'ip address lease after shutdown'. my initial thought was assigning one ip address to a computer indefinitely might create some problems later on. i might be wrong. if this is a good solution, i would like to know the reasons. the second solution was a dhcp script for mrtg by Eric Garnel. i didnt quite understand how to modify the code and its pretty old message (way back in 2003).
 
I really would like to get this MRTG working. Any assist that will help me to achieve that would be appreciated.
 
Cheers
Becky


Find out how here Get Hotmail on your iPhone


_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg