Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

NAT and DHCP logging to a syslog server ?

Hi all,

is it possible to log NAT translations and DHCP bindings

to a syslog server ? I have a Cat6k/MSFC2 with IOS 12.1

acting like a DHCP server and doing NAT. I found no way

so far.. ?

Thanks

Ralf

4 REPLIES
New Member

Re: NAT and DHCP logging to a syslog server ?

hi ralf, maybe there is another good way to do it.

But i did it just for debugging, and not logging for all day long.

Add & or adjust some of these to suit your need.

logging buffered 4096 debugging

logging trap debugging

logging facility local6

logging source-interface fastethernettoyourlogsrv

logging ip.of.log.srv

and then i'm assuming you're using linux with syslogd for your syslog server just enable it with -r option in your config file and then add local6.* /var/log/yourfilename.log, save it then restart syslogd. whenever i do debug ip nat then it will forward to your log server.

Good luck.

best regards,

b.go

New Member

Re: NAT and DHCP logging to a syslog server ?

Thanks for the relpy.. but how you already mentioned

I'm thinking about something for all day logging. May-

be someone else have an idea how to do it ?

Regards

Ralf

New Member

Re: NAT and DHCP logging to a syslog server ?

hi ralf, as long as you don't disable debugging then it will keep logging. But it will be a very very big log file. I did it in the past just for only half day and it took 19 MBytes of log file :)

good luck.

best regards,

b.go

New Member

Re: NAT and DHCP logging to a syslog server ?

I tried debugging, but the load goes to high. Can't believe

there is nothing better to simply log DHCP bindings and

NAT translations..

Regards

Ralf

566
Views
0
Helpful
4
Replies
CreatePlease to create content