cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
630
Views
0
Helpful
6
Replies

Can I log outside dynamic IP address with 871?

Chris Simon
Level 1
Level 1

I'm looking to clean up some web traffic analysis on a remote server. Can I log the changing outside dynamic IP my router is assigned to?

6 Replies 6

ghostinthenet
Level 7
Level 7

Is the dynamic address being assigned with DHCP, IPCP or some other method? If it's a DHCP assignment, the router automatically logs these using messages like this one:

Nov 28 21:42:34: %DHCP-6-ADDRESS_ASSIGN: Interface GigabitEthernet0/9 assigned DHCP address 172.23.2.49, mask 255.255.252.0, hostname R1

It's DHCP.

Looks like Console, Monitor, Bugger, Count/timestamp, Persistent are all disabled in my current config. (>_<)

Well, that certainly sounds like a problem. Was the buffer logging disabled, too? ;)

LOL! Frackn G so close to F.

YES Buffer was also disabled. (>_<)

 

This blog post suggests there's some problem with DHCP logging. I followed the link and its describing some kind of applet installation. All over my head.

http://blog.ipspace.net/2009/10/dhcp-client-address-change-detector.html

 

This cisco page describes turning on logging here. Is this what you recommended?

Is this the minimum which won't log too much (all I want is the DHCP)?

https://supportforums.cisco.com/document/24661/how-configure-logging-cisco-ios#Configuration_Overview:

You can always count on Ivan to have the details. I was unaware that the DHCP log only occurred on initial assignment.

If you do decide to use an EEM applet, you don't need to do anything really special with the logging. Just turn it on in the configuration with "logging buffered 262144" (I use a 256KB logging buffer because the default is too small to be useful.)

Another angle to take that might be easier is to use the DDNS functionality of the router with a service like Dyn. This way you always have a hostname you can reference with the current address and can see the history on their web site. This can be configured as follows:

ip ddns update method DDNS_Dyn
 HTTP
  add http://username:password@members.dyndns.org/nic/update?hostname=<h>&myip=<a>;
 interval maximum 90 0 0 0
!
interface GigabitEthernet0/9
 ip ddns update hostname example.dyndns.com
 ip ddns update DDNS_Dyn
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card