01-06-2004 04:14 AM - edited 03-02-2019 12:41 PM
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
01-06-2004 06:01 AM
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
01-06-2004 08:47 AM
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
01-06-2004 09:55 PM
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
01-08-2004 04:22 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide