lefekarli.local

Captured 14 Sep 2026

lefekarli.local

Six Cisco devices. R1 connects the lab to the school network and serves SW1. R2 and R3 share one set of gateway addresses for the switches below them, so either router can fail without the PCs noticing.

Topology of lefekarli.localSix Cisco devices. R1 connects the lab to the school network and serves SW1. R2 and R3 share one set of gateway addresses for the switches below them, so either router can fail without the PCs noticing.R1 Gi0/1 to the school networkR1 Gi0/0 to SW1 Gi1/0/1, trunk for VLANs 110, 120, 130 and 199R1 Fa0/1/3 in VLAN 12 to R2 Gi0/1, 172.16.12.0/30R1 Fa0/1/0 in VLAN 13 to R3 Gi0/1, 172.16.13.0/30R2 Gi0/0 to SW2 Gi1/0/5, trunk for VLANs 10, 20, 30 and 99R3 Gi0/0 to SW3 Gi1/0/5, trunk for VLANs 10, 20, 30 and 99Po1 between SW2 and SW3: four cables, Gi1/0/1 to Gi1/0/4, bundled with PAgPSchool network10.233.192.0/24, gateway 10.233.192.1R1Cisco 1941.110172.16.110.1.120172.16.120.1.130172.16.130.1.199172.16.199.1SW12960-X, 172.16.199.11SW1 Gi1/0/13, VLAN 110, nothing connectedSW1 Gi1/0/14, VLAN 110, nothing connectedSW1 Gi1/0/15, VLAN 110, nothing connectedSW1 Gi1/0/16, VLAN 110, nothing connectedSW1 Gi1/0/17, VLAN 120, nothing connectedSW1 Gi1/0/18, VLAN 120, nothing connectedSW1 Gi1/0/19, VLAN 120, nothing connectedSW1 Gi1/0/20, VLAN 120, nothing connectedSW1 Gi1/0/21, VLAN 130, nothing connectedSW1 Gi1/0/22, VLAN 130, nothing connectedSW1 Gi1/0/23, VLAN 130, nothing connectedSW1 Gi1/0/24, VLAN 130, nothing connectedNothing connectedR2Cisco 1941HSRP active.10172.16.10.2.20172.16.20.2.30172.16.30.2.99172.16.99.2R3Cisco 1941HSRP standby.10172.16.10.3.20172.16.20.3.30172.16.30.3.99172.16.99.3SW22960-X, 172.16.99.22SW2 Gi1/0/13, VLAN 10, connected13SW2 Gi1/0/15, VLAN 20, nothing connected15SW2 Gi1/0/17, VLAN 30, nothing connected17SW2 Gi1/0/24, VLAN 99, nothing connected24Port 13: 172.16.10.56SW32960-X, 172.16.99.33SW3 Gi1/0/13, VLAN 10, nothing connected13SW3 Gi1/0/15, VLAN 20, nothing connected15SW3 Gi1/0/17, VLAN 30, connected17SW3 Gi1/0/24, VLAN 99, nothing connected24Port 17: 172.16.30.51Shared gateway172.16.10.1172.16.20.1172.16.30.1172.16.99.1activestandby

Behind R2 and R3

Behind R1

Pick a VLAN to trace it. Bright lines are up, dim ones have nothing connected, pale lines are routed links.

What needs attention

Fixed since the first capture on 14 September

R1

Edge router. Connects the lab to the school network, lets every user VLAN share one outside address, hands out DHCP leases and routes the VLANs on SW1.

Cisco 1941/K9 with HWIC-2T serial card and HWIC-4ESW switch card
IOS 15.2(4)M3, up 4 days, 10 hours
Serial number FCZ1928919A

OnboardGi0/0, upGi0/0Gi0/1, upGi0/1HWIC-2TSe0/0/0, shut downSe0/0/0Se0/0/1, shut downSe0/0/1HWIC-4ESWFa0/1/0, upFa0/1/0Fa0/1/1, downFa0/1/1Fa0/1/2, downFa0/1/2Fa0/1/3, upFa0/1/3
Bright ports are up, dim ports have no link, dashed ports are shut down.
Outside
Gi0/1 10.233.192.79/24 on the school network, NAT outside
Default route
Via 10.233.192.1
SW1 trunk
Gi0/0 to SW1 Gi1/0/1, VLANs 110, 120, 130 and 199
Link to R2
Fa0/1/3 in VLAN 12, address 172.16.12.1/30
Link to R3
Fa0/1/0 in VLAN 13, address 172.16.13.1/30
DHCP
Pools for VLANs 10, 20, 30, 110, 120 and 130, 1 lease in use
NAT
Overload on Gi0/1 for the same six VLANs, 58 translations at capture
Routing
Static default route and RIPv2, 4 routes learned
Remote access
SSH with a local user

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi0/110.233.192.79/24Routed, NAT outsideSchool network switch, port Gi0/13up
Gi0/0Trunk with subinterfacesSW1 Gi1/0/1up
Gi0/0.110172.16.110.1/24VLAN 110Gateway for VLAN 110up
Gi0/0.120172.16.120.1/24VLAN 120Gateway for VLAN 120up
Gi0/0.130172.16.130.1/24VLAN 130Gateway for VLAN 130up
Gi0/0.199172.16.199.1/24VLAN 199Gateway for SW1 managementup
Fa0/1/3Switch port, VLAN 12R2 Gi0/1up
Fa0/1/0Switch port, VLAN 13R3 Gi0/1up
Fa0/1/1Switch port, VLAN 1Nothing connecteddown
Fa0/1/2Switch port, VLAN 1Nothing connecteddown
Vlan12172.16.12.1/30VLAN interfaceR2, through Fa0/1/3up
Vlan13172.16.13.1/30VLAN interfaceR3, through Fa0/1/0up
Se0/0/0SerialNot in useshut down
Se0/0/1SerialNot in useshut down

