Capstone: monitor the branch, then reconstruct an outage from its logs

capstone · 90 min · Packet Tracer · Exam topic 5.6

Task

Take the branch you built in the domain 3 capstone and make it observable. Every router gets an NTP-synced clock, millisecond timestamps, a syslog destination at head office and a read-only SNMP community, and a branch PC stands in for the monitoring station. Then you cause a real-looking outage, a branch LAN link failing, and discover the planted policy fault: the syslog server heard a link go down and nothing about the gateway moving. You fix the level, repeat the outage, and use the synchronised timestamps to put R1's and R2's messages in one timeline: which event was the cause, which were consequences, and how many seconds each took. It draws on lessons 27 and 29, with lesson 26's point that monitoring is one of the jobs a management approach must cover.

Topology

Devices

Device Model Role
R1 ISR4331 branch router, HSRP active
R2 ISR4331 branch router, HSRP standby
R3 ISR4331 head office router
S1 2960-24TT branch access switch
PC1 PC-PT branch user
PC2 PC-PT branch user, stand-in SNMP manager
Server1 Server-PT head office syslog and NTP server

Links

From To
R1 G0/0/0 R3 G0/0/0
R2 G0/0/0 R3 G0/0/1
R3 G0/0/2 Server1 Fa0
R1 G0/0/1 S1 G0/1
R2 G0/0/1 S1 G0/2
PC1 Fa0 S1 Fa0/1
PC2 Fa0 S1 Fa0/2

Addressing

Device Interface Address Default gateway
R1 G0/0/0 10.0.13.1/30 none
R1 G0/0/1 192.168.10.2/24 none
R2 G0/0/0 10.0.23.1/30 none
R2 G0/0/1 192.168.10.3/24 none
R1 HSRP group 10 virtual IP 192.168.10.1 none
R3 G0/0/0 10.0.13.2/30 none
R3 G0/0/1 10.0.23.2/30 none
R3 G0/0/2 10.30.0.1/24 none
R3 Loopback1 203.0.113.1/24 none
PC1 NIC 192.168.10.10/24 192.168.10.1
PC2 NIC 192.168.10.11/24 192.168.10.1
Server1 NIC 10.30.0.10/24 10.30.0.1

Steps

  1. Open ccna-cap3-branch-routing.pkt and at once save it under this lab's name (File > Save As, ccna-cap5-branch-monitoring.pkt), so the domain 3 file stays as it was. Check the branch is healthy before you change anything:
R1# show standby brief
C:\> ping 10.30.0.10

R1 should be Active and the ping should succeed from PC1. 2. On Server1's Services tab, turn SYSLOG On and NTP On. Note the date and time the NTP page shows: the routers will take it. 3. Point all three routers at Server1 for time. On each router first note that show clock starts with *, then:

R3# configure terminal
R3(config)# ntp server 10.30.0.10
R3(config)# end
R1# configure terminal
R1(config)# ntp server 10.30.0.10
R1(config)# end
R2# configure terminal
R2(config)# ntp server 10.30.0.10
R2(config)# end

After a minute or two (Fast Forward Time helps), show ntp status on each reads Clock is synchronized and show clock has lost its *. Correlating R1's and R2's messages later depends on this. 4. Apply the starting logging policy on all three routers, the same lines on each. It contains the planted fault, the trap level:

R1# configure terminal
R1(config)# service timestamps log datetime msec
R1(config)# logging host 10.30.0.10
R1(config)# logging trap warnings
R1(config)# end

Repeat on R2 and R3 at their own prompts. 5. Make every router an SNMP agent with a read-only, lab-only community, and no read-write community at all:

R1# configure terminal
R1(config)# snmp-server community lab-only-ro RO
R1(config)# end

Repeat on R2 and R3. 6. Build the inventory from PC2, the stand-in monitoring station. Open Desktop > MIB Browser, click Advanced, set Read Community lab-only-ro and SNMP Version v2c, and get sysName from 192.168.10.2, 192.168.10.3 and 10.30.0.1 in turn, changing the Address each time. Write down the three answers, R1, R2 and R3, against their addresses. Then get sysUpTime from 10.30.0.1 and convert the timeticks to days, hours and minutes. 7. The outage, at the starting policy. Fail the switch port facing R1, wait one full minute, then read both branch routers' consoles:

