Mega Lab · Capstone

CCNA Mega Lab (Jeremy's IT Lab)

~2.5 hr Every CCNA config topic Packet Tracer (.pka, auto-graded)
↓ Skip to the 8 parts
Get the lab files
Real Jeremy's IT Lab file, NOT the 3-router capstone

This is the genuine JITL Mega Lab: one edge router (R1), two core L3 switches (CSW1/CSW2), four distribution L3 switches (DSW), six access switches (ASW), a WLC with two lightweight APs, servers, phones, and dual ISPs. It is a .pka auto-graded activity, click Check Results when done. Start from FreshStart.pka and build the whole network from zero.

Download the Packet Tracer files and open them straight in PT:

Bridge not supported for this lab, open the .pka instead

The "Build in Packet Tracer" bridge only makes routers and L2 2960 switches. This lab needs multilayer L3 switches and is auto-graded, so the bridge cannot build it. Open FreshStart.pka directly in Packet Tracer (it is pre-cabled with the right gear), then paste the Part 1-8 configs below and click Check Results.

Originals: jitl.jp/mega-lab · jwczerwinski (.pka + startup-configs) · Alpha-Om3ga (configs + scoring)

What you will configure (the 8 parts)
Topology
Three-tier campus + dual-ISP edge

Two pods (A and B). Each pod has a distribution pair (DSW) and three access switches (ASW). Both core switches (CSW1/CSW2) connect to all four DSWs. R1 sits on top with two routed links into the cores and two NAT'd links out to ISP-A and ISP-B. The routed core (R1 + CSWs + DSWs) runs OSPF on /30 transit links plus /32 loopbacks.

                       ISP-A        ISP-B
                  203.0.113.0/30  203.0.113.4/30
                         \\          /
                       G0/0/0     G0/1/0
                            \\      /
                             [ R1 ]   Lo0 10.0.0.76
                          G0/0 /    \\ G0/1
                 10.0.0.32/30 /      \\ 10.0.0.36/30
                            [CSW1]==Po1==[CSW2]      L3 EtherChannel
                            / | \\        / | \\       10.0.0.40/30
                           /  |  \\      /  |  \\
                     [DSW-A1][DSW-A2] [DSW-B1][DSW-B2]   HSRP gateways
                       |  \\   /  |      |  \\   /  |
                    ASW-A1/A2/A3            ASW-B1/B2/B3
                       |                        |
                 PCs / Phones / WLC+LWAP   PCs / Phones / SRV1

  VLANs:  10=PCs   20=Phones   30=Servers   40=Wi-Fi   99=Management
      
LayerDevicesRole
Edge routerR1OSPF, NAT/PAT, DHCP, default-route ASBR, dual ISP
Core (L3)CSW1 CSW2Routed core, L3 EtherChannel Po1, OSPF
Distribution (L3)DSW-A1/A2 DSW-B1/B2SVIs, HSRP virtual gateways, OSPF, inter-VLAN
Access (L2)ASW-A1/A2/A3 ASW-B1/B2/B3VLANs, trunks, port security, DHCP snooping, DAI
WirelessWLC1 + LWAP1 LWAP2WLAN on VLAN 40; WLC off ASW-A1 Fa0/2 (PortFast trunk)
EndpointsPCs · Phones · SRV1VLAN 10 / 20 / 30 hosts
ExternalISP-A ISP-B203.0.113.0/30 and .4/30, NAT outside
Addressing plan (from Connections-and-IPv4.xlsx)
SegmentVLANSubnetGateway (HSRP VIP)
PCs A1010.1.0.0/2410.1.0.1
Phones A2010.2.0.0/2410.2.0.1
PCs B1010.3.0.0/2410.3.0.1
Phones B2010.4.0.0/2410.4.0.1
Servers3010.5.0.0/2410.5.0.1
Wi-Fi4010.6.0.0/2410.6.0.1
Management A9910.0.0.0/2810.0.0.1
Management B9910.0.0.16/2810.0.0.17
Routed core links, 10.0.0.32-10.0.0.74 /30point-to-point
Loopbacks (OSPF RID), 10.0.0.76-10.0.0.82 /32one per L3 device
Internet, 203.0.113.0/30 · .4/30R1 G0/0/0 / G0/1/0
HSRP convention used in this lab

For every user VLAN the DSW pair shares a virtual IP that ends in .1 (the gateway). DSW-x1 gets .2, DSW-x2 gets .3. The grader expects sequential standby group numbers and priority 105 on the active, a config that "works" with different group numbers or priority 110 still loses points.

The 8 parts, key commands + traps
Save or score zero

The .pka grader checks each device's startup-config. Run do write (or copy running-config startup-config) on every device or you get no points even when the running-config is perfect. Per-device full configs live in the GitHub repos linked above; the hints below are the must-know commands and exam traps for each part.

01 Initial setup 03:27

Hostname each device by its layer role (edge/core/distribution/access). Set the enable secret, a local username for SSH later, and secure the console line.

Show hint, base device hardening
Any device
Switch(config)# hostname DSW-A1
DSW-A1(config)# enable secret YOURSECRET
DSW-A1(config)# username admin secret YOURSECRET
DSW-A1(config)# line console 0
DSW-A1(config-line)# password YOURSECRET
DSW-A1(config-line)# login
02 VLANs & Layer-2 EtherChannel 17:59

Create VLANs 10/20/30/40/99 everywhere. Bundle the redundant inter-switch links into Layer-2 EtherChannels (PAgP), set them as trunks with native VLAN 99, configure access ports for hosts, and shut every unused interface.

EtherChannel mode trap (high exam frequency)

PAgP desirable actively asks; auto only answers. auto + auto never forms a channel (both wait). LACP equivalent: active asks, passive answers, passive+passive also fails. Both ends must also match speed, duplex, allowed VLANs, and trunk mode or the bundle stays suspended.

Show hint, L2 PAgP bundle + trunk
Switch (both ends)
SW(config)# interface range gig 1/0/4 - 5
SW(config-if-range)# channel-group 1 mode desirable
SW(config-if-range)# exit
SW(config)# interface port-channel 1
SW(config-if)# switchport trunk encapsulation dot1q
SW(config-if)# switchport mode trunk
SW(config-if)# switchport trunk native vlan 99
03 IP addressing, L3 EtherChannel & HSRP 42:39

Address the routed /30 links and loopbacks. Make the CSW1↔CSW2 bundle a Layer-3 EtherChannel (no switchport on the port-channel). Configure HSRP on every DSW SVI so each VLAN has a redundant virtual gateway.

L2 vs L3 EtherChannel

L2 channel = trunk between switches. L3 channel = routed link: put no switchport on the port-channel interface, then an IP. Add members with channel-group N mode active. Verify with show etherchannel summary, flag SU = Layer-2 up, RU = Layer-3 up, P = port bundled.

Show hint, HSRP virtual gateway
DSW-A1 (active for VLAN 10)
DSW-A1(config)# interface vlan 10
DSW-A1(config-if)# ip address 10.1.0.2 255.255.255.0
DSW-A1(config-if)# standby 10 ip 10.1.0.1
DSW-A1(config-if)# standby 10 priority 105
DSW-A1(config-if)# standby 10 preempt
04 Rapid Spanning Tree (RSTP) 01:05:56

Run spanning-tree mode rapid-pvst. Make the distribution/core switches the root for their VLANs by lowering priority. The trunk from ASW-A1 to the WLC needs spanning-tree portfast trunk so the AP/WLC link comes up instantly.

Root bridge = lowest priority, then lowest MAC

Set the root with spanning-tree vlan 10 root primary (sets priority 24576) or hard-code priority 0. Align the STP root with the HSRP active switch so traffic does not hairpin. portfast trunk only belongs on trunks to a single host-like device (a WLC), never switch-to-switch.

Show hint, RSTP root + portfast trunk
DSW-A1 / ASW-A1
DSW-A1(config)# spanning-tree mode rapid-pvst
DSW-A1(config)# spanning-tree vlan 10,20,40 root primary
! WLC uplink on the access switch
ASW-A1(config)# interface fa0/2
ASW-A1(config-if)# spanning-tree portfast trunk
05 Static & dynamic routing (OSPF) 01:14:41

Enable OSPF on R1, both cores, and all four distribution switches across the /30 transit links and loopbacks. Put a default route on R1 toward each ISP, then make R1 inject that default into OSPF as an ASBR.

Default-route injection, default-information originate

R1 has two static defaults (one per ISP). default-information originate under router ospf advertises the default into the area so every internal device learns the way out. Use ip ospf network point-to-point on the routed links to skip DR/BDR and converge fast.

Show hint, OSPF + default origination
R1
R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1
R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.5
R1(config)# router ospf 1
R1(config-router)# router-id 10.0.0.76
R1(config-router)# network 10.0.0.32 0.0.0.3 area 0
R1(config-router)# default-information originate
06 Network services: DHCP, DNS, NTP, SNMP, Syslog, FTP, SSH, NAT 01:29:02

R1 hosts DHCP pools for the user VLANs (exclude the first ten usable addresses of each). Add DNS, NTP, SNMP, Syslog, FTP, and SSH. Finish with NAT/PAT so the inside networks reach the ISPs.

DHCP + NAT traps

Exclude addresses before defining the pool. Across HSRP, the DHCP default-router must be the VIP (.1), not a physical SVI. For NAT: mark inside/outside interfaces, write an ACL of inside source networks, then ip nat inside source list ACL interface G0/0/0 overload (PAT). SSH needs a hostname, domain-name, crypto key generate rsa, and transport input ssh on the vty lines.

Show hint, DHCP pool + PAT
R1
R1(config)# ip dhcp excluded-address 10.1.0.1 10.1.0.10
R1(config)# ip dhcp pool PCs_A
R1(dhcp-config)# network 10.1.0.0 255.255.255.0
R1(dhcp-config)# default-router 10.1.0.1
! PAT to ISP-A
R1(config)# ip nat inside source list 1 interface g0/0/0 overload
07 Security: ACLs & Layer-2 protection 02:08:23

Write an extended ACL controlling traffic between Office A and Office B. On access switches add port security, DHCP snooping, and Dynamic ARP Inspection (DAI).

Snooping + DAI trust direction

DHCP snooping: trust the uplink toward the DHCP server, leave host ports untrusted. DAI rides on the snooping binding table, so enable snooping first or valid hosts get blackholed. Port security: switchport port-security + mac-address sticky, default violation shutdown. Extended ACLs go close to the source; standard ACLs close to the destination.

Show hint, port security + snooping
ASW (access + uplink)
ASW(config)# ip dhcp snooping
ASW(config)# ip dhcp snooping vlan 10,20,30,40
ASW(config)# interface gig 0/1
ASW(config-if)# ip dhcp snooping trust
ASW(config)# interface fa0/1
ASW(config-if)# switchport port-security mac-address sticky
08 IPv6 + Wireless (WLC) 02:21:56

Add IPv6 addressing where called for, then build the wireless: the WLC management interface in VLAN 99, a dynamic interface for the Wi-Fi VLAN 40, and a WLAN/SSID mapped to it. The two lightweight APs register to the WLC (no FlexConnect).

WLC essentials for the CCNA

LWAPs are zero-touch: they pull an address via DHCP, find the WLC, and download config, no CLI on the AP. On the WLC GUI you create the dynamic interface (VLAN 40 + IP), then a WLAN bound to that interface with WPA2 security. The AP-to-switch link is a trunk with PortFast (Part 4).

Paste-ready configs, all 8 parts (Jeremy's answer key)
How to use these

Exact paste-in scripts from the lab. Where a line shows hostname * or ASW-*, swap the * for the real device name first. Lines starting with # are comments (safe to paste). Each part ends with do write so the grader scores it. Files also ship under labs/mega-lab-configs/.

Part 1, Initial Setup
part 1 . paste-ready . raw file
#EDGE ROUTER
en
conf t
hostname R1
enable secret jonsitlab
username cisco secret ccna
line console 0
login local
logging synchronous
exec-timeout 30 0
do write
exit

#CORE & DISTRIBUTION LAYER SWITCHES (CHANGE HOSTNAME TO MATCH DEVICE!)
en
conf t
hostname *
enable algorithm-type scrypt secret jonsitlab
username cisco algorithm-type scrypt secret ccna
line console 0
login local
logging synchronous
exec-timeout 30 0
do write
exit

#ACCESS LAYER SWITCH (CHANGE HOSTNAME TO MATCH DEVICE!)
en
conf t
hostname ASW-*
enable secret jonsitlab
username cisco secret ccna
line console 0
login local
logging synchronous
exec-timeout 30 0
do write
exit
Part 2, VLANs and L2 EtherChannel
part 2 . paste-ready . raw file
#INFO ABOUT STEPS:
#Steps 3a, 7d, 8c - DTP is disabled with 'nonegotiate'
#Step 7a - place LWAP connections in 'access vlan 99'
#Step 8b - make WLC1 connection 'trunk native vlan 99'

#OFFICE A
#DISTRIBUTION SWITCHES
#DSW-A*
interface range g1/0/4-5
channel-group 1 mode desirable
interface range g1/0/1-3
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,40,99
interface port-channel 1
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,40,99
exit
interface range g1/0/6-24, g1/1/3-4
shutdown
exit
do write

#DSW-A1 (VTP SERVER)
vtp domain jonsitlab
vtp version 2
vlan 10
name PCs
vlan 20
name Phones
vlan 40
name Wi-Fi
vlan 99
name Management
exit
do write

#ACCESS SWITCHES
#ASW-A*
interface range g0/1-2 
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,40,99
exit
vtp mode client
interface f0/1
switchport mode access
switchport nonegotiate
exit
do write

#ASW-A1
interface f0/1
switchport access vlan 99
interface f0/2
switchport mode trunk
switchport trunk allowed vlan 40,99
switchport trunk native vlan 99
switchport nonegotiate
exit
interface range f0/3-24
shutdown
exit
do write

#ASW-A2
interface f0/1
switchport access vlan 10
switchport voice vlan 20
exit
interface range f0/2-24
shutdown
exit
do write

#ASW-A3
interface f0/1
switchport access vlan 10
switchport voice vlan 20
exit
interface range f0/2-24
shutdown
exit
do write

#OFFICE B
#DISTRIBUTION SWITCHES
#DSW-B*
interface range g1/0/4-5
channel-group 1 mode active
interface range g1/0/1-3
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,30,99
interface port-channel 1
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,30,99
exit
interface range g1/0/6-24, g1/1/3-4
shutdown
exit
do write

#DSW-B1 (VTP SERVER)
vtp domain jonsitlab
vtp version 2
vlan 10
name PCs
vlan 20
name Phones
vlan 30
name Servers
vlan 99
name Management
exit
do write

#ACCESS SWITCHES
#ASW-B*
interface range g0/1-2
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 1000
switchport trunk allowed vlan 10,20,30,99
exit
vtp mode client
interface f0/1
switchport mode access
switchport nonegotiate
exit
interface range f0/2-24
shutdown
exit
do write

#ASW-B1
interface f0/1
switchport access vlan 99
exit
do write

#ASW-B2
interface f0/1
switchport access vlan 10
switchport voice vlan 20
exit
do write

#ASW-B3
interface f0/1
switchport access vlan 30
exit
do write

#VERIFY RESULTS:
show etherchannel summary
show interfaces trunk
show vtp status
show vlan brief
show interfaces status
Part 3, IP / L3 EtherChannel / HSRP
part 3 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 1 - Command 'show cdp neighbor' won't show interface connections between router and core switches until after step 1.
#Steps 11, & 12 - 19 - VIP (virtual IP address) of distribution switches will act as the default gateway for access switches (IP default gateway for HSRP group 1 VLAN 99 Management) and endpoints (IP default gateway for HSRP group # VLAN # VLANNAME)

#R1 - EDGE ROUTER
interface range g0/0/0,g0/1/0
ip address dhcp
no shutdown
interface g0/0
ip address 10.0.0.33 255.255.255.252
no shutdown
interface g0/1
ip address 10.0.0.37 255.255.255.252
no shutdown
interface loopback0
ip address 10.0.0.76 255.255.255.255
exit
do write

#CORE SWITCHES
ip routing
interface range g1/0/2-3
no switchport
channel-group 1 mode desirable
exit
do write

#CSW1
interface po1
ip address 10.0.0.41 255.255.255.252
interface g1/0/1
no switchport
ip address 10.0.0.34 255.255.255.252
interface g1/1/1
no switchport
ip address 10.0.0.45 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.49 255.255.255.252
interface g1/1/3
no switchport
ip address 10.0.0.53 255.255.255.252
interface g1/1/4
no switchport
ip address 10.0.0.57 255.255.255.252
interface loopback0
ip address 10.0.0.77 255.255.255.255
interface range g1/0/4-24
shutdown
exit 
do write

#CSW2
interface po1
ip address 10.0.0.42 255.255.255.252
interface g1/0/1
no switchport
ip address 10.0.0.38 255.255.255.252
interface g1/1/1
no switchport
ip address 10.0.0.61 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.65 255.255.255.252
interface g1/1/3
no switchport
ip address 10.0.0.69 255.255.255.252
interface g1/1/4
no switchport
ip address 10.0.0.73 255.255.255.252
interface loopback0
ip address 10.0.0.78 255.255.255.255
interface range g1/0/4-24
shutdown
exit 
do write

#DISTRIBUTION SWITCHES
ip routing

#DSW-A1
interface g1/1/1
no switchport
ip address 10.0.0.46 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.62 255.255.255.252
interface loopback0
ip address 10.0.0.79 255.255.255.255
interface vlan 99
ip address 10.0.0.2 255.255.255.240
standby version 2
standby 1 ip 10.0.0.1
standby 1 priority 105
standby 1 preempt
interface vlan 10
ip address 10.1.0.2 255.255.255.0
standby version 2
standby 2 ip 10.1.0.1
standby 2 priority 105
standby 2 preempt
interface vlan 20
ip address 10.2.0.2 255.255.255.0
standby version 2
standby 3 ip 10.2.0.1
interface vlan 40
ip address 10.6.0.2 255.255.255.0
standby version 2
standby 4 ip 10.6.0.1
exit
do write

#DSW-A2
interface g1/1/1
no switchport
ip address 10.0.0.50 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.66 255.255.255.252
interface loopback0
ip address 10.0.0.80 255.255.255.255
interface vlan 99
ip address 10.0.0.3 255.255.255.240
standby version 2
standby 1 ip 10.0.0.1
interface vlan 10
ip address 10.1.0.3 255.255.255.0
standby version 2
standby 2 ip 10.1.0.1
interface vlan 20
ip address 10.2.0.3 255.255.255.0
standby version 2
standby 3 ip 10.2.0.1
standby 3 priority 105
standby 3 preempt
interface vlan 40
ip address 10.6.0.3 255.255.255.0
standby version 2
standby 4 ip 10.6.0.1
standby 4 priority 105
standby 4 preempt
exit
do write

#DSW-B1
interface g1/1/1
no switchport
ip address 10.0.0.54 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.70 255.255.255.252
interface loopback0
ip address 10.0.0.81 255.255.255.255
interface vlan 99
ip address 10.0.0.18 255.255.255.240
standby version 2
standby 1 ip 10.0.0.17
standby 1 priority 105
standby 1 preempt
interface vlan 10
ip address 10.3.0.2 255.255.255.0
standby version 2
standby 2 ip 10.3.0.1
standby 2 priority 105
standby 2 preempt
interface vlan 20
ip address 10.4.0.2 255.255.255.0
standby version 2
standby 3 ip 10.4.0.1
interface vlan 30
ip address 10.5.0.2 255.255.255.0
standby version 2
standby 4 ip 10.5.0.1
exit
do write

#DSW-B2
interface g1/1/1
no switchport
ip address 10.0.0.58 255.255.255.252
interface g1/1/2
no switchport
ip address 10.0.0.74 255.255.255.252
interface loopback0
ip address 10.0.0.82 255.255.255.255
interface vlan 99
ip address 10.0.0.19 255.255.255.240
standby version 2
standby 1 ip 10.0.0.17
interface vlan 10
ip address 10.3.0.3 255.255.255.0
standby version 2
standby 2 ip 10.3.0.1
interface vlan 20
ip address 10.4.0.3 255.255.255.0
standby version 2
standby 3 ip 10.4.0.1
standby 3 priority 105
standby 3 preempt
interface vlan 30
ip address 10.5.0.3 255.255.255.0
standby version 2
standby 4 ip 10.5.0.1
standby 4 priority 105
standby 4 preempt
exit
do write

#ASW-A1
ip default-gateway 10.0.0.1
interface vlan 99
ip address 10.0.0.4 255.255.255.240
exit
do write

#ASW-A2
ip default-gateway 10.0.0.1
interface vlan 99
ip address 10.0.0.5 255.255.255.240
exit
do write

#ASW-A3
ip default-gateway 10.0.0.1
interface vlan 99
ip address 10.0.0.6 255.255.255.240
exit
do write

#ASW-B1
ip default-gateway 10.0.0.17
interface vlan 99
ip address 10.0.0.20 255.255.255.240
exit
do write

#ASW-B2
ip default-gateway 10.0.0.17
interface vlan 99
ip address 10.0.0.21 255.255.255.240
exit
do write

#ASW-B3
ip default-gateway 10.0.0.17
interface vlan 99
ip address 10.0.0.22 255.255.255.240
exit
do write

#VERIFY RESULTS:
show ip interface brief
show running-config
show cdp neighbor
ping
Part 4, Rapid Spanning Tree
part 4 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 2 - For ASW-A1 interface f0/2 connection with WLC1, use command 'spanning-tree portfast trunk' to enable portfast on the trunk connection.

#DISTRIBUTION SWITCHES
spanning-tree mode rapid-pvst

#DSW-A1
spanning-tree vlan 10,99 priority 0
spanning-tree vlan 20,40 priority 4096
do write

#DSW-A2
spanning-tree vlan 10,99 priority 4096
spanning-tree vlan 20,40 priority 0
do write

#DSW-B1
spanning-tree vlan 10,99 priority 0
spanning-tree vlan 20,30 priority 4096
do write

#DSW-B2
spanning-tree vlan 10,99 priority 4096
spanning-tree vlan 20,30 priority 0
do write

#ACCESS SWITCHES
spanning-tree mode rapid-pvst
interface f0/1
spanning-tree portfast
spanning-tree bpduguard enable
exit
do write

#ASW-A1
interface f0/2
spanning-tree portfast trunk
spanning-tree bpduguard enable
exit
do write

#VERIFY RESULTS:
show running-config
show spanning-tree
show spanning-tree vlan <vlan ID>
Part 5, Static and Dynamic Routing (OSPF)
part 5 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 1c - Command 'net 10.0.0.41 0.0.0.0 area 0' advertises only one the IP address of 10.0.0.41 in the ospf area 0 shared with other devices. A wildcard mask of 255.255.255.255 would advertise all addresses.
#Step 2a - Command 'ip route' sets a static route, where "Recursive" only specifies the next hop IP address and "Directly connected" specifies both the next hop IP address and the exit interface. Also, AD (administrative distance) default is 1 and is set with last number of the 'ip route' command.

#R1 - EDGE ROUTER
router ospf 1
router-id 10.0.0.76
default-information originate
passive-interface l0
int l0
ip ospf 1 area 0
interface range g0/0-1
ip ospf 1 area 0
ip ospf network point-to-point
exit
ip route 0.0.0.0 0.0.0.0 203.0.113.1
ip route 0.0.0.0 0.0.0.0 203.0.113.5 2
do write

#CORE SWITCHES
router ospf 1
passive-interface l0
interface range g1/0/1,g1/1/1-4
ip ospf network point-to-point
exit
do write

#CSW1
router ospf 1
router-id 10.0.0.77
net 10.0.0.41 0.0.0.0 area 0
net 10.0.0.34 0.0.0.0 area 0
net 10.0.0.45 0.0.0.0 area 0
net 10.0.0.49 0.0.0.0 area 0
net 10.0.0.53 0.0.0.0 area 0
net 10.0.0.57 0.0.0.0 area 0
net 10.0.0.77 0.0.0.0 area 0
exit
do write

#CSW2
router ospf 1
router-id 10.0.0.78
net 10.0.0.42 0.0.0.0 area 0
net 10.0.0.38 0.0.0.0 area 0
net 10.0.0.61 0.0.0.0 area 0
net 10.0.0.65 0.0.0.0 area 0
net 10.0.0.69 0.0.0.0 area 0
net 10.0.0.73 0.0.0.0 area 0
net 10.0.0.78 0.0.0.0 area 0
exit
do write

#DISTRIBUTION SWITCHES
router ospf 1
passive-interface l0
passive-interface vlan 10
passive-interface vlan 20
interface range g1/1/1-2
ip ospf network point-to-point
exit
do write

#DSW-A*
router ospf 1
passive-interface vlan 40
exit
do write

#DSW-A1
router ospf 1
router-id 10.0.0.79
net 10.0.0.46 0.0.0.0 area 0
net 10.0.0.62 0.0.0.0 area 0
net 10.0.0.79 0.0.0.0 area 0
net 10.1.0.2 0.0.0.0 area 0
net 10.2.0.2 0.0.0.0 area 0
net 10.6.0.2 0.0.0.0 area 0
net 10.0.0.2 0.0.0.0 area 0
exit
do write

#DSW-A2
router ospf 1
router-id 10.0.0.80
net 10.0.0.50 0.0.0.0 area 0
net 10.0.0.66 0.0.0.0 area 0
net 10.0.0.80 0.0.0.0 area 0
net 10.1.0.3 0.0.0.0 area 0
net 10.2.0.3 0.0.0.0 area 0
net 10.6.0.3 0.0.0.0 area 0
net 10.0.0.3 0.0.0.0 area 0
exit
do write

#DSW-B*
router ospf 1
passive-interface vlan 30
exit
do write

#DSW-B1
router ospf 1
router-id 10.0.0.81
net 10.0.0.54 0.0.0.0 area 0
net 10.0.0.70 0.0.0.0 area 0
net 10.0.0.81 0.0.0.0 area 0
net 10.3.0.2 0.0.0.0 area 0
net 10.4.0.2 0.0.0.0 area 0
net 10.5.0.2 0.0.0.0 area 0
net 10.0.0.18 0.0.0.0 area 0
exit
do write

#DSW-B2
router ospf 1
router-id 10.0.0.82
net 10.0.0.58 0.0.0.0 area 0
net 10.0.0.74 0.0.0.0 area 0
net 10.0.0.82 0.0.0.0 area 0
net 10.3.0.3 0.0.0.0 area 0
net 10.4.0.3 0.0.0.0 area 0
net 10.5.0.3 0.0.0.0 area 0
net 10.0.0.19 0.0.0.0 area 0
exit
do write

#VERIFY RESULTS:
show running-config
show ip ospf
show ip ospf neigh
show ip ospf interface
show ip interface breif
show interface
ping
show ip route
show ip int br | exclude unassign
Part 6, Network Services
part 6 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 3 - Add DNS entries in the GUI services tab of SVR1. 
For an "A Record": Name = jonsitlab.com, Address = [IP address]. 
For a "CNAME": Name = www.jonsitlab.com, Host Name = jonsitlab.com.
#Steps 5 & 6 - Verify results at the end of Part 6.
#Step 9b - DO THIS STEP 9 LAST, SINCE LOADING TIMES ARE LONG! Find the new FTP file in SRV1 services tab, copy and paste to the command.
#Step 10b - 0.0.0.255 wildcard mask = /24 subnet.
#Step 11 - For SRV1 to ping google.com, the DNS server must be specified as itself in the services tab.

#ALL DEVICES
ip domain name jonsitlab.com
ip name-server 10.5.0.4
ntp authentication-key 1 md5 ccna
ntp trusted-key 1
snmp-server community SNMPSTRING ro
logging 10.5.0.4
logging trap debugging
logging buffered 8192
crypto key generate rsa
4096
ip ssh version 2
access-list 1 permit 10.1.0.0 0.0.0.255
line vty 0 15
access-class 1 in
login local
transport input ssh
logging synchronous
exit
do write

#R1 - EDGE ROUTER
ip dhcp excluded-address 10.0.0.1 10.0.0.10
ip dhcp excluded-address 10.1.0.1 10.0.0.10
ip dhcp excluded-address 10.2.0.1 10.0.0.10
ip dhcp excluded-address 10.0.0.17 10.0.0.26
ip dhcp excluded-address 10.3.0.1 10.0.0.10
ip dhcp excluded-address 10.4.0.1 10.0.0.10
ip dhcp excluded-address 10.6.0.1 10.0.0.10
ip dhcp pool A-Mgmt
network 10.0.0.0 255.255.255.240
default-router 10.0.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
option 43 ip 10.0.0.7
ip dhcp pool A-PC
network 10.1.0.0 255.255.255.0
default-router 10.1.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
ip dhcp pool A-Phone
network 10.2.0.0 255.255.255.0
default-router 10.2.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
ip dhcp pool B-Mgmt
network 10.0.0.16 255.255.255.240
default-router 10.0.0.17
domain-name jonsitlab.com
dns-server 10.5.0.4
option 43 ip 10.0.0.7
ip dhcp pool B-PC
network 10.3.0.0 255.255.255.0
default-router 10.3.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
ip dhcp pool B-Phone
network 10.4.0.0 255.255.255.0
default-router 10.4.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
ip dhcp pool Wi-Fi
network 10.6.0.0 255.255.255.0
default-router 10.6.0.1
domain-name jonsitlab.com
dns-server 10.5.0.4
exit
ntp master 5
ntp server 216.239.35.0
ntp authentication-key 1 md5 ccna
ntp trusted-key 1
ip ftp username cisco
ip ftp password cisco
ip nat inside source static 10.5.0.4 203.0.113.113
interface range g0/0/0,g0/1/0
ip nat outside
interface range g0/0-1
ip nat inside
exit
access-list 2 permit 10.1.0.0 0.0.0.255
access-list 2 permit 10.2.0.0 0.0.0.255
access-list 2 permit 10.3.0.0 0.0.0.255
access-list 2 permit 10.4.0.0 0.0.0.255
access-list 2 permit 10.6.0.0 0.0.0.255
ip nat pool POOL1 203.0.113.200 203.0.113.207 netmask 255.255.255.248
ip nat inside source list 2 pool POOL1 overload
interface g0/0/0
shutdown
exit
router ospf 1
no default-information originate
default-information originate
exit
no cdp run
lldp run
do write

#CORE SWITCHES
ntp server 10.0.0.76 key 1
no cdp run
lldp run
do write

#DISTRIBUTION SWITCHES
interface vlan 10
ip helper-address 10.0.0.76
interface vlan 20
ip helper-address 10.0.0.76
interface vlan 99
ip helper-address 10.0.0.76
exit
ntp server 10.0.0.76 key 1
no cdp run
lldp run
do write

#DSW-A*
interface vlan 40
ip helper-address 10.0.0.76
exit
do write

#DSW-B*
interface vlan 30
ip helper-address 10.0.0.76
exit
do write

#ACCESS SWITCHES
ntp server 10.0.0.76 key 1
no cdp run
lldp run
interface f0/1
no lldp transmit
exit
do write

#STEP 9 - R1 EDGE ROUTER (DO THIS STEP LAST, SINCE LOADING TIMES ARE LONG)
do copy ftp flash 
10.5.0.4
c2900-universalk9-mz.SPA.155-3.M4a.bin
#PRESS ENTER TO ACCEPT DEFAULT LOCATION, THEN WAIT A LONG TIME FOR THE DOWNLOAD
boot system flash:c2900-universalk9-mz.SPA.155-3.M4a.bin
#WAIT FOR BOOT
reload
#WAIT FOR SYSTEM TO RELOAD, THEN FIND COPY AND PASTE OLD FLASH IMAGE
delete flash:c2900-universalk9-mz.SPA.151-4.M4.bin
exit
do write

#VERIFY RESULTS (ROUTER & SWITCHES):
show running-config
show ip dhcp binding
show ip dhcp pool
show logging
show interface
ping
show ip route
show flash
show version
show ip ssh

#VERIFY RESULTS (PCs & SRV1):
ipconfig /renew
ipconfig
ping [ip address | FQDN] (try default gateway, internet addresses, etc.)
ssh -l cisco 10.0.0.76
Part 7, Security (ACL / port-sec / snooping / DAI)
part 7 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 1 - Extended ACLs should be applied as close to source, while Standard ACLs should be applied as close to destination.
#Step 2 - Phone and PCs are 2 MAC addresses, LWAP is one MAC address, SRV1 is one MAC address (typical all VMs on a server have their own MAC address). 2c - 'mac-address sticky'

#DSW-A*
ip access-list extended OfficeA_to_OfficeB
permit icmp 10.1.0.0 0.0.0.255 10.3.0.0 0.0.0.255
deny ip 10.1.0.0 0.0.0.255 10.3.0.0 0.0.0.255
permit ip any any
int vlan 10
ip access-group OfficeA_to_OfficeB in
exit
do write

#ASW-A1
interface f0/1
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,40,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
int f0/2
ip dhcp snooping limit rate 100
ip arp inspection vlan 10,20,40,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

#ASW-A2
interface f0/1
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,40,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
ip arp inspection vlan 10,20,40,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

ASW-A3
interface f0/1
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,40,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
ip arp inspection vlan 10,20,40,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

ASW-B1
interface f0/1
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,30,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
ip arp inspection vlan 10,20,30,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

ASW-B2
interface f0/1
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,30,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
ip arp inspection vlan 10,20,30,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

ASW-B3
interface f0/1
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
ip dhcp snooping
ip dhcp snooping vlan 10,20,30,99
no ip dhcp snooping information option
int range g0/1-2
ip dhcp snooping trust
int f0/1
ip dhcp snooping limit rate 15
ip arp inspection vlan 10,20,30,99
ip arp inspection validate dst-mac src-mac ip
int range g0/1-2
ip arp inspection trust
exit
do write

#VERIFY RESULTS (ROUTER & SWITCHES):
show running-config
show access-lists
show port-security interface f0/1
show ip dhcp snooping
show ip arp inspection
Part 8, IPv6
part 8 . paste-ready . raw file
#INFO ABOUT STEPS:
#Step 1e - 'ipv6 enable' generates a link-local ipv6 address for an interface, allowing ipv6 traffic without specifying an ipv6 address.
#Step 2b - This is the redundant backup connection to the internet. AD is 2 so that the primary ipv6 route is prefered.

#R1 - EDGE ROUTER
ipv6 unicast-routing
int g0/0/0
ipv6 add 2001:db8:a::2/64
int g0/1/0
ipv6 add 2001:db8:b::2/64
int g0/0
ipv6 add 2001:db8:a1::/64 eui-64
int g0/1
ipv6 add 2001:db8:a2::/64 eui-64
exit
ipv6 route ::/0 2001:db8:a::1
ipv6 route ::/0 g0/1/0 2001:db8:b::1 2
exit
do write

#CSW1
ipv6 unicast-routing
int g1/0/1
ipv6 add 2001:db8:a1::/64 eui-64
int po1
ipv6 enable
exit
do write

#CSW2
ipv6 unicast-routing
int g1/0/1
ipv6 add 2001:db8:a2::/64 eui-64
int po1
ipv6 enable
exit
do write

#VERIFY RESULTS (ROUTER & SWITCHES):
show running-config
show ipv6 int br
Per-device answer-key startup-configs

Final saved config for every device. Compare yours against these if Check Results docks points.

LayerDevice configs
Edge routerR1
Core (L3)CSW1 CSW2
Distribution (L3)DSW-A1 DSW-A2 DSW-B1 DSW-B2
Access (L2)ASW-A1 ASW-A2 ASW-A3 ASW-B1 ASW-B2 ASW-B3
Verification checkpoints
show etherchannel summary
Bundles up, SU (L2) or RU (L3), members flagged P
Group  Port-channel  Protocol    Ports
1      Po1(RU)       LACP        Gig1/0/2(P) Gig1/0/3(P)
show standby brief
HSRP, one Active per VLAN, VIP = .1
Interface  Grp  Pri  State    Active     Standby    Virtual IP
Vl10       10   105  Active   local      10.1.0.3   10.1.0.1
show ip ospf neighbor
All routed-core neighbors in FULL
Neighbor ID  Pri  State     Dead Time  Address      Interface
10.0.0.77      0  FULL/  -  00:00:38   10.0.0.34    GigabitEthernet0/0
show ip nat translations
Inside hosts translated out to the ISP, then Check Results
Pro  Inside global     Inside local     Outside local   Outside global
icmp 203.0.113.2:1    10.1.0.11:1      8.8.8.8:1       8.8.8.8:1
Post-Lab Quiz

Knowledge Check

8 questions spanning the whole Mega Lab. Pass = 80%.

0%
Lab PT-10 · CCNA Mega Lab
Back to labs