How it works

NAT overload. Every PC behind R1 reaches the internet from one address, 10.233.192.79. R1 remembers which inside address and port each conversation came from, so replies find their way back. The access list called NAT decides which networks may use it.

DHCP and relay. R1 hands out addresses from .51 upward; .1 to .50 stay free for gateways and switches. PCs behind R2 and R3 can't reach R1 directly, so their router forwards the request (ip helper-address) and R1 answers that router.

Sharing the default route. R1 announces its default route in RIP (default-information originate), so R2 and R3 learn to send internet traffic to R1. RIP only sends updates on interfaces that aren't passive.

A switch card in a router. Fa0/1/0 to Fa0/1/3 are switch ports, not router ports. Each link to R2 and R3 therefore gets its own VLAN, 12 and 13, and R1's address sits on the VLAN interface.

Config

interface GigabitEthernet0/0.110
 encapsulation dot1Q 110
 ip address 172.16.110.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface Vlan12
 ip address 172.16.12.1 255.255.255.252
 ip nat inside
 ip virtual-reassembly in
!
router rip
 version 2
 passive-interface default
 no passive-interface Serial0/0/0
 no passive-interface Serial0/0/1
 no passive-interface Vlan12
 no passive-interface Vlan13
 network 172.16.0.0
 default-information originate
 no auto-summary
!
ip nat inside source list NAT interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 10.233.192.1
Show full running config
!
! Last configuration change at 11:26:31 UTC Sat Aug 15 2026
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
ip cef
!
!
!
!


!
ip dhcp excluded-address 172.16.10.1 172.16.10.50
ip dhcp excluded-address 172.16.20.1 172.16.20.50
ip dhcp excluded-address 172.16.30.1 172.16.30.50
ip dhcp excluded-address 172.16.110.1 172.16.110.50
ip dhcp excluded-address 172.16.120.1 172.16.120.50
ip dhcp excluded-address 172.16.130.1 172.16.130.50
!
ip dhcp pool 110gandalf
 network 172.16.110.0 255.255.255.0
 default-router 172.16.110.1 
 dns-server 1.1.1.1 8.8.8.8 
!
ip dhcp pool 120frodo
 network 172.16.120.0 255.255.255.0
 default-router 172.16.120.1 
 dns-server 1.1.1.1 8.8.8.8 
!
ip dhcp pool 130sam
 network 172.16.130.0 255.255.255.0
 default-router 172.16.130.1 
 dns-server 1.1.1.1 8.8.8.8 
!
ip dhcp pool 10salg
 network 172.16.10.0 255.255.255.0
 default-router 172.16.10.1 
 dns-server 1.1.1.1 8.8.8.8 
!
ip dhcp pool 20indkob
 network 172.16.20.0 255.255.255.0
 default-router 172.16.20.1 
 dns-server 1.1.1.1 8.8.8.8 
!
ip dhcp pool 30hr
 network 172.16.30.0 255.255.255.0
 default-router 172.16.30.1 
 dns-server 1.1.1.1 8.8.8.8 
!
!
!
no ip domain lookup
ip domain name lefekarli.local
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1941/K9 sn FCZ1928919A
license accept end user agreement
license boot module c1900 technology-package securityk9
license boot module c1900 technology-package datak9
!
!
username admin privilege 15 secret 4 <removed>
!
redundancy
!
!
!
!
!
ip ssh version 2
! 
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.110
 encapsulation dot1Q 110
 ip address 172.16.110.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface GigabitEthernet0/0.120
 encapsulation dot1Q 120
 ip address 172.16.120.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface GigabitEthernet0/0.130
 encapsulation dot1Q 130
 ip address 172.16.130.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
!
interface GigabitEthernet0/0.199
 encapsulation dot1Q 199
 ip address 172.16.199.1 255.255.255.0
!
interface GigabitEthernet0/1
 ip address 10.233.192.79 255.255.255.0
 ip nat outside
 ip virtual-reassembly in
 duplex auto
 speed auto
!
interface Serial0/0/0
 no ip address
 ip nat inside
 ip virtual-reassembly in
 shutdown
!
interface Serial0/0/1
 no ip address
 ip nat inside
 ip virtual-reassembly in
 shutdown
 clock rate 2000000
!
interface FastEthernet0/1/0
 switchport access vlan 13
 no ip address
!
interface FastEthernet0/1/1
 no ip address
!
interface FastEthernet0/1/2
 no ip address
!
interface FastEthernet0/1/3
 switchport access vlan 12
 no ip address
!
interface Vlan1
 no ip address
!
interface Vlan12
 ip address 172.16.12.1 255.255.255.252
 ip nat inside
 ip virtual-reassembly in
!
interface Vlan13
 ip address 172.16.13.1 255.255.255.252
 ip nat inside
 ip virtual-reassembly in
!
router rip
 version 2
 passive-interface default
 no passive-interface Serial0/0/0
 no passive-interface Serial0/0/1
 no passive-interface Vlan12
 no passive-interface Vlan13
 network 172.16.0.0
 default-information originate
 no auto-summary
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list NAT interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 10.233.192.1
!
ip access-list standard NAT
 remark permit Local LAN to use NAT
 permit 172.16.10.0 0.0.0.255
 permit 172.16.20.0 0.0.0.255
 permit 172.16.30.0 0.0.0.255
 permit 172.16.110.0 0.0.0.255
 permit 172.16.120.0 0.0.0.255
 permit 172.16.130.0 0.0.0.255
!
!
!
!
control-plane
!
!
!
line con 0
 logging synchronous
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport input all
 transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
scheduler allocate 20000 1000
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

SW1

Access switch for the three user VLANs behind R1.

Cisco Catalyst 2960-X, WS-C2960X-24TS-L
IOS 15.2(7)E14, up 4 days, 10 hours
Serial number FOC1751S4H6

Gi1/0/1, trunk, connected1Gi1/0/2, parked in blackhole VLAN 666, nothing connected2Gi1/0/3, parked in blackhole VLAN 666, nothing connected3Gi1/0/4, parked in blackhole VLAN 666, nothing connected4Gi1/0/5, parked in blackhole VLAN 666, nothing connected5Gi1/0/6, parked in blackhole VLAN 666, nothing connected6Gi1/0/7, parked in blackhole VLAN 666, nothing connected7Gi1/0/8, parked in blackhole VLAN 666, nothing connected8Gi1/0/9, parked in blackhole VLAN 666, nothing connected9Gi1/0/10, parked in blackhole VLAN 666, nothing connected10Gi1/0/11, parked in blackhole VLAN 666, nothing connected11Gi1/0/12, parked in blackhole VLAN 666, nothing connected12Gi1/0/13, access VLAN 110, nothing connected13Gi1/0/14, access VLAN 110, nothing connected14Gi1/0/15, access VLAN 110, nothing connected15Gi1/0/16, access VLAN 110, nothing connected16Gi1/0/17, access VLAN 120, nothing connected17Gi1/0/18, access VLAN 120, nothing connected18Gi1/0/19, access VLAN 120, nothing connected19Gi1/0/20, access VLAN 120, nothing connected20Gi1/0/21, access VLAN 130, nothing connected21Gi1/0/22, access VLAN 130, nothing connected22Gi1/0/23, access VLAN 130, nothing connected23Gi1/0/24, access VLAN 130, nothing connected24Gi1/0/25, empty SFP slot, nothing connected25Gi1/0/26, empty SFP slot, nothing connected26Gi1/0/27, empty SFP slot, nothing connected27Gi1/0/28, empty SFP slot, nothing connected28
Filled ports are access ports in their VLAN colour, outlined ports are trunks, and bright ports have something plugged in. Crossed-out ports are parked in blackhole VLAN 666.
Management
172.16.199.11 in VLAN 199, gateway 172.16.199.1
Uplink
Gi1/0/1 trunk to R1 Gi0/0, VLANs 110, 120, 130 and 199
Access ports
Gi1/0/13–16 VLAN 110, 17–20 VLAN 120, 21–24 VLAN 130
Connected now
Nothing on the access ports
Spanning tree
Rapid PVST+, root bridge for VLANs 110, 120, 130 and 199

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi1/0/1Trunk: 110, 120, 130, 199R1 Gi0/0up
Gi1/0/13Access VLAN 110Nothing connecteddown
Gi1/0/15Access VLAN 110Nothing connecteddown
Vlan199172.16.199.11/24VLAN interfaceSwitch managementup

How it works

Access ports and the trunk. An access port belongs to one VLAN, and the PC on it never sees a VLAN tag. Port 1 is a trunk: it carries all four VLANs to R1 and marks every frame with an 802.1Q tag, so R1 knows which VLAN the frame belongs to.

Managing the switch. A switch needs an address of its own to be managed over the network. SW1 has one on its VLAN 199 interface and sends everything for other networks to R1.

Config

interface GigabitEthernet1/0/1
 switchport trunk allowed vlan 110,120,130,199
 switchport mode trunk
!
interface GigabitEthernet1/0/13
 switchport access vlan 110
 switchport mode access
!
interface Vlan199
 ip address 172.16.199.11 255.255.255.0
!
ip default-gateway 172.16.199.1
Show full running config
!
! Last configuration change at 10:09:13 UTC Mon Sep 14 2026
! NVRAM config last updated at 09:00:06 UTC Mon Dec 14 1931
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
username admin privilege 15 secret 9 <removed>
no aaa new-model
switch 1 provision ws-c2960x-24ts-l
!
!
!
!
!
!
no ip domain-lookup
ip domain-name lefekarli.local
!
!
!
!
!
!
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
! 
!
!
!
!
!
!
!
!
interface FastEthernet0
 no ip address
 shutdown
!
interface GigabitEthernet1/0/1
 switchport trunk allowed vlan 110,120,130,199
 switchport mode trunk
!
interface GigabitEthernet1/0/2
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/3
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/4
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/5
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/6
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/7
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/8
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/9
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/10
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/11
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/12
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/13
 switchport access vlan 110
 switchport mode access
!
interface GigabitEthernet1/0/14
 switchport access vlan 110
 switchport mode access
!
interface GigabitEthernet1/0/15
 switchport access vlan 110
 switchport mode access
!
interface GigabitEthernet1/0/16
 switchport access vlan 110
 switchport mode access
!
interface GigabitEthernet1/0/17
 switchport access vlan 120
 switchport mode access
!
interface GigabitEthernet1/0/18
 switchport access vlan 120
 switchport mode access
!
interface GigabitEthernet1/0/19
 switchport access vlan 120
 switchport mode access
!
interface GigabitEthernet1/0/20
 switchport access vlan 120
 switchport mode access
!
interface GigabitEthernet1/0/21
 switchport access vlan 130
 switchport mode access
!
interface GigabitEthernet1/0/22
 switchport access vlan 130
 switchport mode access
!
interface GigabitEthernet1/0/23
 switchport access vlan 130
 switchport mode access
!
interface GigabitEthernet1/0/24
 switchport access vlan 130
 switchport mode access
!
interface GigabitEthernet1/0/25
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/26
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/27
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface GigabitEthernet1/0/28
 switchport access vlan 666
 switchport mode access
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan199
 ip address 172.16.199.11 255.255.255.0
!
ip default-gateway 172.16.199.1
!
ip http server
ip http secure-server
ip ssh version 2
!
!
!
!
line con 0
 logging synchronous
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

Web servers still running on the switches

no ip http server
no ip http secure-server

R2

Gateway router for VLANs 10, 20, 30 and 99, and the active HSRP router.

Cisco 1941/K9 with HWIC-2T serial card
IOS 15.4(3)M3, up 4 days, 1 hour
Serial number FCZ2041B0PQ

OnboardGi0/0, upGi0/0Gi0/1, upGi0/1HWIC-2TSe0/0/0, shut downSe0/0/0Se0/0/1, shut downSe0/0/1
Bright ports are up, dim ports have no link, dashed ports are shut down.
Management
172.16.99.2 in VLAN 99
Uplink
Gi0/1 172.16.12.2/30 to R1 Fa0/1/3
VLAN trunk
Gi0/0 to SW2 Gi1/0/5
Shared gateways
Active for 172.16.10.1, 172.16.20.1, 172.16.30.1 and 172.16.99.1, priority 110 with preempt
DHCP relay
Forwards requests to R1 at 172.16.12.1
Routing
RIPv2, 6 routes learned, including the default route

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi0/1172.16.12.2/30RoutedR1 Fa0/1/3up
Gi0/0Trunk with subinterfacesSW2 Gi1/0/5up
Gi0/0.10172.16.10.2/24VLAN 10Shares gateway 172.16.10.1up
Gi0/0.20172.16.20.2/24VLAN 20Shares gateway 172.16.20.1up
Gi0/0.30172.16.30.2/24VLAN 30Shares gateway 172.16.30.1up
Gi0/0.99172.16.99.2/24VLAN 99Shares gateway 172.16.99.1up
Se0/0/0SerialNot in useshut down
Se0/0/1SerialNot in useshut down

How it works

Router-on-a-stick. SW2 sends every VLAN to R2 over one cable, and each frame carries a tag with its VLAN number. R2 splits that cable into subinterfaces, one per VLAN, and each subinterface is the router for its VLAN.

HSRP. R2 and R3 both answer for the .1 address in each VLAN. R2 has the higher priority, 110 against 90, so it forwards the traffic. If R2 stops, R3 takes over the same address within seconds and the PCs never notice.

Config

interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 172.16.10.2 255.255.255.0
 ip helper-address 172.16.12.1
 standby 10 ip 172.16.10.1
 standby 10 priority 110
 standby 10 preempt
!
interface GigabitEthernet0/1
 ip address 172.16.12.2 255.255.255.252
 duplex auto
 speed auto
!
router rip
 version 2
 passive-interface default
 no passive-interface GigabitEthernet0/1
 no passive-interface Serial0/0/0
 network 172.16.0.0
 no auto-summary
Show full running config
!
! Last configuration change at 09:02:50 UTC Mon Sep 14 2026
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip domain name lefekarli.local
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
cts logging verbose
!
!
license udi pid CISCO1941/K9 sn FCZ2041B0PQ
!
!
username admin privilege 15 secret 5 <removed>
!
redundancy
!
!
ip ssh version 2
!
!
!
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 172.16.10.2 255.255.255.0
 ip helper-address 172.16.12.1
 standby 10 ip 172.16.10.1
 standby 10 priority 110
 standby 10 preempt
!
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 172.16.20.2 255.255.255.0
 ip helper-address 172.16.12.1
 standby 20 ip 172.16.20.1
 standby 20 priority 110
 standby 20 preempt
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 172.16.30.2 255.255.255.0
 ip helper-address 172.16.12.1
 standby 30 ip 172.16.30.1
 standby 30 priority 110
 standby 30 preempt
!
interface GigabitEthernet0/0.99
 encapsulation dot1Q 99
 ip address 172.16.99.2 255.255.255.0
 standby 99 ip 172.16.99.1
 standby 99 priority 110
 standby 99 preempt
!
interface GigabitEthernet0/1
 ip address 172.16.12.2 255.255.255.252
 duplex auto
 speed auto
!
interface Serial0/0/0
 no ip address
 shutdown
 clock rate 2000000
!
interface Serial0/0/1
 no ip address
 shutdown
 clock rate 2000000
!
router rip
 version 2
 passive-interface default
 no passive-interface GigabitEthernet0/1
 no passive-interface Serial0/0/0
 network 172.16.0.0
 no auto-summary
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
line con 0
 logging synchronous
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
scheduler allocate 20000 1000
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

R3

Backup gateway router for VLANs 10, 20, 30 and 99. Takes over the shared addresses if R2 stops.

Cisco 1941/K9 with HWIC-2T serial card
IOS 15.4(3)M4, up 4 days, 10 hours
Serial number FCZ2028B0AY

OnboardGi0/0, upGi0/0Gi0/1, upGi0/1HWIC-2TSe0/0/0, shut downSe0/0/0Se0/0/1, shut downSe0/0/1
Bright ports are up, dim ports have no link, dashed ports are shut down.
Management
172.16.99.3 in VLAN 99
Uplink
Gi0/1 172.16.13.2/30 to R1 Fa0/1/0
VLAN trunk
Gi0/0 to SW3 Gi1/0/5
Shared gateways
Standby for 172.16.10.1, 172.16.20.1, 172.16.30.1 and 172.16.99.1, priority 90 with preempt
DHCP relay
Forwards requests to R1 at 172.16.13.1
Routing
RIPv2, 6 routes learned, including the default route

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi0/1172.16.13.2/30RoutedR1 Fa0/1/0up
Gi0/0Trunk with subinterfacesSW3 Gi1/0/5up
Gi0/0.10172.16.10.3/24VLAN 10Shares gateway 172.16.10.1up
Gi0/0.20172.16.20.3/24VLAN 20Shares gateway 172.16.20.1up
Gi0/0.30172.16.30.3/24VLAN 30Shares gateway 172.16.30.1up
Gi0/0.99172.16.99.3/24VLAN 99Shares gateway 172.16.99.1up
Se0/0/0SerialNot in useshut down
Se0/0/1SerialNot in useshut down

How it works

Standby and preempt. R3 listens for R2's HSRP hello messages. If they stop for 10 seconds, R3 becomes active for the .1 addresses. R2 is set to preempt, so it takes the role back as soon as it returns.

Two addresses, one gateway. R3 has its own .3 address in each VLAN next to R2's .2. PCs use neither: their gateway is .1, which belongs to whichever router is active.

Config

interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 172.16.10.3 255.255.255.0
 ip helper-address 172.16.13.1
 standby 10 ip 172.16.10.1
 standby 10 priority 90
 standby 10 preempt
!
interface GigabitEthernet0/1
 ip address 172.16.13.2 255.255.255.252
 duplex auto
 speed auto
!
router rip
 version 2
 passive-interface default
 no passive-interface GigabitEthernet0/1
 no passive-interface Serial0/0/1
 network 172.16.0.0
 no auto-summary
Show full running config
!
! Last configuration change at 08:38:23 UTC Mon Sep 14 2026
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
!
!
!
!
!
!