S1> enable
S1# configure terminal
S1(config)# interface g0/1
S1(config-if)# shutdown
S1(config-if)# end

R1 logs the link and line protocol going down, an OSPF adjacency change and an HSRP state change. R2 logs its own HSRP takeover and, later, an OSPF adjacency change. Now open Server1's SYSLOG list: from all of that, only R1's %LINK-3-UPDOWN message for GigabitEthernet0/0/1 arrived. The operations team would see a link go down and nothing about the gateway moving to R2. 8. Break and fix: diagnose with the inclusive rule. Warnings (4) sends 0 to 4; OSPF adjacency changes are 5, and HSRP state changes are 5 on current IOS XE (older releases log them as %STANDBY-6-STATECHANGE, level 6). Read the severity from your own routers' messages, then choose informational (6), which covers both, on all three:

R1# configure terminal
R1(config)# logging trap informational
R1(config)# end
R1# show logging

Repeat on R2 and R3. show logging now reads Trap logging: level informational. 9. Restore the port, then repeat the outage with the corrected policy:

S1# configure terminal
S1(config)# interface g0/1
S1(config-if)# no shutdown
S1(config-if)# end

Wait until show standby brief on R1 shows Active again (R1 preempts). Then shut S1's g0/1 again, wait one full minute, and restore it once more. 10. Decode the burst. On Server1's SYSLOG list, and on R1's and R2's consoles, take each message from the second outage apart into facility, severity and mnemonic, and put them in one timeline by their timestamps. You should find, in order: R1's %LINK-3-UPDOWN for GigabitEthernet0/0/1 and its line-protocol message; R1's OSPF message for neighbor 10.255.255.2 giving Interface down or detached; about 10 seconds later, R2's HSRP change to Active (the hold time); and about 40 seconds after the link failed, R2's OSPF message for neighbor 10.255.255.1 giving Dead timer expired (the dead interval), because R2's own link never went down. 11. Write the incident note in three lines, as you would for a ticket: the root cause (layer 1 on R1's LAN link, the cable or the S1 port), the effect (R2 took over the gateway after about 10 seconds; users kept working), and the consequences that need no action (the OSPF adjacency changes). Name the facility and severity of each message you relied on.

Verify

R1# show logging
R2# show ntp status
R3# show running-config | include snmp-server
R1# show standby brief

Expected output: R1's show logging includes Trap logging: level informational and Logging to 10.30.0.10. R2's show ntp status reads Clock is synchronized with reference is 10.30.0.10. R3 shows exactly one SNMP line, snmp-server community lab-only-ro RO. R1's HSRP row reads Active and local. Server1's SYSLOG list includes %LINK-3-UPDOWN: Interface GigabitEthernet0/0/1, changed state to down and a message beginning %OSPF-5-ADJCHG: Process 1, Nbr 10.255.255.1.

Save your work

Opens: ccna-cap3-branch-routing.pkt, saved at the end of the domain 3 capstone.

Save the topology as ccna-cap5-branch-monitoring.pkt (File > Save As). The domain 3 file stays unchanged.

Notes

In a production branch the monitoring station would sit at head office with the syslog server, and SNMP would be SNMPv3 at authPriv, limited by an ACL; PC2 stands in here because head office's router has no free port, and Packet Tracer's SNMPv3 support on IOS devices cannot be relied on. Messages R1 sends while its LAN link is down still reach Server1 because they leave by the WAN link; a message raised at the instant a router loses its only path to the server is lost, which is one reason polling and logs complement each other.

This is an independent study companion for the Cisco CCNA 200-301 v2.0 exam and is not produced by or endorsed by Cisco. Cisco, CCNA and IOS are trademarks of Cisco Systems, Inc.

This is an independent study companion for Cisco CCNA 200-301 and is not produced by or endorsed by CompTIA.