cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1720
Views
0
Helpful
4
Replies

NAT and DHCP logging to a syslog server ?

ralfw
Level 1
Level 1

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 4

b.go
Level 1
Level 1

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

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

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

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