!
!
!
!
ip domain name lefekarli.local
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
cts logging verbose
!
!
license udi pid CISCO1941/K9 sn FCZ2028B0AY
license boot module c1900 technology-package datak9
!
!
username admin privilege 15 secret 5 <removed>
!
redundancy
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
 no ip address
 shutdown
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 172.16.10.3 255.255.255.0
 ip helper-address 172.16.13.1
 standby 10 ip 172.16.10.1
 standby 10 priority 90
 standby 10 preempt
!
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 172.16.20.3 255.255.255.0
 ip helper-address 172.16.13.1
 standby 20 ip 172.16.20.1
 standby 20 priority 90
 standby 20 preempt
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 172.16.30.3 255.255.255.0
 ip helper-address 172.16.13.1
 standby 30 ip 172.16.30.1
 standby 30 priority 90
 standby 30 preempt
!
interface GigabitEthernet0/0.99
 encapsulation dot1Q 99
 ip address 172.16.99.3 255.255.255.0
 standby 99 ip 172.16.99.1
 standby 99 priority 90
 standby 99 preempt
!
interface GigabitEthernet0/1
 ip address 172.16.13.2 255.255.255.252
 duplex auto
 speed auto
!
interface Serial0/0/0
 no ip address
 shutdown
 clock rate 2000000
!
interface Serial0/0/1
 no ip address
 shutdown
!
router rip
 version 2
 passive-interface default
 no passive-interface GigabitEthernet0/1
 no passive-interface Serial0/0/1
 network 172.16.0.0
 no auto-summary
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip ssh version 2
!
!
!
!
control-plane
!
!
!
line con 0
 logging synchronous
line aux 0
line 2
 no activation-character
 no exec
 transport preferred none
 transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh
 stopbits 1
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
scheduler allocate 20000 1000
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

SW2

Access switch on R2's side. Carries VLANs 10, 20, 30 and 99 up to R2 and across to SW3.

Cisco Catalyst 2960-X, WS-C2960X-24TS-L
IOS 15.2(7)E14, up 4 days, 10 hours
Serial number FOC1849S0XS

Gi1/0/1, trunk, connected1Gi1/0/2, trunk, connected2Gi1/0/3, trunk, connected3Gi1/0/4, trunk, connected4Gi1/0/5, trunk, connected5Gi1/0/6, unused, nothing connected6Gi1/0/7, unused, nothing connected7Gi1/0/8, unused, nothing connected8Gi1/0/9, unused, nothing connected9Gi1/0/10, unused, nothing connected10Gi1/0/11, unused, nothing connected11Gi1/0/12, unused, nothing connected12Gi1/0/13, access VLAN 10, connected13Gi1/0/14, unused, nothing connected14Gi1/0/15, access VLAN 20, nothing connected15Gi1/0/16, unused, nothing connected16Gi1/0/17, access VLAN 30, nothing connected17Gi1/0/18, unused, nothing connected18Gi1/0/19, unused, nothing connected19Gi1/0/20, unused, nothing connected20Gi1/0/21, unused, nothing connected21Gi1/0/22, unused, nothing connected22Gi1/0/23, unused, nothing connected23Gi1/0/24, access VLAN 99, nothing connected24Gi1/0/25, empty SFP slot, nothing connected25Gi1/0/26, empty SFP slot, nothing connected26Gi1/0/27, empty SFP slot, nothing connected27Gi1/0/28, empty SFP slot, nothing connected28Po1
Filled ports are access ports in their VLAN colour, outlined ports are trunks, and bright ports have something plugged in.
Management
172.16.99.22 in VLAN 99, gateway 172.16.99.1
Uplink
Gi1/0/5 trunk to R2 Gi0/0
EtherChannel
Po1 bundles Gi1/0/1–4 to SW3 with PAgP, VLANs 10, 20, 30 and 99
Access ports
Gi1/0/13 VLAN 10, 15 VLAN 20, 17 VLAN 30, 24 VLAN 99
Connected now
Gi1/0/13 (172.16.10.56)
Spanning tree
Rapid PVST+, root bridge for VLANs 10, 20, 30 and 99

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi1/0/5Trunk: 10, 20, 30, 99R2 Gi0/0up
Po1Trunk: 10, 20, 30, 99SW3 Po1up
Gi1/0/1Member of Po1SW3 Gi1/0/1up
Gi1/0/2Member of Po1SW3 Gi1/0/2up
Gi1/0/3Member of Po1SW3 Gi1/0/3up
Gi1/0/4Member of Po1SW3 Gi1/0/4up
Gi1/0/13Access VLAN 10PC at 172.16.10.56up
Gi1/0/15Access VLAN 20Nothing connecteddown
Gi1/0/17Access VLAN 30Nothing connecteddown
Gi1/0/24Access VLAN 99Nothing connecteddown
Vlan99172.16.99.22/24VLAN interfaceSwitch managementup
Vlan666VLAN interface, no addressNot in usedown

How it works

EtherChannel. The four cables to SW3 work as one 4 Gbit link called Po1. PAgP, set to desirable on both ends, checks that the cables match before bundling them. Spanning tree sees a single link, so none of the four gets blocked and traffic spreads across all of them.

Spanning tree. With more than one path between switches, frames could loop forever. Spanning tree elects one root bridge per VLAN, here SW2, and keeps a single loop-free path to it. The lowest bridge priority wins; on a tie, the lowest MAC address decides.

Config

spanning-tree vlan 10,20,30,99 priority 24576
!
interface Port-channel1
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface GigabitEthernet1/0/5
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface Vlan99
 ip address 172.16.99.22 255.255.255.0
!
ip default-gateway 172.16.99.1
Show full running config
!
! Last configuration change at 16:36:10 UTC Sat Jan 29 2000
! NVRAM config last updated at 06:38:08 UTC Tue Jan 25 2000
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW2
!
boot-start-marker
boot-end-marker
!
!
username admin privilege 15 secret 9 <removed>
no aaa new-model
switch 1 provision ws-c2960x-24ts-l
!
!
!
!
!
!
ip domain-name lefekarli.local
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3275235840
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-3275235840
 revocation-check none
 rsakeypair TP-self-signed-3275235840
!
!
crypto pki certificate chain TP-self-signed-3275235840
 certificate self-signed 01
  <certificate data, 19 lines>
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,20,30,99 priority 24576
!
!
!
!
vlan internal allocation policy ascending
!
!
! 
!
!
!
!
!
!
!
!
interface Port-channel1
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface FastEthernet0
 no ip address
 shutdown
!
interface GigabitEthernet1/0/1
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/2
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/3
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/4
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/5
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
 switchport access vlan 10
 switchport mode access
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
 switchport access vlan 20
 switchport mode access
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
 switchport access vlan 30
 switchport mode access
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
 switchport access vlan 99
 switchport mode access
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan99
 ip address 172.16.99.22 255.255.255.0
!
interface Vlan666
 no ip address
!
ip default-gateway 172.16.99.1
!
ip http server
ip http secure-server
ip ssh version 2
!
!
!
!
line con 0
 logging synchronous
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

Web servers still running on the switches

no ip http server
no ip http secure-server

SW3

Access switch on R3's side. Carries VLANs 10, 20, 30 and 99 up to R3 and across to SW2.

Cisco Catalyst 2960-X, WS-C2960X-24TS-L
IOS 15.2(7)E14, up 4 days, 10 hours
Serial number FOC1847S03Y

Gi1/0/1, trunk, connected1Gi1/0/2, trunk, connected2Gi1/0/3, trunk, connected3Gi1/0/4, trunk, connected4Gi1/0/5, trunk, connected5Gi1/0/6, unused, nothing connected6Gi1/0/7, unused, nothing connected7Gi1/0/8, unused, nothing connected8Gi1/0/9, unused, nothing connected9Gi1/0/10, unused, nothing connected10Gi1/0/11, unused, nothing connected11Gi1/0/12, unused, nothing connected12Gi1/0/13, access VLAN 10, nothing connected13Gi1/0/14, unused, nothing connected14Gi1/0/15, access VLAN 20, nothing connected15Gi1/0/16, unused, nothing connected16Gi1/0/17, access VLAN 30, connected17Gi1/0/18, unused, nothing connected18Gi1/0/19, unused, nothing connected19Gi1/0/20, unused, nothing connected20Gi1/0/21, unused, nothing connected21Gi1/0/22, unused, nothing connected22Gi1/0/23, unused, nothing connected23Gi1/0/24, access VLAN 99, nothing connected24Gi1/0/25, empty SFP slot, nothing connected25Gi1/0/26, empty SFP slot, nothing connected26Gi1/0/27, empty SFP slot, nothing connected27Gi1/0/28, empty SFP slot, nothing connected28Po1
Filled ports are access ports in their VLAN colour, outlined ports are trunks, and bright ports have something plugged in.
Management
172.16.99.33 in VLAN 99, gateway 172.16.99.1
Uplink
Gi1/0/5 trunk to R3 Gi0/0
EtherChannel
Po1 bundles Gi1/0/1–4 to SW2 with PAgP, VLANs 10, 20, 30 and 99
Access ports
Gi1/0/13 VLAN 10, 15 VLAN 20, 17 VLAN 30, 24 VLAN 99
Connected now
Gi1/0/17 (172.16.30.51)
Unused VLANs
40 Server and 222 Blackhole exist but have no ports
Spanning tree
Rapid PVST+, reaches the root bridge (SW2) through Po1

Interfaces

