© 2015 Mohamed Samir YouTube channel All rights reserved. Samir CCNP-SWITCHING Mohamed Samir YouTube channel Double CCIEs #27042(R/S&SP)
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Part V: Monitoring Campus Networks
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Logging Switch Activity
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Syslog Messages Each message contains the following fields: Timestamp: Facility Code:categorizes the switch function or module that has Generated generated the message; the facility code always begins with a percent sign Severity: A number from 0 to 7 that indicates Mnemonic: categorizes the event within the facility code. Message Text
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Syslog will send to console or syslog message
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Logging to the Switch Console Switch(config)# logging console severity switch(config)#logging console 3 Configures console logging at level 3 (error). Logging messages with a severity level of 3 or above are displayed on the console. switch(config)# no logging console (default is 2) Telnet or Secure Shell (SSH) “terminal Monitor”
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Logging to the Internal Buffer By default, the internal logging buffer is disabled Switch(config)# logging buffered severity If you depend on logging buffer you need to increase it Switch(config)# logging buffered size (4096 to ) bytes Too big is effect your memory show logging
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Logging to a Remote Syslog Server syslog server over the network using UDP port 514 Switch(config)# logging host ip-address “ you can have multiple logging server “ Switch(config)# logging trap severity
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Adding Time Stamps to Syslog Messages 20w2d: %LINK-3-UPDOWN: Interface FastEthernet1/0/27, changed state to down 21w3d: %SYS-5-CONFIG_I: Configured from console by vty0 ( ) Setting the Internal System Clock Switch# show clock *00:54: UTC Mon Mar Switch(config)# clock timezone EST -5 Switch(config)# clock summer-time EDT recurring Switch(config)# exit Switch# clock set 15:23:00
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Using NTP to Synchronize with an External Time Source Network Time Protocol (NTP). With NTP, time sources or servers are arranged in a hierarchical fashion Each layer of the hierarchy is known as a stratum,
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Switch(config)# ntp server prefer Switch(config)# ntp server
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Switch# show ntp status Clock is synchronized, stratum 1, reference is nominal freq is Hz, actual freq is Hz, precision is 2**18 reference time is D74EEAB6.8408DB3D (13:15: EDT Wed Aug ) clock offset is msec, root delay is 0.82 msec root dispersion is msec, peer dispersion is 0.03 msec Switch# show ntp associations address ref clock st when poll reach delay offset disp *~ GPS ~ ACTS * master (synced), # master (unsynced), + selected, - candidate, ~ configured
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Securing NTP Switch(config)# ntp authentication-key key-number md5 key- string Switch(config)# ntp authenticate Switch(config)# ntp trusted-key key-number Switch(config)# ntp server ip-address key key-number Switch(config)# access-list acl-num permit ip-address mask Switch(config)# ntp access-group {serve-only | serve | peer | query-only} acl-num
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Using SNTP to Synchronize Time the Simplified Network Time Protocol (SNTP) Switch(config)# sntp authentication-key key-number md5 key-string Switch(config)# sntp authenticate Switch(config)# sntp trusted-key key-number Switch(config)# sntp server ip-address key key-number
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Any questions ?
© 2015 Mohamed Samir YouTube channel All rights reserved. Samir Thank you for your time ! شكرا جزاكم الله خير