LOCKDOWN RANGE: CISCO IOS - SOLUTION WALKTHROUGH ================================================ File: cisco-range.html (single page, works offline; progress stays in the browser). Companion to the Windows Range and Linux Range labs. A general networking-security practice lab for learners, instructors and study groups. Every name, address and organization in the scenarios is fictional. Unofficial practice; not affiliated with or endorsed by Cisco. The look and feel is inspired by Cisco Packet Tracer, a free network simulator. 1. WHAT THE LAB SIMULATES (AND WHAT IT DOES NOT) ------------------------------------------------ A Packet Tracer-style practice topology with real-feeling Cisco IOS consoles and PC command prompts, plus a live Progress Check that re-runs every check as you work. Simulated faithfully: - IOS modes and prompts: Router> Router# (config)# (config-if)# (config-if-range)# (config-subif)# (config-line)# (config-vlan)# (config-std-nacl)# (config-ext-nacl)# (dhcp-config)# (config-router)# (config-archive)# (config-archive-log-cfg)#; unique-prefix abbreviations (conf t, int g0/0, sh run, wr); ? context help (sorted as IOS sorts it: 0 and 5, then ranges such as <1-31>, then words such as MONTH and WORD, then keywords, then ); Tab completion; Up/Down history; Ctrl+Z; Ctrl+C. - The exact error strings: % Invalid input detected at '^' marker. (caret under the bad word), % Ambiguous command: "...", % Incomplete command., % Bad secrets, % Bad passwords, % Login invalid, % No password set, % Please define a hostname other than Router., % Please define a domain-name first., Command rejected: ... is a dynamic port., % Password too short ..., % Login disabled on line N, until 'password' is set, % Only classful networks will be redistributed, % Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q, or ISL vLAN., etc. - show running-config rendered from device state in true IOS order with enable secret 5 $1$mERr$..., username ... secret 5 ..., password 7 ... (real type-7 encoding) once service password-encryption is on, banner motd ^C...^C, grouped line vty blocks, end. - copy running-config startup-config / write, show startup-config, and reload (asks to save, then boots from startup-config: unsaved work is gone, and the Progress Check drops with it). - A real layer-2/layer-3 model: access and trunk ports (802.1Q, native VLAN, allowed list, DTP dynamic auto/desirable), router-on-a-stick subinterfaces (encapsulation dot1Q N [native]), SVIs that come up once their VLAN exists and has an active port, ip default-gateway on switches, standard ACLs on VTY lines (access-class), standard and extended ACLs on router interfaces (ip access-group N|NAME in|out: protocol, ports, established, echo-reply, and log), and login block-for quiet mode. Interface ACLs filter pings, SSH and Telnet sessions, DHCP relay, and OSPF hellos. The router that drops a packet answers with an ICMP unreachable however many hops away it sits, so a filtered ping reads U.U.U on IOS and "Destination host unreachable." on a PC (or times out when no ip unreachables is set there). The unreachable, like every reply, crosses the ACLs on its way back. show access-lists counts matches, and an entry that ends in log reports %SEC-6-IPACCESSLOGP / IPACCESSLOGDP to syslog. ping / traceroute / tracert / ssh / telnet are evaluated against that model, with IOS and Windows style output (!!!!! / ..... / U.U.U, Request timed out., Destination host unreachable., TTL that drops per router hop). traceroute sends UDP probes and marks a drop with !A (an ACL, administratively prohibited) or !H (a missing route); tracert sends ICMP echo probes and ends with "reports: Destination host unreachable." An inbound ACL acts before the TTL check, so the router that drops a probe on arrival reports in place of its own hop; with no ip unreachables set on that interface, the hop reads * * * (Request timed out. on a PC). A PC without an address or a usable gateway prints General failure. at hop 1, the same local failure its ping reports. - Routing tables built like IOS 15: connected (C) and local (L) routes, static routes (S), and OSPF. A static route takes an optional distance for floating backups, and it installs while its next hop sits on an up, connected subnet. show ip route groups entries under their classful network ("is subnetted" or "is variably subnetted"), in numeric order. The lowest administrative distance wins (connected 0, static 1, OSPF 110). - OSPF in one area on Ethernet links: router ospf N, network A W area N, passive-interface (or passive-interface default with no passive-interface exceptions), router-id, redistribute static [subnets], and default-information originate [always] (neighbours learn O*E2 0.0.0.0/0). clear ip ospf process drops and re-forms the adjacencies and applies a router-id typed while neighbours were up. Neighbours reach FULL (DR/BDR; the first router up on a segment stays DR) when both ends share the subnet, mask, and area; routers learn O routes and O E2 externals ([110/20]), and a local static route beats the neighbour's O E2 copy until the local uplink fails. show ip ospf neighbor / database / interface brief and show ip protocols read that state; %OSPF-5-ADJCHG messages log adjacency changes. - Switch VLANs live in flash:vlan.dat: they survive a reload without copy running-config startup-config, and show flash: lists vlan.dat. - CDP reports a native VLAN mismatch between trunk ends (%CDP-4-NATIVE_VLAN_MISMATCH) on the switch console, and the topology draws that link in amber. - Numbered ACL editing like real IOS: "no access-list 10 permit host X" deletes the WHOLE list 10; remove one entry with "ip access-list standard 10" then "no " (show access-lists prints the numbers). - SSH from a PC or device succeeds only when the target is fully ready (RSA key, login local, a matching username/secret, transport input ssh, ACL permits the source) and then drops you into that device's vty session. Telnet works only when the line allows it and has a password (and leaves the SSH-only check failing until it is closed). - Port security with sticky learning, BPDU guard / portfast [trunk], DHCP snooping configuration, CDP neighbours, MAC address table, logging buffer with syslog-style %LINK / %LINEPROTO / %SYS-5-CONFIG_I / %SSH-5-ENABLED lines, show version / show clock / show ip ssh / show port-security / show interfaces X switchport | trunk ... - Two router models: the 1941 (Levels 1-3) and the 2911 (Level 4, three Gigabit ports). A factory router has VTY lines 0-4; line vty 0 15 creates lines 5-15. Switches and routers list 16 VTY lines as line vty 0 4 and line vty 5 15 in show running-config. - DHCP: a router serves pools (ip dhcp excluded-address, ip dhcp pool with network, default-router, dns-server, and domain-name) to its own subnets and to subnets that relay with ip helper-address. A PC set to DHCP under IP Configuration, or running ipconfig /renew, leases the first free address; DHCP snooping drops the offer unless an uplink is trusted. show ip dhcp binding lists the leases. Level 4's Student-B starts as a DHCP client with an APIPA address and leases once RtrB serves its pool. - AAA: aaa new-model, aaa authentication login default|NAME with local, enable, line, and none methods, and login authentication NAME on a line. With AAA on, VTY lines follow the default list (local when none is set). The console signs in without a check until a default list exists or line con 0 names a list. With aaa authentication login default local on a device without local usernames, the next login locks out, as on real IOS. - Spanning tree per VLAN: the lowest priority, then the lowest MAC, wins root (spanning-tree vlan LIST priority P, or root primary|secondary), the other switch shows its root port, spanning-tree mode rapid-pvst reports rstp, and spanning-tree guard root blocks a port that hears a better bridge (show spanning-tree inconsistentports, %SPANTREE-2-ROOTGUARD_BLOCK). - Also stored and shown: SNMP communities, v3 groups, and v3 users (show snmp user | group), LLDP (lldp run, lldp transmit/receive, show lldp neighbors [detail]), VTP domain and mode (show vtp status; transparent and off modes write VTP and the VLANs into the running configuration, and client mode refuses VLAN changes), SPAN (monitor session N; the destination port stops switching normal traffic and reads monitoring), dynamic ARP inspection, storm-control, voice VLANs, edge-interface switches (no ip redirects, no ip unreachables, no ip proxy-arp), no service pad, ip http port and authentication, config-register (show version shows the value for the next reload; 0x2142 boots without the startup-config), secure boot-image and boot-config, archive with log config (notify syslog reports each accepted configuration command), transport output, no exec, copy running-config flash:NAME, show cdp, show cdp neighbors detail, show interfaces status err-disabled, and show mac address-table interface X. Deliberately NOT simulated (the console tells you with a [Range] note): - Output paging (--More--): everything scrolls; use the browser scrollback. - erase startup-config / write erase, copy startup-config running-config (the real merge), delete FILE (the [Range] note names the file it keeps), the setup dialog itself (a factory device offers it: answer no), debug output, extended ping options, SNMP polling (the agent settings are stored and shown), RIP, EIGRP, and BGP (OSPF is simulated), redistribute connected, IPv6, NAT, and broadcast storms (storm-control settings are stored and shown). - enable algorithm-type scrypt|sha256 secret: type 9 and type 8 secrets arrived in IOS 15.3(3)M, after this lab's 15.1(4)M4 router and 15.0(2)SE4 switch images, so the line answers % Invalid input. A [Range] tip follows: the Defense Ladder's form, with the algorithm-type keyword, works on IOS 15.3(3)M3 and later and on current IOS XE releases. - Real DNS behaviour on an unknown first word in EXEC mode: the real router prints Translating "shw"... and tries to telnet; the lab always gives the ^ marker error so the message you learn is the one that matters. - Port-security violations never actually happen (every PC keeps its MAC). - NTP and syslog servers sit outside the topology, so NTP stays unsynchronized and syslog messages go undelivered; the checks read the configuration alone. How progress is measured: - Checks: each scenario has 22-30 checks worth 100 points in total. Each check belongs to a hardening area (the same areas the Windows and Linux labs use): Account management - enable secret, local accounts, password encryption and length Access control - console/VTY login, SSH only, RSA keys, timeouts, login block-for, VTY ACLs, port security Secure configuration - hostname, banner, unneeded services, unused ports, VLANs, trunks, PortFast and BPDU guard, DHCP snooping, CDP, routing, saved config Audit logging - syslog host, timestamps, NTP Patching and Malware defenses have no checks in this lab. Two groups sit outside the six areas: Troubleshooting (restoring a broken path) and Investigation (questions you answer by reading the devices). The six areas and their CIS Controls: Defense Ladder s1 (https://freeapp4that.store/defense-ladder/#sophomore/s1). - Grade levels and lessons: Level 1 Recruit is Sophomore, Level 2 Operator is Junior, and Levels 3 Captain and 4 Two sites are Senior. The level pills show the grade, and each Debrief links to the Defense Ladder lessons behind that level (listed under each scenario below). - Availability checks: the "A" in confidentiality, integrity, and availability. Each Scenario Brief lists what the organization needs (authorized accounts, required links, and addresses). Breaking one fails an availability check, shows it in red and subtracts points until you undo the change. 2. THE ROUTINE (CHECKLIST) -------------------------- [ ] 1. Pick the scenario pill (1 Recruit, 2 Operator, 3 Captain, 4 Two sites). [ ] 2. Read the Activity panel top to bottom: the Scenario Brief (authorized administrators / users, required services, policy, warning and credentials) and the addressing table. [ ] 3. Power on: click the device tab (it boots), answer no if a factory device offers the initial configuration dialog, press RETURN, and log in with the credentials from the Scenario Brief if the console asks. [ ] 4. Investigation first: answer the Investigation questions in the Activity panel (two on Levels 1-3, four on Level 4; answers save as you type, checking is case-insensitive). [ ] 5. Snapshot mentality: show running-config, show ip interface brief, show vlan brief, show interfaces trunk, show access-lists, and (on routers) show ip route on every device BEFORE changing anything. Compare accounts with the Scenario Brief. [ ] 6. Fix by area: accounts and passwords; console and VTY lines; SSH (domain, RSA key, version 2); banner and services; VLANs and trunks; unused ports; port security / PortFast / BPDU guard / DHCP snooping; routing (static routes, OSPF); logging and NTP; ACLs. Watch the Progress Check after each change. [ ] 7. Verify from the PCs: ipconfig, ping, tracert, ssh -l user address, telnet address (it should now be refused). [ ] 8. Save on EVERY device: copy running-config startup-config (Enter at the filename prompt) or write. Test with reload if you dare. [ ] 9. Finish / Debrief: read every miss, note the exact command, Reset lab and do it again faster. 3. SCENARIOS - SOLUTION WALKTHROUGH ----------------------------------- Each check: title (points) [hardening area] / exact fix / why it matters. Totals are 100 per scenario. Availability checks are listed last. Commands show the prompt they belong to; "(config)#" means global configuration mode on that device. 3.1 Level 1 Recruit: Harbor Lights Tutoring Center ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Theme: Branch router hardening Grade: Sophomore. Learn it: Defense Ladder > Sophomore > Cisco: configure a switch and a router (https://freeapp4that.store/defense-ladder/#sophomore/s5). Scenario Brief summary: You are the new network technician at Harbor Lights Tutoring Center, an after-school program with one branch router (R1) and a front-desk PC (PC1). The previous technician left R1 wide open: it still has its factory hostname, a plaintext enable password, an unused account, and Telnet access. Harden R1 so it meets the policy below. Work from R1's console tab and test from PC1. The R1 console starts password-free: press RETURN at the console to begin. Authorized administrators: - techlead (existing account, privilege 15) - keep it - netadmin (your account - create it with privilege 15 and a secret of 10+ characters) Authorized users: - No other accounts are authorized. The "guest" account is not authorized. Required (availability checks protect these): - R1 GigabitEthernet0/0 (192.168.1.1) is the front-desk LAN and must stay up with its address. - SSH management from PC1 to R1 is required once you finish. Policy: - Privileged access uses an enable secret in place of a plaintext enable password. - Passwords and secrets are at least 10 characters. - The console and VTY lines require authentication; remote access is SSH only, with Telnet turned off. - A message-of-the-day banner warns unauthorized users and leaves out the word "welcome". - Every console and VTY line sets an exec-timeout shorter than the 10-minute default on the line itself (for example, exec-timeout 5 0; 0 0 turns the timeout off). Passwords are stored encrypted. - Unneeded services are off (HTTP server, DNS lookups). Unused interfaces are shut down. - Save the configuration when you are done. Warning: Keep every authorized account and keep GigabitEthernet0/0 online: removing either one fails an availability check. Credentials: R1 console: password-free for now (press RETURN). Enable password: letmein123 (replace it with an enable secret). PC1 is already addressed. Addressing (device | interface | address | mask | gateway): R1 | GigabitEthernet0/0 | 192.168.1.1 | 255.255.255.0 | - R1 | GigabitEthernet0/1 | unused | - | - PC1 | FastEthernet0 | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 Task list (shown in the Activity panel at this level): 1. Set the hostname to R1. 2. Configure an enable secret (10+ characters) and remove the plaintext enable password. 3. Delete the unauthorized guest account; create netadmin with privilege 15 and a secret. 4. Protect the console with a password and login; set exec-timeout 5 0 on console and VTY. 5. Make the VTY lines use login local and transport input ssh. 6. Set a domain name, generate a 2048-bit RSA key, and force SSH version 2. 7. Add a MOTD banner (without "welcome"), enable service password-encryption, require passwords of 10+ characters, and limit login attempts. 8. Turn off the HTTP server and DNS lookups; shut down the unused interface GigabitEthernet0/1. 9. Answer both investigation questions, then save with copy running-config startup-config. Investigation answers: Q1: The VTY lines on R1 still carry a plaintext line password. What is it? (Hint: show running-config) ANSWER: cisco Q2: What is the file name of the IOS image R1 booted from? (Hint: show version) ANSWER: c1900-universalk9-mz.SPA.151-4.M4.bin also accepted: flash0:c1900-universalk9-mz.SPA.151-4.M4.bin, flash:c1900-universalk9-mz.SPA.151-4.M4.bin Checks (22, 100 points): 1. Hostname set to R1 (4 pts) [Secure configuration] R1(config)# hostname R1 why: A named device is identifiable in logs and prompts; "Router" means nobody set it up. 2. Enable secret configured (6 pts) [Account management] R1(config)# enable secret Str0ng-Enable-2026! why: The enable secret is hashed in the config; it guards privileged mode. 3. Plaintext enable password removed (5 pts) [Account management] R1(config)# no enable password why: enable password is stored readably (or with weak type 7); the secret replaces it. 4. Unauthorized account "guest" removed (6 pts) [Account management] R1(config)# no username guest why: Every unauthorized account is a way in; the scenario brief lists who is allowed. 5. Administrator "netadmin" created with privilege 15 and a secret (6 pts) [Account management] R1(config)# username netadmin privilege 15 secret N3tadmin-2026! why: login local and SSH both need a local account; privilege 15 lands you in enable mode. 6. Console line protected with a password and login (6 pts) [Access control] R1(config)# line console 0 R1(config-line)# password C0nsole-Pass! R1(config-line)# login why: Without it anyone with a console cable owns the device. 7. VTY lines use local user authentication (login local) (6 pts) [Access control] R1(config)# line vty 0 4 R1(config-line)# login local why: SSH needs usernames; a shared line password cannot be audited or revoked per person. 8. VTY lines accept SSH only (Telnet disabled) (6 pts) [Access control] R1(config-line)# transport input ssh why: Telnet sends passwords in clear text on the wire. 9. Domain name configured (3 pts) [Access control] R1(config)# ip domain-name harborlights.lan why: The RSA key is named hostname.domain; IOS refuses to generate one without a domain. 10. RSA key pair generated (2048 bits) (6 pts) [Access control] R1(config)# crypto key generate rsa general-keys modulus 2048 why: Keys shorter than 2048 bits are considered weak; the key is what enables the SSH server. 11. SSH version 2 enforced (5 pts) [Access control] R1(config)# ip ssh version 2 why: SSHv1 has known weaknesses; v2 only is the standard. 12. MOTD banner warns unauthorized users (and leaves out "welcome") (4 pts) [Secure configuration] R1(config)# banner motd #Authorized access only. Activity is monitored.# why: States that access is restricted and monitored. Cisco advises banners that reveal nothing about the device or owner; "welcome" reads as an invitation, and legal wording is a question for counsel. 13. Service password-encryption enabled (4 pts) [Account management] R1(config)# service password-encryption why: Turns plaintext line and user passwords into type 7, which stops shoulder-surfing but is reversible obfuscation, not real encryption: secrets still need enable secret / username secret. 14. Exec timeout shorter than 10 minutes on console and VTY (5 pts) [Access control] R1(config-line)# exec-timeout 5 0 why: An idle, logged-in session left open is a free privileged shell. IOS already times out after 10 minutes by default, and show running-config leaves that default out; a shorter value, such as exec-timeout 5 0, shows in the configuration, where a reviewer can see it. 15. Minimum password length set to 10 or more (3 pts) [Account management] R1(config)# security passwords min-length 10 why: IOS then rejects new passwords and secrets shorter than that; set it before you set the passwords. 16. Login attempts limited (login block-for) (4 pts) [Access control] R1(config)# login block-for 120 attempts 3 within 60 why: Slows password guessing against the VTY lines. 17. HTTP server disabled (3 pts) [Secure configuration] R1(config)# no ip http server why: An unneeded management interface is attack surface. 18. DNS lookups disabled (no ip domain-lookup) (3 pts) [Secure configuration] R1(config)# no ip domain-lookup why: Stops typos from becoming long DNS "Translating..." hangs on the console. 19. Unused interface GigabitEthernet0/1 shut down (3 pts) [Secure configuration] R1(config)# interface GigabitEthernet0/1 R1(config-if)# shutdown why: Nobody can plug into a port that is administratively down. 20. Configuration saved to startup-config (4 pts) [Secure configuration] R1# copy running-config startup-config why: Unsaved work vanishes on reload - this check reads the saved startup-config, just as a reload would. 21. Investigation 1 answered (4 pts) [Investigation] Answer: cisco why: Reading the config before changing it is the first step of every assessment. 22. Investigation 2 answered (4 pts) [Investigation] Answer: c1900-universalk9-mz.SPA.151-4.M4.bin why: show version tells you the software (and known bugs) you are defending. Availability checks (pass while the required items keep working): - Fails if: Authorized administrator "techlead" removed (-8 pts) why: The scenario brief lists techlead as an authorized administrator; deleting a colleague's account locks them out of a device the center depends on. - Fails if: PC1 can no longer reach its gateway 192.168.1.1 (-10 pts) why: GigabitEthernet0/0 is a required service; shutting it or changing its address breaks the front desk. 3.2 Level 2 Operator: Pua Lane Public Library ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Theme: Access switch: VLANs, port security, and SSH Grade: Junior. Learn it: Defense Ladder > Junior > Cisco: VLANs, routing, and ACLs (https://freeapp4that.store/defense-ladder/#junior/j4); and, for port security, Defense Ladder > Sophomore > Cisco: configure a switch and a router (https://freeapp4that.store/defense-ladder/#sophomore/s5). Scenario Brief summary: You are the network technician for the Pua Lane branch of the county library. The branch has one access switch (S1) with two staff PCs and an uplink to the district router R1. District IT owns R1 and has already configured it as a router-on-a-stick: VLAN 10 (STAFF, gateway 192.168.10.1) and VLAN 99 (MGMT, gateway 192.168.99.1, the native VLAN on the trunk). S1 was set up by a volunteer years ago: everything sits in VLAN 1, the switch is managed over Telnet with the password "cisco", and the uplink runs as an access port. Bring S1 up to policy. R1 is view-only for you: leave it exactly as it is. Authorized administrators: - libadmin (district account, privilege 15) - keep it - netadmin (your account - create it with privilege 15 and a secret of 10+ characters) Authorized users: - No other accounts are authorized. "tempadmin" was never approved. Required (availability checks protect these): - PC1 and PC2 must keep connectivity to each other; after the migration both belong to VLAN 10 (STAFF). - The uplink GigabitEthernet0/1 to R1 is required. R1 is district-managed and stays as it is. - S1 must be manageable over SSH on VLAN 99 (192.168.99.2) from a staff PC. Policy: - User traffic uses VLANs above 1; management uses VLAN 99 (192.168.99.2/24, default gateway 192.168.99.1). - The uplink is an 802.1Q trunk with native VLAN 99, allowed VLANs 10 and 99, and DTP negotiation turned off. - Unused ports are shut down and parked in VLAN 999 (PARKING). - PC-facing ports run port security (max 1-2 sticky addresses, violation shutdown or restrict), PortFast, and BPDU guard. PortFast belongs on edge ports only, so the uplink trunk stays free of it. - Enable secret only; passwords 10+ characters; a console password other than "cisco"; SSH only, with Telnet turned off; a banner without "welcome"; an exec-timeout shorter than the 10-minute default on every console and VTY line, set on the line itself (for example, exec-timeout 5 0; 0 0 turns the timeout off); passwords encrypted; HTTP server and DNS lookups off. - Design note: this older branch layout uses VLAN 99 as both the native VLAN and the management VLAN. Level 4 shows the cleaner design: the native VLAN (99) carries no hosts, and management moves to a separate VLAN (Teachers, VLAN 20). - Save the configuration when you are done. Warning: Removing libadmin, breaking PC1-PC2 connectivity, or modifying R1 fails an availability check. Credentials: S1 console password: cisco. S1 enable password: library (replace it). R1: no credentials are provided (user EXEC only). Addressing (device | interface | address | mask | gateway): R1 | Gi0/0.10 (VLAN 10) | 192.168.10.1 | 255.255.255.0 | - R1 | Gi0/0.99 (VLAN 99, native) | 192.168.99.1 | 255.255.255.0 | - S1 | Vlan99 (management) | 192.168.99.2 | 255.255.255.0 | 192.168.99.1 PC1 | Fa0/1 (VLAN 10) | 192.168.10.11 | 255.255.255.0 | 192.168.10.1 PC2 | Fa0/2 (VLAN 10) | 192.168.10.12 | 255.255.255.0 | 192.168.10.1 Investigation answers: Q1: What is the MAC address of PC2? (Hint: ipconfig /all on PC2, or show mac address-table on S1) ANSWER: 0001.B7D9.E350 Q2: An unauthorized local account exists on S1. What is its username? ANSWER: tempadmin Checks (27, 100 points): 1. Hostname set to S1 (3 pts) [Secure configuration] S1(config)# hostname S1 why: Logs, CDP, and prompts all show the name. 2. Enable secret configured (4 pts) [Account management] S1(config)# enable secret L1brary-En@ble! why: Hashed, unlike the enable password. 3. Plaintext enable password removed (4 pts) [Account management] S1(config)# no enable password why: "library" is readable in the config and easy to guess. 4. Unauthorized account "tempadmin" removed (5 pts) [Account management] S1(config)# no username tempadmin why: A forgotten privilege-15 account is a permanent back door. 5. Administrator "netadmin" created with privilege 15 and a secret (5 pts) [Account management] S1(config)# username netadmin privilege 15 secret N3tadmin-2026! why: Needed for login local and SSH. 6. Console password changed from the default "cisco" (3 pts) [Access control] S1(config)# line console 0 S1(config-line)# password C0nsole-Pass! S1(config-line)# login why: "cisco" is the first guess anyone makes. 7. VTY lines use local user authentication (login local) (4 pts) [Access control] S1(config)# line vty 0 15 S1(config-line)# login local why: Per-user accounts instead of one shared password. 8. VTY lines accept SSH only (Telnet disabled) (5 pts) [Access control] S1(config-line)# transport input ssh why: Telnet exposes every keystroke, including passwords. 9. Domain name set and 2048-bit RSA key generated (4 pts) [Access control] S1(config)# ip domain-name pualane.lan S1(config)# crypto key generate rsa general-keys modulus 2048 why: No key, no SSH server. 10. SSH version 2 enforced (3 pts) [Access control] S1(config)# ip ssh version 2 why: Disables the weaker protocol version. 11. MOTD banner warns unauthorized users (3 pts) [Secure configuration] S1(config)# banner motd #Authorized library staff only. Activity is monitored.# why: Legal notice shown before login. 12. Service password-encryption enabled (3 pts) [Account management] S1(config)# service password-encryption why: Obscures line passwords in show running-config. 13. Exec timeout shorter than 10 minutes on console and VTY (3 pts) [Access control] S1(config-line)# exec-timeout 5 0 why: Closes abandoned sessions. 14. HTTP server disabled (3 pts) [Secure configuration] S1(config)# no ip http server why: Removes the web management interface. 15. DNS lookups disabled (2 pts) [Secure configuration] S1(config)# no ip domain-lookup why: Prevents typo lookups from hanging the console. 16. VLAN 10 "STAFF" created and both PC ports are access ports in it (4 pts) [Secure configuration] S1(config)# vlan 10 S1(config-vlan)# name STAFF S1(config)# interface range fa0/1 - 2 S1(config-if-range)# switchport mode access S1(config-if-range)# switchport access vlan 10 why: User traffic leaves the default VLAN; access mode stops DTP games on user ports. 17. Management moved to VLAN 99 (Vlan99 192.168.99.2 up, Vlan1 shut down) (5 pts) [Secure configuration] S1(config)# vlan 99 S1(config-vlan)# name MGMT S1(config)# interface vlan 99 S1(config-if)# ip address 192.168.99.2 255.255.255.0 S1(config-if)# no shutdown S1(config)# interface vlan 1 S1(config-if)# no ip address S1(config-if)# shutdown why: Management on VLAN 1 is reachable from every unconfigured port. (Larger networks also keep management off the native VLAN; this branch layout keeps 99 for both, and Level 4 separates them.) 18. Default gateway corrected to 192.168.99.1 (3 pts) [Secure configuration] S1(config)# ip default-gateway 192.168.99.1 why: The switch replies to off-subnet managers through its gateway on the MGMT VLAN. 19. Uplink Gi0/1 is a trunk: native VLAN 99, allowed 10,99, nonegotiate (5 pts) [Secure configuration] S1(config)# interface GigabitEthernet0/1 S1(config-if)# switchport mode trunk S1(config-if)# switchport trunk native vlan 99 S1(config-if)# switchport trunk allowed vlan 10,99 S1(config-if)# switchport nonegotiate why: Matches R1 (native 99) and stops VLAN hopping via the default native VLAN 1 and DTP. 20. Unused ports shut down (Fa0/3-24, Gi0/2) (4 pts) [Secure configuration] S1(config)# interface range fa0/3 - 24 S1(config-if-range)# shutdown S1(config)# interface GigabitEthernet0/2 S1(config-if)# shutdown why: A live empty port is an invitation. 21. Unused ports parked in VLAN 999 (3 pts) [Secure configuration] S1(config)# vlan 999 S1(config-vlan)# name PARKING S1(config)# interface range fa0/3 - 24 , gi0/2 S1(config-if-range)# switchport mode access S1(config-if-range)# switchport access vlan 999 why: If a parked port is ever enabled by mistake it lands in a dead-end VLAN. 22. Port security on PC ports (max 1-2, sticky, violation shutdown/restrict) (5 pts) [Access control] S1(config)# interface range fa0/1 - 2 S1(config-if-range)# switchport port-security S1(config-if-range)# switchport port-security maximum 1 S1(config-if-range)# switchport port-security violation shutdown S1(config-if-range)# switchport port-security mac-address sticky why: Only the known PC may use that port; a rogue device shuts it down. 23. PortFast and BPDU guard on PC ports (uplink trunk free of PortFast) (3 pts) [Secure configuration] S1(config-if-range)# spanning-tree portfast S1(config-if-range)# spanning-tree bpduguard enable why: PortFast belongs on edge ports: the PC port forwards at once, and BPDU guard shuts it if a switch appears there. On a trunk, PortFast would skip the loop checks that protect the uplink. 24. PC1 can SSH to S1 (192.168.99.2) as netadmin (4 pts) [Troubleshooting] PC1> ssh -l netadmin 192.168.99.2 why: Proves the management path end to end: VLAN 10 -> R1 -> VLAN 99 -> S1 and back. 25. Configuration saved to startup-config (4 pts) [Secure configuration] S1# copy running-config startup-config why: A reload would otherwise undo every interface and account change. (VLANs live in flash:vlan.dat and survive a reload on their own; the rest of the work lives in the configuration.) 26. Investigation 1 answered (3 pts) [Investigation] Answer: the Physical Address shown by ipconfig /all on PC2 why: MAC addresses tie a port to a machine - the basis of port security. 27. Investigation 2 answered (3 pts) [Investigation] Answer: tempadmin why: Compare every account against the scenario brief before touching anything. Availability checks (pass while the required items keep working): - Fails if: Authorized administrator "libadmin" removed (-8 pts) why: District IT needs its account; the scenario brief lists it as authorized. - Fails if: Required PC1-PC2 connectivity broken (-10 pts) why: Both PCs must stay in the same VLAN with their ports up. - Fails if: District router R1 modified (-10 pts) why: R1 belongs to district IT and is out of scope; changing a device you do not own risks the routing the whole branch depends on. 3.3 Level 3 Captain: Kaulana Creek Veterinary Clinic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Theme: Two switches, trunks, and troubleshooting Grade: Senior. Learn it: Defense Ladder > Junior > Cisco: VLANs, routing, and ACLs (https://freeapp4that.store/defense-ladder/#junior/j4); Defense Ladder > Senior > Cisco: audit and extend the two-site network (https://freeapp4that.store/defense-ladder/#senior/se6); and, for logging, NTP, SNMP, and CDP, Defense Ladder > Sophomore > Cisco: configure a switch and a router (https://freeapp4that.store/defense-ladder/#sophomore/s5). Scenario Brief summary: You are the lead technician at Kaulana Creek Veterinary Clinic. The clinic network is a router (R1) doing inter-VLAN routing for two switches: S1 at the front desk and S2 in the exam rooms, joined by a trunk. VLAN 10 FRONTDESK (PC1), VLAN 20 EXAM (PC2), and VLAN 99 MGMT (R1 .1, S1 .2, S2 .3) are in use; the syslog/NTP server lives at 192.168.99.50. Since a contractor "upgraded" things last week, PC2 and PC1 have lost contact, and management traffic fails to reach S1. Find and fix the faults, then finish hardening all three devices to policy. Each device has your account; use it on the consoles. Authorized administrators: - vetadmin (privilege 15, on R1, S1, and S2) - your account, password Cl1nic-Adm1n! - Enable secret on all devices: Cl1nic-En@ble Authorized users: - No other accounts are authorized: "svc_backup" (R1) and "kiosk" (S2) were never approved. Required (availability checks protect these): - PC1 (192.168.10.10) and PC2 (192.168.20.10) must be able to reach each other. - The trunks R1-S1 and S1-S2 and the management addresses in VLAN 99 are required. - Remote management is SSH only, from the management subnet 192.168.99.0/24 only. Policy: - SSH only on all VTY lines, protected by a standard ACL permitting just 192.168.99.0/24; RSA keys 2048 bits; SSH version 2. - Trunks use native VLAN 99 and switchport nonegotiate; unused ports are shut down. - Access ports: port security (sticky, max 2), PortFast, BPDU guard, and CDP off. PortFast belongs on edge ports only, so every trunk stays free of it. - DHCP snooping on VLANs 10 and 20 with the trunks trusted. - Every device logs to 192.168.99.50 with timestamps and syncs time with NTP from 192.168.99.50. - Enable secret only, encrypted passwords, an exec-timeout shorter than the 10-minute default on every console and VTY line, set on the line itself (for example, exec-timeout 5 0; 0 0 turns the timeout off), login block-for, a MOTD banner, and the HTTP server off. - The clinic monitors its devices through syslog alone. Remove the SNMP community "public" that the contractor left on R1. - Save all three configurations. Warning: Removing vetadmin, breaking the trunks or the management addresses, or cutting PC1 off from its gateway fails an availability check. Credentials: Console login on R1, S1, and S2: vetadmin / Cl1nic-Adm1n! (lands in privileged EXEC). Enable secret: Cl1nic-En@ble. Addressing (device | interface | address | mask | gateway): R1 | Gi0/0.10 (VLAN 10) | 192.168.10.1 | 255.255.255.0 | - R1 | Gi0/0.20 (VLAN 20) | 192.168.20.1 | 255.255.255.0 | - R1 | Gi0/0.99 (VLAN 99, native) | 192.168.99.1 | 255.255.255.0 | - S1 | Vlan99 | 192.168.99.2 | 255.255.255.0 | 192.168.99.1 S2 | Vlan99 | 192.168.99.3 | 255.255.255.0 | 192.168.99.1 PC1 | S1 Fa0/1 (VLAN 10) | 192.168.10.10 | 255.255.255.0 | 192.168.10.1 PC2 | S2 Fa0/1 (VLAN 20) | 192.168.20.10 | 255.255.255.0 | 192.168.20.1 Server1 | (not shown) VLAN 99 | 192.168.99.50 | 255.255.255.0 | 192.168.99.1 Investigation answers: Q1: Which R1 interface is administratively down although it must carry the EXAM VLAN? Type it as show ip interface brief prints it. ANSWER: GigabitEthernet0/0.20 also accepted: g0/0.20, gi0/0.20, gig0/0.20, gigabitethernet 0/0.20 Q2: The VTY access list on R1 permits one host that is outside the clinic. What is that IP address? ANSWER: 203.0.113.66 Checks (28, 100 points): 1. Unauthorized account "svc_backup" removed from R1 (3 pts) [Account management] R1(config)# no username svc_backup why: A privilege-15 account with a plaintext password is the worst kind of leftover. 2. Unauthorized account "kiosk" removed from S2 (3 pts) [Account management] S2(config)# no username kiosk why: Not in the scenario brief, so not authorized. 3. Leftover plaintext enable password removed from S2 (3 pts) [Account management] S2(config)# no enable password why: The secret already protects enable mode; the password only leaks. 4. Service password-encryption on R1, S1, and S2 (3 pts) [Account management] (config)# service password-encryption why: Consistency matters: one readable config is enough. 5. R1 RSA key regenerated at 2048 bits and SSH version 2 enforced (5 pts) [Access control] R1(config)# crypto key generate rsa general-keys modulus 2048 R1(config)# ip ssh version 2 why: A 1024-bit key no longer meets policy. 6. SSH-only VTY access (login local + transport input ssh) on R1, S1, and S2 (6 pts) [Access control] (config)# ip domain-name kaulanavet.lan (config)# crypto key generate rsa general-keys modulus 2048 S1(config)# line vty 0 15 S1(config-line)# login local S1(config-line)# transport input ssh (same on S2; R1 uses line vty 0 4, the VTY range it already has) why: Telnet on any one device exposes the shared admin password. 7. R1 VTY access list permits only 192.168.99.0/24 (outside host removed) (4 pts) [Access control] R1(config)# ip access-list standard 10 R1(config-std-nacl)# no 20 R1(config-std-nacl)# exit R1(config)# line vty 0 4 R1(config-line)# access-class 10 in why: An ACL that lets an internet host in is worse than none - it looks secure. 8. VTY access-class restricting to 192.168.99.0/24 applied on S1 and S2 (5 pts) [Access control] S1(config)# access-list 10 permit 192.168.99.0 0.0.0.255 S1(config)# line vty 0 15 S1(config-line)# access-class 10 in why: Only management stations should even see a login prompt. 9. Exec timeout shorter than 10 minutes on console and VTY of all devices (3 pts) [Access control] (config-line)# exec-timeout 5 0 why: Idle sessions are unattended privileged shells. 10. Login block-for configured on all devices (3 pts) [Access control] (config)# login block-for 120 attempts 3 within 60 why: Rate-limits brute force on SSH. 11. MOTD banner (without "welcome") on all devices (3 pts) [Secure configuration] (config)# banner motd #Authorized clinic staff only. Activity is monitored.# why: Legal notice on every login path. 12. HTTP server disabled on all devices (3 pts) [Secure configuration] (config)# no ip http server why: Unused management surface. 13. Default SNMP community "public" removed from R1 (3 pts) [Secure configuration] R1(config)# no snmp-server community public why: Anyone who knows the word public can read the router over SNMP, and with RW they can rewrite its whole configuration. When monitoring needs SNMP, SNMPv3 with a group and a user (auth and priv) replaces community strings. 14. Syslog host 192.168.99.50 and log timestamps on all devices (4 pts) [Audit logging] (config)# logging host 192.168.99.50 (config)# service timestamps log datetime msec why: Central, time-stamped logs are the evidence trail. 15. NTP server 192.168.99.50 on all devices (3 pts) [Audit logging] (config)# ntp server 192.168.99.50 why: Logs from three devices only correlate if their clocks agree. 16. R1 GigabitEthernet0/0.20 enabled (no shutdown) (4 pts) [Troubleshooting] R1(config)# interface GigabitEthernet0/0.20 R1(config-subif)# no shutdown why: VLAN 20 has no gateway while its subinterface is down. 17. S2 Fa0/1 assigned to VLAN 20 (EXAM) (4 pts) [Troubleshooting] S2(config)# interface FastEthernet0/1 S2(config-if)# switchport access vlan 20 why: PC2 has a VLAN 20 address but sits in VLAN 10: wrong broadcast domain. 18. PC2 default gateway corrected to 192.168.20.1 (3 pts) [Troubleshooting] PC2 > IP Configuration > Default Gateway = 192.168.20.1 why: A wrong gateway strands the PC on its own subnet. 19. PC1 can reach PC2 (end-to-end connectivity restored) (5 pts) [Troubleshooting] PC1> ping 192.168.20.10 why: The business outcome: the clinic works again. 20. Native VLAN 99 and nonegotiate on all trunks (S1 Gi0/1 mismatch fixed) (4 pts) [Secure configuration] S1(config)# interface range gi0/1 - 2 S1(config-if-range)# switchport trunk native vlan 99 S1(config-if-range)# switchport nonegotiate S2(config)# interface gi0/1 S2(config-if)# switchport nonegotiate why: The native mismatch on S1 Gi0/1 is why management traffic to R1 fails; nonegotiate stops DTP. 21. Unused ports shut down on S1 and S2 (3 pts) [Secure configuration] S1(config)# interface range fa0/2 - 24 S1(config-if-range)# shutdown S2(config)# interface range fa0/2 - 24 , gi0/2 S2(config-if-range)# shutdown why: Every open port in an exam room is a place to plug in. 22. Port security (sticky, max 2) on S1 Fa0/1 and S2 Fa0/1 (4 pts) [Access control] (config-if)# switchport port-security (config-if)# switchport port-security maximum 2 (config-if)# switchport port-security violation restrict (config-if)# switchport port-security mac-address sticky why: Limits each port to the devices that belong there. 23. PortFast and BPDU guard on the access ports (trunks free of PortFast) (3 pts) [Secure configuration] (config-if)# spanning-tree portfast (config-if)# spanning-tree bpduguard enable why: PortFast belongs on edge ports, and BPDU guard keeps a rogue switch there from influencing the topology. Trunks keep the full spanning-tree checks. 24. DHCP snooping on VLANs 10 and 20 with trusted trunks (S1, S2) (4 pts) [Secure configuration] S1(config)# ip dhcp snooping S1(config)# ip dhcp snooping vlan 10,20 S1(config)# interface range gi0/1 - 2 S1(config-if-range)# ip dhcp snooping trust (same on S2 with gi0/1) why: Stops a rogue DHCP server on a user port from redirecting the clinic. 25. CDP disabled on PC-facing ports (or globally) on S1 and S2 (2 pts) [Secure configuration] (config-if)# no cdp enable why: CDP tells anyone on the port the switch model, IOS version, and VLAN. 26. Configurations saved on R1, S1, and S2 (4 pts) [Secure configuration] # copy running-config startup-config why: Three devices, three saves. 27. Investigation 1 answered (3 pts) [Investigation] Answer: GigabitEthernet0/0.20 why: show ip interface brief is the fastest health check on any IOS device. 28. Investigation 2 answered (3 pts) [Investigation] Answer: 203.0.113.66 why: Read ACLs line by line; one permit is all it takes. Availability checks (pass while the required items keep working): - Fails if: Authorized administrator "vetadmin" removed from a device (-8 pts) why: Your own account is the authorized administrator on every device in the scenario brief; removing it locks you out. - Fails if: PC1 can no longer reach its gateway 192.168.10.1 (-8 pts) why: VLAN 10 must stay routed; the trunk to R1 and Gi0/0.10 are required. - Fails if: Management address removed or shut on S1 or S2 (VLAN 99) (-6 pts) why: Without the SVI the switch cannot be managed remotely. - Fails if: Required trunk S1 Gi0/2 - S2 Gi0/1 broken (-6 pts) why: S2 and PC2 hang off this trunk. 3.4 Level 4 Two sites: Two-site school network ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Theme: VLANs, router-on-a-stick, OSPF, and SSH across two sites Grade: Senior. Learn it: Defense Ladder > Senior > Cisco: audit and extend the two-site network (https://freeapp4that.store/defense-ladder/#senior/se6); and, for the DHCP pool, Defense Ladder > Junior > Cisco: VLANs, routing, and ACLs (https://freeapp4that.store/defense-ladder/#junior/j4). Scenario Brief summary: The school runs two sites joined by a private inter-site link, and each site has its own uplink to the provider. Site A (RtrA and SwA) is finished and belongs to the Site A team: read it as a worked example with show running-config, show vlan brief, show interfaces trunk, and show ip route, and leave it exactly as it is. Site B (RtrB and SwB) arrives with factory defaults. Build it to match Site A: the same VLANs, a router-on-a-stick trunk, SSH management for Teachers only, a static host route to the resolver at 8.8.8.8, and OSPF across the inter-site link so each site can borrow the other's uplink when its own fails. The ISP router stands in for the internet and routes the school's 10.x ranges back to each site. A real provider does that only after NAT, which sits outside this lab. Larger networks give management its own dedicated VLAN; this network keeps it on Teachers so the Teachers-only ACL and the management subnet are one and the same. Authorized administrators: - netadmin (privilege 15) on SwA, RtrA, SwB, and RtrB: create it on SwB and RtrB with a secret. - techlead (Site A team, privilege 15 on SwA and RtrA): keep it as it is. Authorized users: - Every other account is unauthorized. Required (availability checks protect these): - SwA, RtrA, and the ISP router stay exactly as delivered: they belong to other teams. - Teachers at either site manage both sites, so Teacher-A keeps SSH access to SwB and RtrB. - Student-B reaches Teacher-B and the resolver at 8.8.8.8; Teacher-B reaches Teacher-A across the inter-site link. Policy: - Hostnames are SwB and RtrB. VLANs at Site B match Site A: 10 STUDENTS, 20 TEACHERS, 30 PRINCIPALS, 99 NATIVE, and 999 PARKING. - SwB Fa0/1 is a Students access port and Fa0/2 a Teachers access port; both run PortFast and BPDU guard. PortFast belongs on edge ports only, so the G0/1 trunk stays free of it. - SwB G0/1 is a static 802.1Q trunk to RtrB G0/0: switchport mode trunk, switchport nonegotiate, native VLAN 99, and allowed VLANs 10,20,30,99. The native VLAN stays free of hosts, an SVI, and an IP address. - Unused ports (Fa0/3-24 and Gi0/2) are access ports in VLAN 999 PARKING and stay shut down. PARKING is separate from the native VLAN. - SwB is managed on VLAN 20: interface vlan 20 is 10.2.20.2/24 with default gateway 10.2.20.1, and interface vlan 1 stays shut down without an address. - RtrB routes between the VLANs with subinterfaces g0/0.10, .20, and .30 (encapsulation dot1Q N plus the gateway address) and g0/0.99 (encapsulation dot1Q 99 native, without an IP address). - RtrB G0/2 is 10.0.0.2/30 on the inter-site link and G0/1 is 198.51.100.2/30 toward the ISP. RtrB reaches the resolver over its own uplink: ip route 8.8.8.8 255.255.255.255 198.51.100.1. - RtrB runs router ospf 1 with network 10.0.0.0 0.0.0.3 area 0 and network 10.2.0.0 0.0.255.255 area 0, and redistributes its static route with redistribute static subnets. The local static route (distance 1) beats the neighbour's O E2 copy (distance 110), so that copy is the backup when the local uplink fails. - OSPF hellos stay on the inter-site link: like RtrA, RtrB makes g0/0.10, .20, and .30 passive interfaces (or uses passive-interface default with no passive-interface g0/2). - RtrB G0/1 filters what arrives from the provider with a named extended ACL, EDGE-IN, applied with ip access-group EDGE-IN in. It permits replies (permit tcp any any established and permit icmp any any echo-reply) and DNS answers from the resolver (permit udp host 8.8.8.8 eq domain any), and it ends in deny ip any any log. - Student PCs lease their addresses from RtrB, as Site A's do from RtrA (pool STUDENTS). RtrB excludes 10.2.10.1 to 10.2.10.9 with ip dhcp excluded-address and serves pool STUDENTS-B: network 10.2.10.0 255.255.255.0, default-router 10.2.10.1, and dns-server 8.8.8.8. Student-B is a DHCP client, so ipconfig /renew on Student-B then leases 10.2.10.10, the first free address and the one in the addressing table. - Remote management is SSH version 2 only (domain school.lan, 2048-bit RSA key, login local, user netadmin at privilege 15) from Teachers at either site: access-list 20 permits 10.1.20.0 0.0.0.255 and 10.2.20.0 0.0.0.255, with access-class 20 in on every VTY line (vty 0 15 on SwB, and every VTY range that show running-config lists on RtrB). - Both new devices use an enable secret, a console password with login, a MOTD banner, and a login banner. Give every secret and password its own passphrase, and save both configurations. Warning: Changing SwA, RtrA, or the ISP router, or locking Site A Teachers out of SSH to SwB or RtrB, fails an availability check. Credentials: SwA and RtrA console password: C0nsole-A1; enable secret: En@ble-A1 (read them, then leave them as they are). SwB and RtrB: factory defaults, so answer no to the initial configuration dialog and press RETURN. ISP: provider equipment, open to provider staff only. Pick your own Site B secrets with a different passphrase for each, for example En@ble-B1, C0nsole-B1, and Adm1n-B1. Addressing (device | interface | address | mask | gateway): RtrA | Gi0/0.10 / .20 / .30 | 10.1.10.1 / 10.1.20.1 / 10.1.30.1 | 255.255.255.0 | - RtrA | Gi0/1 (ISP uplink) | 203.0.113.2 | 255.255.255.252 | - RtrA | Gi0/2 (inter-site) | 10.0.0.1 | 255.255.255.252 | - SwA | Vlan20 (management) | 10.1.20.2 | 255.255.255.0 | 10.1.20.1 RtrB | Gi0/0.10 (VLAN 10 STUDENTS) | 10.2.10.1 | 255.255.255.0 | - RtrB | Gi0/0.20 (VLAN 20 TEACHERS) | 10.2.20.1 | 255.255.255.0 | - RtrB | Gi0/0.30 (VLAN 30 PRINCIPALS) | 10.2.30.1 | 255.255.255.0 | - RtrB | Gi0/0.99 (VLAN 99 NATIVE) | no address | - | - RtrB | Gi0/1 (ISP uplink) | 198.51.100.2 | 255.255.255.252 | - RtrB | Gi0/2 (inter-site) | 10.0.0.2 | 255.255.255.252 | - SwB | Vlan20 (management) | 10.2.20.2 | 255.255.255.0 | 10.2.20.1 ISP | Gi0/0 (to RtrA) | 203.0.113.1 | 255.255.255.252 | - ISP | Gi0/1 (to RtrB) | 198.51.100.1 | 255.255.255.252 | - ISP | Gi0/2 (resolver LAN) | 8.8.8.1 | 255.255.255.0 | - Teacher-A | SwA Fa0/2 (VLAN 20) | 10.1.20.10 | 255.255.255.0 | 10.1.20.1 Student-B | SwB Fa0/1 (VLAN 10) | 10.2.10.10 (DHCP) | 255.255.255.0 | 10.2.10.1 Teacher-B | SwB Fa0/2 (VLAN 20) | 10.2.20.10 | 255.255.255.0 | 10.2.20.1 Resolver | ISP Gi0/2 | 8.8.8.8 | 255.255.255.0 | 8.8.8.1 Investigation answers: Q1: Which route code does RtrA's show ip route print for 8.8.8.8? ANSWER: S also accepted: static Q2: Once RtrB runs OSPF, which route code does RtrA show for 10.2.20.0/24? ANSWER: O also accepted: ospf Q3: What administrative distance does RtrB's own static route to 8.8.8.8 carry? (Hint: show ip route 8.8.8.8 on RtrB) ANSWER: 1 Q4: Which keyword on redistribute static carries a /32 host route into OSPF? ANSWER: subnets Checks (30, 100 points): 1. SwB VLANs 10 STUDENTS, 20 TEACHERS, 30 PRINCIPALS, 99 NATIVE, and 999 PARKING (4 pts) [Secure configuration] SwB(config)# vlan 10 SwB(config-vlan)# name STUDENTS SwB(config-vlan)# vlan 20 SwB(config-vlan)# name TEACHERS SwB(config-vlan)# vlan 30 SwB(config-vlan)# name PRINCIPALS SwB(config-vlan)# vlan 99 SwB(config-vlan)# name NATIVE SwB(config-vlan)# vlan 999 SwB(config-vlan)# name PARKING why: Each group gets its own broadcast domain and subnet, so the router (and later an ACL) decides what crosses between them. The names make show vlan brief readable. 2. SwB Fa0/1 access VLAN 10 and Fa0/2 access VLAN 20 (4 pts) [Secure configuration] SwB(config)# interface fa0/1 SwB(config-if)# switchport mode access SwB(config-if)# switchport access vlan 10 SwB(config-if)# interface fa0/2 SwB(config-if)# switchport mode access SwB(config-if)# switchport access vlan 20 why: Static access mode puts each PC in exactly one VLAN and turns off trunk negotiation on a user port. 3. PortFast and BPDU guard on Fa0/1-2; G0/1 free of PortFast (4 pts) [Secure configuration] SwB(config)# interface range fa0/1 - 2 SwB(config-if-range)# spanning-tree portfast SwB(config-if-range)# spanning-tree bpduguard enable why: PortFast belongs on edge ports: a PC port forwards at once instead of waiting 30 seconds, and BPDU guard shuts the port if a switch appears there. The trunk keeps the full spanning-tree checks. 4. SwB G0/1 trunk: mode trunk, nonegotiate, native 99, allowed 10,20,30,99 (5 pts) [Secure configuration] SwB(config)# interface gi0/1 SwB(config-if)# switchport mode trunk SwB(config-if)# switchport nonegotiate SwB(config-if)# switchport trunk native vlan 99 SwB(config-if)# switchport trunk allowed vlan 10,20,30,99 why: The trunk carries the three user VLANs tagged to RtrB. The native VLAN carries no hosts, which defeats double-tagging tricks, and it stays in the allowed list, because a trunk drops traffic, spanning tree included, for any VLAN missing from that list (show interfaces trunk then lists 99 among the allowed and forwarding VLANs). 5. SwB unused ports (Fa0/3-24, Gi0/2) parked in VLAN 999 and shut down (4 pts) [Secure configuration] SwB(config)# interface range fa0/3 - 24 , gi0/2 SwB(config-if-range)# switchport mode access SwB(config-if-range)# switchport access vlan 999 SwB(config-if-range)# shutdown why: A shut port stays closed, and if someone enables it by mistake it lands in a dead-end VLAN that is separate from the native VLAN. 6. SwB management: Vlan20 10.2.20.2 up, gateway 10.2.20.1, Vlan1 shut down (4 pts) [Secure configuration] SwB(config)# interface vlan 20 SwB(config-if)# ip address 10.2.20.2 255.255.255.0 SwB(config-if)# no shutdown SwB(config-if)# exit SwB(config)# ip default-gateway 10.2.20.1 SwB(config)# interface vlan 1 SwB(config-if)# shutdown why: The SVI comes up once VLAN 20 exists and has an up port. The default gateway lets the switch answer managers at the other site. 7. SwB SSH: hostname SwB, domain, 2048-bit key, version 2, netadmin, SSH-only VTY 0-15 (5 pts) [Access control] Switch(config)# hostname SwB SwB(config)# ip domain-name school.lan SwB(config)# crypto key generate rsa general-keys modulus 2048 SwB(config)# ip ssh version 2 SwB(config)# username netadmin privilege 15 secret Adm1n-B1 SwB(config)# line vty 0 15 SwB(config-line)# login local SwB(config-line)# transport input ssh why: SSH encrypts the session, and login local ties every login to a named account. 8. SwB VTY ACL 20: Teachers at both sites only (access-class 20 in on vty 0 15) (3 pts) [Access control] SwB(config)# access-list 20 permit 10.1.20.0 0.0.0.255 SwB(config)# access-list 20 permit 10.2.20.0 0.0.0.255 SwB(config)# line vty 0 15 SwB(config-line)# access-class 20 in why: Only Teachers see a login prompt: SSH from a Students PC gets "% Connection refused by remote host" instead. 9. RtrB G0/0 up with subinterfaces .10, .20, and .30 (dot1Q plus gateway addresses) (6 pts) [Secure configuration] RtrB(config)# interface g0/0 RtrB(config-if)# no shutdown RtrB(config-if)# interface g0/0.10 RtrB(config-subif)# encapsulation dot1Q 10 RtrB(config-subif)# ip address 10.2.10.1 255.255.255.0 (repeat for .20 with 10.2.20.1 and .30 with 10.2.30.1) why: Router-on-a-stick: one physical link carries every VLAN, and each subinterface is the gateway for one of them. The tag comes first; IOS refuses an address on a LAN subinterface without one. 10. RtrB G0/0.99: encapsulation dot1Q 99 native, without an IP address (3 pts) [Secure configuration] RtrB(config)# interface g0/0.99 RtrB(config-subif)# encapsulation dot1Q 99 native why: Both ends of the trunk agree that untagged frames belong to VLAN 99, which ends the CDP native VLAN mismatch messages on SwB. The native VLAN carries no hosts, so it needs no address. 11. RtrB G0/2 10.0.0.2/30 and G0/1 198.51.100.2/30 up (4 pts) [Secure configuration] RtrB(config)# interface g0/2 RtrB(config-if)# ip address 10.0.0.2 255.255.255.252 RtrB(config-if)# no shutdown RtrB(config-if)# interface g0/1 RtrB(config-if)# ip address 198.51.100.2 255.255.255.252 RtrB(config-if)# no shutdown why: A /30 holds exactly two hosts, one per end of a point-to-point link. Router ports start shut down on a fresh ISR. 12. RtrB static host route: ip route 8.8.8.8 255.255.255.255 198.51.100.1 (4 pts) [Secure configuration] RtrB(config)# ip route 8.8.8.8 255.255.255.255 198.51.100.1 why: The /32 mask matches the resolver alone, so only that destination uses this uplink path. The route installs while 198.51.100.1 sits on an up, connected subnet. 13. RtrB OSPF neighbour FULL with RtrA (5 pts) [Troubleshooting] RtrB(config)# router ospf 1 RtrB(config-router)# router-id 2.2.2.2 RtrB(config-router)# network 10.0.0.0 0.0.0.3 area 0 RtrB(config-router)# network 10.2.0.0 0.0.255.255 area 0 why: Neighbours form when both ends enable OSPF on the shared subnet in the same area. Each router then learns the other site's VLANs as O routes, so OSPF replaces hand-typed inter-site static routes. 14. RtrB redistributes its static route: redistribute static subnets (3 pts) [Secure configuration] RtrB(config)# router ospf 1 RtrB(config-router)# redistribute static subnets why: Without subnets, classic IOS 15 redistributes classful networks only and drops the /32. With it, RtrB floods a type-5 LSA for 8.8.8.8 (show ip ospf database on RtrA); RtrA installs it as O E2 8.8.8.8 [110/20] only when its own static route leaves the table. 15. RtrB SSH: hostname RtrB, domain, 2048-bit key, version 2, netadmin, SSH-only on every VTY line (3 pts) [Access control] Router(config)# hostname RtrB RtrB(config)# ip domain-name school.lan RtrB(config)# crypto key generate rsa general-keys modulus 2048 RtrB(config)# ip ssh version 2 RtrB(config)# username netadmin privilege 15 secret Adm1n-B2 RtrB(config)# line vty 0 15 RtrB(config-line)# login local RtrB(config-line)# transport input ssh why: show running-config lists every VTY range the router has: line vty 0 4, plus line vty 5 15 once line vty 0 15 creates those lines. One range left open to Telnet leaves the whole router open, so every range counts. 16. RtrB VTY ACL 20: Teachers at both sites only, on every VTY line (3 pts) [Access control] RtrB(config)# access-list 20 permit 10.1.20.0 0.0.0.255 RtrB(config)# access-list 20 permit 10.2.20.0 0.0.0.255 RtrB(config)# line vty 0 15 RtrB(config-line)# access-class 20 in why: access-class filters who may open a session to the router itself, whatever address they aim at. The implicit deny at the end refuses everyone else. 17. RtrB keeps OSPF hellos off G0/0.10, .20, and .30 (passive) while the G0/2 neighbour stays FULL (2 pts) [Secure configuration] RtrB(config)# router ospf 1 RtrB(config-router)# passive-interface g0/0.10 RtrB(config-router)# passive-interface g0/0.20 RtrB(config-router)# passive-interface g0/0.30 why: A passive interface still advertises its subnet, so Site A keeps its O routes to the Site B VLANs. It stops sending hellos into rooms full of PCs, where a rogue device could try to form an adjacency. G0/2 keeps its hellos, so the RtrA neighbour stays FULL. 18. RtrB G0/1 inbound extended ACL ends in deny ip any any log; Student-B still reaches 8.8.8.8 (3 pts) [Access control] RtrB(config)# ip access-list extended EDGE-IN RtrB(config-ext-nacl)# permit tcp any any established RtrB(config-ext-nacl)# permit icmp any any echo-reply RtrB(config-ext-nacl)# permit udp host 8.8.8.8 eq domain any RtrB(config-ext-nacl)# deny ip any any log RtrB(config-ext-nacl)# exit RtrB(config)# interface g0/1 RtrB(config-if)# ip access-group EDGE-IN in why: An interface ACL judges each packet on its own, unlike a stateful firewall. The edge list lets in the replies inside hosts need (established TCP, echo replies, and DNS answers from the resolver) and logs everything else it drops, such as a Telnet attempt from outside. show access-lists counts the matches on each line. 19. RtrB serves DHCP on VLAN 10 (.1-.9 excluded), and Student-B leases its address (3 pts) [Secure configuration] RtrB(config)# ip dhcp excluded-address 10.2.10.1 10.2.10.9 RtrB(config)# ip dhcp pool STUDENTS-B RtrB(dhcp-config)# network 10.2.10.0 255.255.255.0 RtrB(dhcp-config)# default-router 10.2.10.1 RtrB(dhcp-config)# dns-server 8.8.8.8 RtrB(dhcp-config)# exit Student-B> ipconfig /renew why: Student PCs move between rooms, so the router hands out their addresses. The exclusion keeps .1 to .9 for the gateway and other fixed devices, so the first lease is 10.2.10.10, the address in the addressing table, and the pings from Student-B keep working. Without an answer, a DHCP client falls back to a 169.254.x.x (APIPA) address that reaches only its own link. show ip dhcp binding on RtrB lists the lease. 20. Enable secret on SwB and RtrB (in place of an enable password) (3 pts) [Account management] SwB(config)# enable secret En@ble-B1 RtrB(config)# enable secret En@ble-B2 why: The secret is stored hashed and guards privileged mode. 21. Console password with login on SwB and RtrB (2 pts) [Access control] SwB(config)# line console 0 SwB(config-line)# password C0nsole-B1 SwB(config-line)# login RtrB(config)# line console 0 RtrB(config-line)# password C0nsole-B2 RtrB(config-line)# login why: Without it, anyone with a console cable reaches the command line password-free. 22. MOTD and login banners on SwB and RtrB (3 pts) [Secure configuration] (config)# banner motd #Authorized school staff only. Activity is monitored.# (config)# banner login #Site B network equipment. Sign in with your own account.# why: The console shows the MOTD and then the login banner before the password prompt; SSH shows the login banner before authentication. 23. Configurations saved on SwB and RtrB (2 pts) [Secure configuration] # copy running-config startup-config why: A reload otherwise boots both devices back to factory defaults (the VLANs alone survive, in vlan.dat). 24. Student-B reaches Teacher-B (inter-VLAN routing) (3 pts) [Troubleshooting] Student-B> ping 10.2.20.10 why: Proves the access ports, the trunk, and the router-on-a-stick subinterfaces work together. 25. Teacher-B reaches Teacher-A across the inter-site link (4 pts) [Troubleshooting] Teacher-B> ping 10.1.20.10 why: Each router reaches the other site only through the O routes OSPF installs. 26. Student-B reaches the resolver at 8.8.8.8 (3 pts) [Troubleshooting] Student-B> ping 8.8.8.8 why: Proves the host route and the ISP path. To see the backup path, shut RtrB G0/1: the ping still works over Site A through the O E2 route. Then run no shutdown to bring the uplink back. 27. Investigation 1 answered (2 pts) [Investigation] Answer: S why: S marks a static route; the local static wins over OSPF because its administrative distance is lower. 28. Investigation 2 answered (2 pts) [Investigation] Answer: O why: O marks an intra-area OSPF route: RtrA learned Site B's VLANs from RtrB. 29. Investigation 3 answered (2 pts) [Investigation] Answer: 1 why: Static routes default to distance 1 and OSPF uses 110, so the router prefers the static route while it is installed. 30. Investigation 4 answered (2 pts) [Investigation] Answer: subnets why: Classic IOS 15 redistributes only classful networks into OSPF unless you add subnets. IOS XE adds subnets for you and shows it in the running configuration. Availability checks (pass while the required items keep working): - Fails if: Site A device (SwA or RtrA) or the ISP router changed (-10 pts) why: Site A belongs to the Site A team and the ISP router to the provider. Read their configurations freely and leave them exactly as delivered. - Fails if: Site A Teachers locked out of SSH to SwB or RtrB (-8 pts) why: Teachers at either site manage both sites. An ACL that permits 10.2.20.0/24 alone lets Teacher-A reach the device and then refuses the session. 4. IOS QUICK REFERENCE (what the lab accepts) --------------------------------------------- Moving around enable / disable / exit / end / Ctrl+Z / logout configure terminal | conf t do (from any config mode) show running-config | include X (also exclude, begin, section) show startup-config show ip interface brief show interfaces [X] show interfaces status/trunk show interfaces X switchport|trunk show vlan brief show ip route [static|connected|ospf|A.B.C.D] show ip protocols show ip ospf [neighbor|database|interface brief] show ip ssh / show ssh / show users / show line / show version show clock / show history / show logging / show login show port-security [interface X] / show port-security address show mac address-table / show cdp neighbors / show access-lists show spanning-tree [summary] / show crypto key mypubkey rsa show ip dhcp snooping / show flash: / dir / show arp show access-lists [N|NAME] / clear access-list counters [N|NAME] show cdp / show cdp neighbors detail / show lldp [neighbors [detail]] show ip interface X / show ip dhcp binding / show vtp status show snmp [user|group] / show monitor [session N] show ip arp inspection [vlan LIST] show spanning-tree vlan N | inconsistentports / show interfaces status err-disabled / show mac address-table interface X clear ip ospf process (also applies a pending router-id) clear port-security all|configured|sticky [interface X] copy running-config flash:NAME (then dir flash:) ping A.B.C.D / traceroute A.B.C.D / ssh -l user A.B.C.D / telnet A.B.C.D copy running-config startup-config / write [memory] / reload clear line vty N / clock set hh:mm:ss day month year / terminal length 0 Global configuration hostname NAME enable secret SECRET no enable password service password-encryption service timestamps log datetime msec security passwords min-length N service timestamps log|debug datetime [msec] [localtime] [show-timezone] [year] no ip routing / ip routing (routers: routing off and back on) login block-for S attempts N within S username U privilege 15 secret P no username U banner motd|login #text# (any delimiter) ip domain-name NAME crypto key generate rsa [general-keys modulus 2048] crypto key zeroize rsa ip ssh version 2 ip ssh time-out 60 ip ssh authentication-retries 2 no ip http server no ip http secure-server no ip domain-lookup no cdp run logging host A.B.C.D logging buffered 16384 ntp server A.B.C.D clock timezone UTC 0 ip default-gateway A.B.C.D ip route P M NEXTHOP [DISTANCE] ip route 0.0.0.0 0.0.0.0 NEXTHOP access-list N permit host A | A W | any ip access-list standard NAME|N (then permit/deny/remark, no SEQ) no access-list N (any "no access-list N ..." deletes the whole list) access-list N ... log (a standard entry that logs its matches) access-list 100-199 permit|deny ip|tcp|udp|icmp|ospf SRC [eq P] DST [eq P] [established | echo-reply] [log] (SRC/DST: any | host A | A W) ip access-list extended NAME (then permit/deny/remark, no SEQ) vlan N / name NAME / no vlan N ip dhcp snooping [vlan LIST] ip dhcp excluded-address A [B] ip dhcp pool NAME (network A M, default-router A, dns-server A, domain-name D; routers) aaa new-model aaa authentication login default|NAME local [enable|line|none] snmp-server community S RO|RW [ACL] snmp-server group G v3 auth|priv snmp-server user U G v3 auth sha|md5 P [priv aes 128|des P] lldp run vtp domain D vtp mode server|client|transparent|off spanning-tree mode pvst|rapid-pvst spanning-tree vlan LIST root primary|secondary | priority P (4096 steps) monitor session N source interface X [rx|tx|both] | source vlan V monitor session N destination interface X ip arp inspection vlan LIST no service pad ip http port P ip http secure-port P ip http authentication local|enable|aaa config-register 0xHHHH secure boot-image secure boot-config archive / log config / logging enable / hidekeys / notify syslog spanning-tree portfast default spanning-tree portfast bpduguard default interface X | interface range fa0/3 - 24 , gi0/2 router ospf N (routers; enters (config-router)#) Interface ip address A M / no ip address shutdown / no shutdown description T encapsulation dot1Q N [native] (router subinterfaces) switchport mode access|trunk|dynamic auto|dynamic desirable switchport access vlan N switchport trunk native vlan N switchport trunk allowed vlan 10,20 | add | remove | all | none | except switchport nonegotiate switchport port-security switchport port-security maximum N / violation shutdown|restrict|protect switchport port-security mac-address sticky [H.H.H] | H.H.H spanning-tree portfast [trunk] spanning-tree bpduguard enable|disable ip dhcp snooping trust ip dhcp snooping limit rate N no cdp enable duplex / speed ip access-group N|NAME in|out ip helper-address A (routers) no ip redirects | unreachables | proxy-arp ip directed-broadcast switchport voice vlan N spanning-tree guard root|loop|none storm-control broadcast level N storm-control action shutdown|trap ip arp inspection trust [no] lldp transmit | lldp receive Router OSPF (router ospf N) network A W area N redistribute static [subnets] passive-interface X router-id A.B.C.D passive-interface default (then no passive-interface X for exceptions) default-information originate [always] no exit / end Line (line console 0 | line vty 0 4 | line vty 0 15 | line aux 0) password P / no password login / login local / no login exec-timeout M [S] logging synchronous transport input ssh|telnet|all|none access-class N in transport output ssh|telnet|all|none no exec login authentication NAME|default (after aaa new-model) PC command prompt ipconfig [/all | /renew | /release] ping [-n N] A ping -t A (then Ctrl+C stops it and prints the statistics) tracert [-d] [-h N] A arp -a | -d ssh -l USER A telnet A [PORT] help / ? cls exit IP Configuration button: static address, mask, gateway, DNS, or DHCP, which leases from a router pool for the PC's VLAN (directly or through an ip helper-address relay) and falls back to an APIPA address when the request goes unanswered. 5. THE REAL DEVICE DIFFERS HERE ------------------------------- - Real IOS pauses long output with --More-- (Space continues, q quits) unless you set terminal length 0. The lab never pauses. - Generating a 2048-bit key takes several seconds on real hardware; reload takes minutes, not two seconds. - Real routers answer an unknown first word in EXEC mode with Translating "word"...domain server (255.255.255.255) and hang for a while unless you configured no ip domain-lookup. The lab shows the ^ marker instead. - Packet Tracer and real switches learn sticky MAC addresses only when the PC actually sends traffic; the lab learns them as soon as sticky is enabled on a port whose PC is connected (and on any ping through it). - Real syslog and NTP servers answer; here 192.168.99.50 is only a name in the Scenario Brief. show ntp status will always say unsynchronized. - On a real device Telnet/SSH from a PC needs the PC to resolve ARP and the first ping often loses one packet (the lab mimics that first loss). - Real IOS versions differ in wording (ip domain name vs ip domain-name, secret 5 vs secret 9). The lab follows Packet Tracer / IOS 15.1. - login block-for quiet mode, ACL access-class and port security are real here, but a mis-typed ACL on a real device can lock you out of your own SSH session; always keep a console connection open while testing. - The lab resets a device's log and clock on reload like a router with no battery-backed clock (Mar 1 1993); real switches keep their log in RAM only as well, so save and export logs before a reload in real life. - Browser notes: Ctrl+W/Ctrl+T belong to the browser; use Ctrl+U to clear a line. On phones, type ? at the end of the line to get help. - OSPF timing: neighbours reach FULL at once here. A real router takes a few seconds (hello 10 s, dead 40 s) and passes through INIT, 2WAY, EXSTART, EXCHANGE, and LOADING first. - OSPF DR election: Ethernet links elect a DR and a BDR, so show ip ospf neighbor reads FULL/DR or FULL/BDR; point-to-point links read FULL/ -. DR election is non-preemptive: the first router up on the segment stays DR. The higher router ID wins only when both start together. A real router waits 40 seconds before it elects; the lab elects at once. - OSPF reload: a reload drops the router's links, so the BDR takes over as DR and keeps the role when the router returns. The lab logs the neighbours' link and ADJCHG messages at the moment of the reload, while a real network spreads them over the boot. - OSPF router ID: router-id takes effect at once while the router has no neighbours. With neighbours up, the lab keeps the old ID until clear ip ospf process or a reload, as IOS does; a real router also keeps an automatically chosen ID when interface addresses change later. - OSPF redistribution: classic IOS 15 (this lab and Packet Tracer) needs redistribute static subnets to carry a /32; without subnets it warns "% Only classful networks will be redistributed". IOS XE redistributes subnets by default and shows the subnets keyword for you. - Static routes: the lab installs a static route while its next hop sits on an up, connected subnet. Real IOS also resolves a next hop recursively through other routes. - Router models: the Level 4 routers are 2911s with ports g0/0-g0/2. A factory ISR G2 has VTY lines 0-4 only; line vty 0 15 creates lines 5-15, and show running-config then lists line vty 0 4 and line vty 5 15 (the lab's 2911 does the same, and a 2960 lists its 16 lines the same way). ISR 4000 routers running IOS XE name their ports g0/0/0 instead. - Trunks: the 2960 trunks with 802.1Q only, so it rejects switchport trunk encapsulation dot1q; a multilayer switch such as the 3560 needs that command before switchport mode trunk. - IP routing: the 2960 runs its default Layer 2 template, which lacks ip routing, so the line answers % Invalid input, and a [Range] tip follows: a Layer 3 switch routes between its VLAN interfaces once ip routing is on (some 2960 models gain static routing after sdm prefer lanbase-routing and a reload). The routers route from the start, so ip routing changes nothing there until no ip routing turns routing off. A router with no ip routing works as an IP host: it answers for its own addresses, forwards nothing between its interfaces, drops traceroute probes silently (a timeout at its hop), reaches other subnets through ip default-gateway alone, and lists the host table under show ip route, starting at its default gateway. Like a 2960, it reports Internet Protocol routing is disabled under show protocols. Its router ospf answers % IP routing not enabled, and the OSPF process stays idle. The lab keeps the router ospf section in the configuration for when ip routing returns; on a real router, check show running-config | section router after turning routing back on. - PC ping -t sends one echo a second until Ctrl+C, then prints the statistics, Control-C, and ^C, as Windows does; the console sets typed lines aside while it runs, and the Ctrl+C button above the console stops it on a touch keyboard. telnet A PORT opens a plain TCP connection: port 22 prints the SSH server's version line (SSH-2.0-Cisco-1.25 after ip ssh version 2) when the device has RSA keys and a VTY line takes SSH, port 80 or 443 opens when the web server is on, and another port answers % Connection refused by remote host. The lab closes the connection after the next line you type; a real server may answer that line first (a web server sends an error page). - Secret types: IOS 15.1(4)M4 and 15.0(2)SE4 list 0 and 5 after enable secret and username U secret, so a typed 9 starts a cleartext secret: the lab stores the whole text, 9 included, as a type 5 hash and prints a [Range] note. IOS 15.3(3)M introduced the newer secret hashes (types 8 and 9). - service timestamps: the lab takes datetime [msec] [localtime] [show-timezone] [year] in the order the command reference lists them. Stamps read UTC unless localtime is set, the year keyword adds the year after the date, and the show-timezone keyword adds the zone name. The bare service timestamps means service timestamps debug uptime, and a type alone (service timestamps log) means uptime. - CDP repeats a native VLAN mismatch message every minute on a real switch; the lab prints it when the mismatch appears. - VLANs: in VTP server mode (the default) VLANs live in vlan.dat only; in VTP transparent mode IOS also writes them into the running configuration. - The Level 4 ISP router routes the school's private 10.x ranges back to each site. A real provider does that only after NAT on the school's routers, which sits outside this lab. - Interface ACLs: the lab counts the pings and sessions you send. A real router also counts routing and management packets and traceroute probes, sums log matches in 5-minute messages, and rate-limits ICMP unreachables (hence U.U.U, and the middle * in !A * !A). - Spanning tree: the lab elects a root and a root port per VLAN. A real switch also blocks redundant links (Altn BLK); the lab topologies keep a single link between switches. - DHCP, LLDP, and CDP answer at once here. A real PC takes a few seconds to lease, LLDP advertises every 30 seconds, and CDP every 60. - secure boot-image and secure boot-config print their %IOS_RESILIENCE messages; show secure bootset sits outside the lab. - Numbered ACLs: on a real device "no access-list 10 permit host X" deletes all of access list 10, and a VTY access-class that points at a missing list no longer filters anything. Edit single entries through "ip access-list standard 10" and sequence numbers instead (the lab behaves the same way). 6. SOURCES (open documentation the checks follow) ------------------------------------------------- - Cisco Guide to Harden Cisco IOS Devices (enable secret, type 7 is obfuscation only, SSH version 2 and RSA modulus, transport input ssh, exec-timeout, no ip http server, CDP on untrusted ports, banners, logging and NTP): https://www.cisco.com/c/en/us/support/docs/ip/access-lists/13608-21.html - Configuring IP Access Lists (numbered ACL deletion, named and sequence-numbered editing): https://www.cisco.com/c/en/us/support/docs/security/ios-firewall/23602-confaccesslists.html - CIS Critical Security Controls v8 (the hardening areas): https://www.cisecurity.org/controls/v8