CCNA Study Notes
CCNA Study Notes
[[ technology:ccna ]]
CCNA NOTES
Subnetting Table
Base Config
line vty 0 4
password NuggetLove
login
https://wiki.rrwo.us/technology/ccna# 1/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
line console 0
password NuggetLove
login
line console 0
logging synchronous
line console 0
no exec-timeout
#OR
exec-timeout 0
service password-encryption
no ip domain-lookup
https://wiki.rrwo.us/technology/ccna# 2/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
banner motd $
*****************************
DO NOT LOGIN
*****************************
$
Configure IP Addressing
interface <interface>
ip address <ip address> <subnet mask>
Example
interface fastethernet0/1
ip address 10.0.0.10 255.255.255.0
interface <interface>
speed <auto/10/100/1000>
duplex <auto/half/full>
Example
interface fa0/1
speed 100
duplex full
https://wiki.rrwo.us/technology/ccna# 3/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
interface vlan1
ip address 10.24.0.11 255.255.255.0
no shutdown
RIPv2
Configure RIPv2
router rip
version 2
no auto-summary
network 10.0.0.0
Don't forget to turn off auto-summary or the subnet masks won't work correctly.
router rip
version 2
no auto-summary
network 10.0.0.0
passive-interface fa0/0
#OR
https://wiki.rrwo.us/technology/ccna# 4/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
router rip
version 2
no auto-summary
network 10.0.0.0
passive-interface default
router rip
default-information originate
https://wiki.rrwo.us/technology/ccna# 5/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
https://wiki.rrwo.us/technology/ccna# 6/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
interface g0/0
switchport trunk allowed vlan 1-2,5
Configure Router-on-a-Stick
R-O-A-S uses sub-interfaces for routing packets between VLANs.
DHCP
https://wiki.rrwo.us/technology/ccna# 7/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
ip dhcp pool IT
network 10.24.2.0 255.255.255.0
dns-server 4.2.2.2 8.8.8.8
default-router 10.24.2.1
domain-name robertryan.work
lease [days/hours/minutes]
lease 0 2
lease 1 6
service dhcp
https://wiki.rrwo.us/technology/ccna# 8/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
NAT
First, identified outside and inside interfaces, including VLAN sub-interfaces!
int g0/0
ip nat outside
int g0/1
ip nat inside
int g0/0.2
ip nat inside
Enable NAT
https://wiki.rrwo.us/technology/ccna# 9/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Don't forget the <fc #ffa500>OVERLOAD</fc> command to enable PAT (Port Address
Translation). NAT is 1:1. PAT is 1:many.
ACLs
There's always an implicit deny at the end of ACLs
line vty 0 4
access-class LIMIT_TELNET in
NVRAM vs Flash
Separate non-volatile partitions
NVRAM stores the startup-config
Flash stores the IOS image, and can store other arbitrary files as well
Now: on most modern Cisco IOS devices, there is not necessarily a 1:1 relationship between
these names (“NVRAM” and “flash”) and the underlying hardware storage device(s) where the
storage is implemented.
See, for example, the data sheet for the Cisco 4500X switch here. Under the “CPU and Memory”
section, you only see one entry for a 2GB “NVRAM”. This actually refers to a single 2GB flash
memory chip on the board which contains the storage for both the IOS NVRAM as well as the
IOS “flash:” file system. IOS software partitions the single hardware flash storage device into
logical “NVRAM” and “flash:” areas. If you run the IOS EXEC command “format flash:”, that
would wipe out the contents of the “flash:” partition but leave the NVRAM partition intact (i.e.
leave the startup-config intact), although both partitions reside on the same physical device, at
least in the case of the Cisco 4500X.
Flash is the area where the user is allowed to store any arbitrary files, and is subject to
operations like “format”. This usage of flash must not interfere with the startup-config - after all,
you don't want “wr mem” to fail because you've filled up the flash with your vacation photographs
- which is why it is a good idea to have the storage for startup-config reside on a separate
partition which, for historical/traditional reasons is called NVRAM.
https://wiki.rrwo.us/technology/ccna# 10/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Block redundant links and unblock them as necessary. Only blocks one side of link.
(Blocks the side with the higher Bridge ID)
Used for stopping loops in the network
A loop is when a packet you originated comes back to you
show spanning-tree
Then go by Bridge ID
Determined by MAC Address
If still tied, go by lowest port number
BDPU
BDPU is STP sonar.
https://wiki.rrwo.us/technology/ccna# 11/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Best practice is to set primary bridge priority to 4096 and secondary bridge priority to 8192
https://wiki.rrwo.us/technology/ccna# 12/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
a. show spanning-tree
I.
I.
https://wiki.rrwo.us/technology/ccna# 13/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
b. On S2:
I. spanning-tree vlan 1 priority 8192
Portfast
Enable Portfast
spanning-tree portfast
Disables STP
Skips Listening & Learning modes; goes straight to Forwarding
<fc #6495ed>You only want Portfast on access ports</fc> (non-trunking ports) to
speed transition to Forwarding state
BPDU Guard
Enable BPDU Guard
spanning-tree bpduguard
Cisco Stackwise
A way on combining multiple switches into one for easy management, using a stackwise
cable that plugs in the back
Stackwise cables can provide <fc #ffa500>power</fc> as well as data
One switch in the Stackwise stack will be chosen as the <fc #6495ed>master</fc> switch
(like Proxmox cluster)
Other switches adopt master settings
Interfaces will now show with preceding module number; Fa<fc
#6495ed>2</fc>/0/7 refers to module 2
https://wiki.rrwo.us/technology/ccna# 14/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Switch Security
DHCP Snooping
ELI5
Rogue DHCP: Simple mistake or Evil intent?
Basically, the DHCP snooping feature<fc #87ceeb> FILTERS MESSAGES</fc> and <fc
#87ceeb>RATE-LIMITS TRAFFIC</fc> from untrusted sources
Non-Default VLANs
Best Practice:
Change Native VLAN to something other than 1;
DON'T USE VLAN 1 ANYWHERE
Set all unused ports to dead-end VLAN that's not in use
https://wiki.rrwo.us/technology/ccna# 15/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Etherchannel
Cisco's Proprietary form of Link Aggregation
<fc #cd5c5c>If two nodes each have 2 x 1 Gbps NICs and you team them, they will
still only exchange data at 1 Gbps. A single flow cannot exceed the bandwidth of a
single interface.</fc>
Protocols
Alternative to these protocols, you may also hardcode etherchannel manually (not
recommended)
Modes:
ON
DESIRABLE
AUTO
https://wiki.rrwo.us/technology/ccna# 16/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Modes:
ON
ACTIVE
PASSIVE
Configuration
Base interfaces must have identical configuration
Speed
Duplex
Mode [Access/Trunk]
VLANs
Syntax:
Example:
All configuration is done on the Virtual Port Channel Interface (VPc) after bundling
Verify:
https://wiki.rrwo.us/technology/ccna# 17/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Etherchannel Lab
1. <fs x-large>Beginning with a base configuration, set all ports as access ports in
VLAN1</fs>
2. <fs x-large>Configure Etherchannel on the interfaces between S2 and S3 using
PAgP</fs>
a. S1
interface range fa0/3-4
shutdown
channel-group 2 mode auto
no shutdown
b. S2
b. S2
https://wiki.rrwo.us/technology/ccna# 18/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
b. S3
IOS Software
show version
Shows:
Memory Allocation
Interfaces Available
Configuration Register (current and next reload)
https://wiki.rrwo.us/technology/ccna# 19/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Boot Process
Loads ROM in BIOS
Decompresses image from <fc #008000>flash:\<image>.bin</fc> to RAM
flash:\ is basically a tiny SSD
<fs large>2) Check for <fc #6495ed»</fc><fc #00ff00>boot system</fc> commands in the
startup config</fs>
Allows booting from an alternate source like an tftp server or a non-primary image in flash
Alternate boot source configured in startup-config (stored in NVRAM)
If no BOOT SYSTEM commands found, then next step is initiated
https://wiki.rrwo.us/technology/ccna# 20/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
config-register <0x2100/0x2101/0x2102/0x2142>
config-register 0x2100
Cisco 64mb CF Compact Flash Card for Cisco Routers 2801 2811 2821 2851 3825 3845
Pop in a new flash card (some are external like the picture above, others are mounted
inside case)
Boot to ROMMON
Set an IP address
Download IOS image to new flash card
Run command '<fc #008080>reset</fc>' to boot to new image
https://wiki.rrwo.us/technology/ccna# 21/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Command to remember:
Examples:
4. Restore both the IOS and the running configuration to the router in the proper way.
https://wiki.rrwo.us/technology/ccna# 22/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
IOS Licensing
Before IOS version 15 (12.x and prior)
All-inclusive feature set (<fc #c0c0c0>MONOLITHIC</fc>)
<fc #87ceeb>Different IOS versions available</fc>, each always complete
IP BASE
IP VOICE
ADV SECURITY
ENT BASE
ADV IP SERVICES
ENT SERVICES
Code to remember:
show version
Shows
License Info - Product ID (PID) and Serial Number (SN)
All activated packages (must be licensed)
Shows
Supported Feature Names
Active Features
Install a License
https://wiki.rrwo.us/technology/ccna# 23/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Core Routing
<fc #ff0000>The routing table does not reveal all</fc>, ONLY THE BEST ROUTES
Administrative Distances
This table lists the administrative distance default values of the protocols that Cisco supports:
Connected interface 0
Static route 1
https://wiki.rrwo.us/technology/ccna# 24/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Internal EIGRP 90
IGRP 100
OSPF 110
Unknown* 255
* If the administrative distance is 255, the router does not believe the source of that route and
does not install the route in the routing table.
<fc #cd5c5c>Basically, you would set a floating static route by setting the AD slightly
higher than the AD of the current preferred route; that way if the route goes down, the
floating static route will take over</fc>
Split Horizon
Split horizon is a method of preventing a routing loop in a network.
https://wiki.rrwo.us/technology/ccna# 25/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
The basic principle is simple: Information about the routing for a particular packet is <fc
#008080>never sent back</fc> in the direction from which it was received.
Overview
RFC () Standard (Supported by potentially anyone and everyone)
The only widely used Link State routing protocol
Interior protocol (run inside the network)
Maintains LSDB (Link State Database - “Topology Table”)
Uses the Dijkstra SPF algorithm
Works for simple (single area) networks and advanced (multi area)
<fc #cd5c5c>Doesn't use UDP or TCP; OSPF is its own routing protocol. Can't just
unblock TCP/UDP port in firewall, have to unblock OSPF</fc>
<fc #cd5c5c>Basically, the only reason we break into multiple areas is because we want
to do summarization. </fc>
Basic Configuration
Syntax:
https://wiki.rrwo.us/technology/ccna# 26/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Example:
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 area 1
<fs xx-large>Q:</fs> <fs larger>Can I have more than one OSPF process ID running on a
router?</fs>
<fs xx-large>A:</fs><fs larger> You can, but you don't want to (unless you're in some really
bizarre situation). OSPF process ID only exists on local router, so best to always set the
process ID as 1.</fs>
https://wiki.rrwo.us/technology/ccna# 27/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
He's the man that all the routers send their updates to, so he can disseminate that
info across the network
Without the DR, the network goes crazy upon an update because all the routers
would send the update to all other synchronized routers, which forms a bit of a loop
BDR = <fc #6495ed>BACKUP DESIGNATED ROUTER</fc>
Receives updates as well, and waits for DR to die for takeover
DR and BDR listen for updates on multicast address 224.0.0.6 and send updates on
224.0.0.5
<fs smaller><fc #ffa500>LISTEN: </fc>224.0.0.6</fs>
<fs smaller><fc #ffa500>SEND: </fc>224.0.0.5</fs>
DR Selection
Usually, you would want your beefiest, most central router to be the Designated Router
<fs large><fc #ff0000>NOTE:</fc> Each Ethernet segment needs it own DR</fs> (That's why
the DR Priority is set on a per-interface basis)
ip ospf priority 0
https://wiki.rrwo.us/technology/ccna# 29/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
1. Configure all routers shown to operate in the backbone area. Hardcode Router IDs so
they do not easily change.
2. Determine which router became the DR; elect “Tie” as the DR moving forward.
a. Set Priority on “Tie” to anything higher than 1
3. Adjust the metric of OSPF to function well with speeds up to 10G links.
a. OSPF uses <fs smaller><fc #ffa500>COST</fc></fs> as its metric, as opposed to
RIP which uses <fs smaller>HOP COUNT</fs>
b. <fs smaller><fc #ffa500>COST</fc></fs> = 100/BW (mbps)
c. OSPF doesn't see decimals in metric <fs smaller><fc #ffa500>COST</fc></fs>;
54.89 will be seen as 54.
d. Change Bandwidth on Interface:
I. >interface g0/0/0
A. >bandwidth 100000
e. <fc #cd5c5c><fs smaller>SO TO ACTUALLY ANSWER THE QUESTION:
CHANGE THE REFERENCE BANDWIDTH TO USE 10G WITH THE
FOLLOWING COMMANDS (change on every router):</fs></fc>
I. router ospf 1
auto-cost reference-bandwidth 10000
4. Ensure “Shoe” does not form OSPF neighbors on its LAN () network.
a. router ospf 1
passive-interface default
no passive-interface serial 0/1/0
5. Adjust the Hello time on the “Sock” WAN interface to send Hello messages 1/sec.
a. interface s0/1/0
ip ospf hello-interval 1
6. Bonus: Create loopback interfaces in such a way that Router IDs are pingable from any
router.
Enter Debug:
Different States
https://wiki.rrwo.us/technology/ccna# 30/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
2-Way
EXSTART
EXCHANGE
1. Configure all routers shown to operate in a multiarea configuration. Tie, Belt, and Sock will
act as ABRs (Area Border Routers).
a. Q: <fs smaller>How do you create an ABR (Area Border Router)?</fs>
I. A: <fs smaller><fc #cd5c5c>Just assign 2 different interfaces to 2
different areas, simple as that!</fc></fs>
2. Add five (5) loopback interfaces to Ring, Hat, and Shoe. They should be contiguous to
existing area subnets.
3. Add an efficient summary route for area 1, 2, and 51. Verify impact on the routing table of
other routers.
4. Add a loopback interface to Belt with the IP address 184.51.1.2/24 and a default route to
184.51.1.1. This will simulate an internet connection.
a. >ip route 0.0.0.0 0.0.0.0 184.51.1.1
5. Have Belt advertise the default route to the other routers via OSPF. The route should exist
even if Belt does not have a default route.
a. >router ospf 1
I. >default-information originate always
https://wiki.rrwo.us/technology/ccna# 31/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
1. Neighbor Table
2. Topology Table
a. List of best routes (<fs smaller><fc #cd5c5c>SUCCESSOR ROUTES</fc></fs>)
b. and second best routes (<fs smaller><fc #cd5c5c>FEASIBLE SUCCESSOR
ROUTES</fc></fs>)
c. Can switch (<fs smaller><fc #cd5c5c>FEASIBLE SUCCESSOR ROUTES</fc>
</fs>) to (<fs smaller><fc #cd5c5c>SUCCESSOR ROUTES</fc></fs>) so quick
it's unmeasurable.
3. Routing Table
Terminology
<ff serif>TO BE A FEASIBLE SUCCESSOR, THE AD MUST BE LESS THAN THE FD OF THE
SUCCESSOR</ff>
1. <fc #cd5c5c>HELLO</fc>
a. Forms Relationship
2. <fc #cd5c5c>UPDATE</fc>
a. Sends Updates
3. <fc #cd5c5c>QUERY</fc>
a. Asks About Routes
https://wiki.rrwo.us/technology/ccna# 32/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
4. <fc #cd5c5c>REPLY</fc>
a. Response to a Query
5. <fc #cd5c5c>ACK</fc>
a. Acknowledges the Update, Query, and Reply Messages
Example:
router eigrp 1
network 10.0.0.0
The Autonomous System Number must match on all routers in EIGRP relationship
Bandwidth (K1)
Delay (K3)
Reliability (K4 & K5)
Loading (K2)
MTU
1. Configure EIGRP routing on all routers in autonomous system 90. Use network-specific
wild card masks at the lead office.
2. Verify the impact of auto-summarization, then disable it.
3. Introduce a manual summary route at the lead office. The more specific the route, the
better tasting your eggs.
4. Add a secondary connection to the Cereal router and verify equal cost load balancing is
working.
5. Modify the bandwidth on the secondary line to 1mbps. Adjust EIGRP to enable unequal
cost load balancing.
6. Modify the HELLO/HOLD timers to Cereal so fail-over occurs in less than 5 seconds.
https://wiki.rrwo.us/technology/ccna# 33/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
IPV6
Address size moved from <fc #ffa500>32-bit (IPv4)</fc> to <fc #008000>128-bit (IPv6)
</fc>
Provides 340,282,366,920,938,463,463,374,607,431,770,000,000 addresses
Divided into 8 groups of 4 <fs smaller>HEX</fs> characters (0-F) to make it more
manageable (<fc #6495ed>16 bits per hextet</fc>)
2001:0050:0000:0000:0000:0AB4:1E2B:98AA
RULE 1: Eliminate groups of <fc #cd5c5c>consecutive zeros</fc> (can only do this
once)
2001:0050::0AB4:1E2B:98AA
RULE 2: Drop <fc #cd5c5c>leading zeros</fc>
2001:50::AB4:1E2B:98AA
EUI-64
Allows the MAC address to generate the IP address
Jams the characters <fc #9400d3>FFFE</fc> in the middle of the address
https://wiki.rrwo.us/technology/ccna# 34/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
WAN Technologies
Swaps out comfortable Ethernet network for a network of uncomfortable Serial connections
Multi-link
combines multiple WAN connection into single pipe, combining bandwidth of
links
true, down to the bit, load-balancing
Authentication
PAP - Password Authentication Protocol
clear text
CHAP - Challenge Handshake Authentication Protocol
encrypted
HDLC (nothing there to unpack)
High Level Data-link Control
No features other than connecting routers together
Configure PPP
interface s1/0
encapsulation ppp
interface s1/0
encapsulation ppp
1. <fs x-large>Configure the following network in its entirety using HDLC encapsulation for
the 64Kbps WAN link. Use static routing to provision full Lilo-to-Stitch office connectivity.
</fs>
a. Show encapsulation protocol and link speed
I. > show interfaces <interface>
b. Set static route
I. > ip route <to get to this network {ip & mask}> <send packets to this address
on routing table>
II. > ip route 10.1.1.0 255.255.255.0 172.16.1.1
2. <fs x-large>Convert the link to PPP encapsulation</fs>
a. >interface <interface>
I. >encapsulation ppp
3. <fs x-large>Configure PPP PAP authentication between Lilo and Stitch. Use the
appropriate debug commands to prove authentication is occurring.</fs>
a. Create Account
I. > username <hostname of other router> secret <password>
II. > username Stitch secret ninja
b. Assign Credentials
https://wiki.rrwo.us/technology/ccna# 36/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
Internet Technology
1. Configure the Neo router fa0/0 to connect to the ISP with a PPPoE DSL connection
a. The Neo router should learn its public address dynamically
b. Use the hostname “CBTNuggets” with a password of “IsQuiteFun” to authenticate
2. Configure a default route out the Dialer interface you create on your router
3. Use the proper show commands to verify the PPPoE connection is working
4. Ping 4.2.2.2 or 8.8.8.8 to test internet connectivity
Answers
On NEO
interface dialer 1
# PPP info is shoved into the header of the Ethernet frame. PPP uses 8 bits, and a frames max
mtu (Maximum Transmission Unit) is 1500 bits. So, to account for the PPP info in the header of
the frame, we set the mtu to 1492.
mtu 1492
encapsulation ppp
https://wiki.rrwo.us/technology/ccna# 37/39
9/5/25, 11:20 AM technology:ccna [The Tech Tavern of Turbulence]
ip address negotiated
dialer pool 1
int fa0/0
pppoe enable
pppoe-client dial-pool-number 1
VPN Solutions
VPN is used to send data securely over a public network
VPN Options
Site-to-Site
Connect one location to another location permanently using public internet
Client (Remote Access - IPsec)
SSLVPN
DMVPN
GRE Lab
<fs x-large>Fish Store 29 needs to get connected to the Corporate office. The new Fifi's
Flopping Fish CIO is convinced that network security is a scam and would like to deploy and
unencrypted tunnel between Store 29 and the corporate offices. You must set up this tunnel and
ensure routing is fully functional between the locations.</fs>
1. Implement a GRE tunnel between the Nemo and Eel routers using the 192.168.1.0/24
subnet for internal IP addressing.
2. Configure OSPF routing between the two offices. OSPF should advertise the LAN () and
WIFI networks at Store 29 to the corporate office; however, it should no send HELLO
messages out the LAN () interfaces. OSPF communications should only occur within the
GRE tunnel.
3. Verify you have achieved the objectives by confirming OSPF neighbor relationships and
routing tables.
https://wiki.rrwo.us/technology/ccna# 39/39