InterfaceAddressVLAN or modeConnects toState
Gi1/0/5Trunk: 10, 20, 30, 99R3 Gi0/0up
Po1Trunk: 10, 20, 30, 99SW2 Po1up
Gi1/0/1Member of Po1SW2 Gi1/0/1up
Gi1/0/2Member of Po1SW2 Gi1/0/2up
Gi1/0/3Member of Po1SW2 Gi1/0/3up
Gi1/0/4Member of Po1SW2 Gi1/0/4up
Gi1/0/13Access VLAN 10Nothing connecteddown
Gi1/0/15Access VLAN 20Nothing connecteddown
Gi1/0/17Access VLAN 30PC at 172.16.30.51up
Gi1/0/24Access VLAN 99Nothing connecteddown
Vlan99172.16.99.33/24VLAN interfaceSwitch managementup

How it works

Root and backup root. The root bridge for VLANs 10, 20, 30 and 99 is SW2. SW2 carries priority 24576 (root primary) and SW3 carries 28672 (root secondary), so SW3 takes over the root role only if SW2 disappears.

Config

spanning-tree vlan 10,20,30,99 priority 28672
!
interface GigabitEthernet1/0/24
 switchport access vlan 99
 switchport mode access
!
interface Vlan99
 ip address 172.16.99.33 255.255.255.0
!
ip default-gateway 172.16.99.1
Show full running config
!
! Last configuration change at 10:00:49 UTC Mon Sep 14 2026
! NVRAM config last updated at 14:59:25 UTC Fri Jan 7 2000
!
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW3
!
boot-start-marker
boot-end-marker
!
!
username admin privilege 15 secret 9 <removed>
no aaa new-model
switch 1 provision ws-c2960x-24ts-l
!
!
!
!
!
!
ip domain-name lefekarli.local
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-1576721664
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-1576721664
 revocation-check none
 rsakeypair TP-self-signed-1576721664
!
!
crypto pki certificate chain TP-self-signed-1576721664
 certificate self-signed 01
  <certificate data, 19 lines>
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,20,30,99 priority 28672
!
!
!
!
vlan internal allocation policy ascending
!
!
! 
!
!
!
!
!
!
!
!
interface Port-channel1
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface FastEthernet0
 no ip address
 shutdown
!
interface GigabitEthernet1/0/1
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/2
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/3
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/4
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
 channel-group 1 mode desirable
!
interface GigabitEthernet1/0/5
 switchport trunk allowed vlan 10,20,30,99
 switchport mode trunk
!
interface GigabitEthernet1/0/6
!
interface GigabitEthernet1/0/7
!
interface GigabitEthernet1/0/8
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
 switchport access vlan 10
 switchport mode access
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
 switchport access vlan 20
 switchport mode access
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
 switchport access vlan 30
 switchport mode access
!
interface GigabitEthernet1/0/18
!
interface GigabitEthernet1/0/19
!
interface GigabitEthernet1/0/20
!
interface GigabitEthernet1/0/21
!
interface GigabitEthernet1/0/22
!
interface GigabitEthernet1/0/23
!
interface GigabitEthernet1/0/24
 switchport access vlan 99
 switchport mode access
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan99
 ip address 172.16.99.33 255.255.255.0
!
ip default-gateway 172.16.99.1
!
ip http server
ip http secure-server
ip ssh version 2
!
!
!
!
line con 0
 logging synchronous
line vty 0 4
 login local
 transport input ssh
line vty 5 15
 login local
 transport input ssh
!
!
end

Needs attention

Device clocks are off

clock set <hh:mm:ss, current UTC> <day> <month> <year>

Web servers still running on the switches

no ip http server
no ip http secure-server

Addressing plan

NetworkVLANUsed forGatewayAddresses in useDHCP pool
10.233.192.0/24School network, outside10.233.192.1R1 .79
172.16.12.0/3012Link from R1 to R2R1 .1, R2 .2
172.16.13.0/3013Link from R1 to R3R1 .1, R3 .2
172.16.10.0/2410 SalgUsers.1, shared by R2 and R3R2 .2, R3 .310salg, 1 lease
172.16.20.0/2420 IndkobUsers.1, shared by R2 and R3R2 .2, R3 .320indkob, 0 leases
172.16.30.0/2430 HRUsers.1, shared by R2 and R3R2 .2, R3 .330hr, 0 leases
172.16.99.0/2499 MGMTSwitch management.1, shared by R2 and R3R2 .2, R3 .3, SW2 .22, SW3 .33
172.16.110.0/24110 GandalfUsers.1 on R1R1 .1110gandalf, 0 leases
172.16.120.0/24120 FrodoUsers.1 on R1R1 .1120frodo, 0 leases
172.16.130.0/24130 SamUsers.1 on R1R1 .1130sam, 0 leases
172.16.199.0/24199 aragornSwitch management.1 on R1R1 .1, SW1 .11

Where this comes from

Everything on this page was read from the devices' console ports with show commands on 14 September 2026 between 09:14 and 09:27 UTC. Nothing was changed on the devices. Password hashes are removed, and the NAT table is left out because it lists the sites people visit.

Browse the show output for every device