Thursday, January 22, 2009

configuring syslog in switch

Was trying to configure the switch to transfer the logs into syslog-ng server.



However an error msg was received "cannot open port to 200.10.10.77 "

We have checked the configuration of PIX, the address for 192.168.0.82 was successfully mapped onto 200.10.10.77 using static NAT.



we also tried to ping 200.10.10.77, however the error shown is unreachable host.



Later on we discovered that the error which shows , cannot open port to 200.10.10.77. was caused as the ip address and ip default gateway wasn't configured.



The following command was used



Switch(config)# int vlan40

Switch(config-if)# ip address 200.10.10.3 255.255.255.192

Switch(config-if)# ip default-gateway 200.10.10.1



The logging server was point to 200.10.10.77

Console logging was also enabled

Debian server was also running, any change in the state such as the ports being [shut and up] would be recorded in the syslog



after all this configuration, the syslog host can be reachable by "ping 200.10.10.77" and the logg recording was successful.

to show log , vi /var/log/messages


a sample log to show that syslog-ng has managed to show the status of the switch being logged.

No comments: