Day1 PDF
Day1 PDF
Day1 PDF
Crash Course
Day 1
with
Kevin Wallace, CCIEx2
(R/S & Collaboration) #7945
Your Instructor
• Kevin Wallace
• Written a bunch of books & made a ton of video courses for Cisco Press
192.0.2.0 /30
10.1.1.0 /24 192.168.1.0 /24
Gig 1 .1
.100 .1 .1 .200
Switch 1 Gig 2
Router Gig 3
Switch 2
Laptop Server
Switches
Laptop 1
MAC Address Table
Port MAC Address
Gig 1 AAAA.AAAA.AAAA
AAAA.AAAA.AAAA
Gig 2 BBBB.BBBB.BBBB
Gig 3 CCCC.CCCC.CCCC
Gig 4 DDDD.DDDD.DDDD Gig 1
Switch
Gig 3
CCCC.CCCC.CCCC
DDDD.DDDD.DDDD
BBBB.BBBB.BBBB
SW1
Attacker
PC1 HQ Internet
IPS Sensor
Security Appliances
PC1 HQ Internet
NGFW
Ad Hoc Wireless LAN
Client 1 Client 2
Infrastructure Wireless LAN
Internet
Wireless Router
Client 1 Client 2
Mesh Wireless LAN
Client 1 Client 2
Enterprise Wireless LAN
Ethernet
Switch
SW1
Server
PC 3
Endpoints and Servers
PC 3 PC 4
Cisco DNA Center
• Design
• Policy
• Provision
• Assurance
• Platform
Virtual Server
Microsoft Oracle
Linux
Windows Solaris
Server
Server Server
Virtual
NIC-1 • Virtual NIC: Software associated
with a unique MAC address, which
can be used by a VM to send and
Physical Virtual receive packets.
Virtual Server
Virtual Services
VMs
Cloud Provider
The OSI Model’s Seven Layers
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Synchronization (SYN)
Synchronization and Acknowledgement (SYN - ACK)
Acknowledgement (ACK)
Core Layer
Distribution Layer
Three-Tier Architecture
A network topology divided into the Access,
Distribution, and Core layers.
Access Layer
Collapsed Core Architecture
Internet
Collapsed Core
Layer
Distribution Layer
Collapsed Core Architecture
A two-tier topology where the Core and Distribution
Layers have been consolidated.
Access Layer
Spine-Leaf Design for Data Centers
Logically, One Switch
Spine Switches
Leaf Switches
Nodes
Wide Area Network (WAN) Topologies
HQ
BR1
BR1 HQ Connectivity
Examples of WAN BR2
• Point-to-Point
• Point-to-Multipoint
• MPLS
• Metro Ethernet
Point-to-Point
R1 R2
point connection
• Could be a logical point-to-point
connection
Point-to-Multipoint
Location B
R2
Location A
Location C
R3
Internet (with VPN)
Client 1
Client 2 Server
Internet
SW1 R1 R2 SW2
Site-to-Site VPN
• Widely available
Multiprotocol Label Switching (MPLS)
32-bit
L2 L3
Shim Payload
Header Header Header
Multiprotocol Label Switching (MPLS)
CE LSR CE
Location A Location B
LSR LSR
PE (ELSR) LSR PE (ELSR)
CE CE
Location C Location D
Metropolitan Area Network (MAN)
Tribune Tower
Willis Tower
• Metro E is an Example
• Limited Availability
Smartphone
PC Internet
Ethernet Wireless Router
Server Switch
On-Premise vs. Cloud Architectures
Internet
VPN
Private WAN
MPLS
Metro Ethernet
Cloud Provider 1
Intercloud
Exchange
Enterprise Cloud Provider 2
Cloud Provider 3
Network Cabling
Copper Cables
PIN T568B
1
White/Orange
2
Orange
3
White/Green
4
Blue
5
White/Blue
6
Green
7
White/Brown
8
Brown
RJ-45
Straight-Through Cable
PIN T568B
10BASE-T and 100BASE-TX
1
White/Orange
Pin Pin
2 T+ 1 1 R+
T- 2 2 R-
Orange
3 R+ 3 3 T+
4
White/Green
4
4 5 5
Blue
R- 6 6 T-
5 7 7
White/Blue
8 8
6
Green
7
White/Brown
8 Switch 1
Brown
Media Dependent
Interface Crossover
Media Dependent (MDI-X)
Interface (MDI)
Crossover Cable
PIN T568B
10BASE-T and 100BASE-TX
1
White/Orange
Pin Pin
2 T+ 1 1 T+
T- 2 2 T-
Orange
3 R+ 3 3 R+
4
White/Green
4
4 5 5
Blue
R- 6 6 R-
5 7 7
White/Blue
8 8
6
Green
7
White/Brown
8
Brown
3 DB+ 3 3 DA+
4 DD+
White/Green
DC+ 4
4 DC- 5 5 DD-
Blue
DB- 6 6 DA-
5 DD+ 7 7 DC+
White/Blue
DD- 8 8 DC-
6
Green
7
White/Brown
8 Switch 1
Brown
Media Dependent
Interface Crossover
Media Dependent (MDI-X)
Interface (MDI)
Crossover Cable
PIN T568B
1000BASE-T
1
White/Orange
Pin Pin
2 DA+ 1 1 DA+
DA- 2 2 DA-
Orange
3 DB+ 3 3 DB+
4 DC+
White/Green
DC+ 4
4 DC- 5 5 DC-
Blue
DB- 6 6 DB-
5 DD+ 7 7 DD+
8 DD-
White/Blue
DD- 8
6
Green
7
White/Brown
8
Brown
Single-Mode Fiber
Multimode Fiber
Ethernet Standards
Ethernet Standard Media Type Bandwidth Capacity Distance Limitation
100BASE-TX Cat 5 (or higher) UTP 100 Mbps 100 m
1000BASE-T Cat 5 (or higher) UTP 1 Gbps 100 m
1000BASE-LX MMF/SMF 1 Gbps/1 Gbps 550 m/5 km
220 m (62.5mm)/550 m
1000BASE-SX MMF 1 Gbps
(50mm)
10GBASE-T Cat 6/Cat 6a (or higher) 10 Gbps 55 m/100 m
DB-9 and DB-25
DB-9 DB-25
ST LC
SC MTRJ
Fiber Connectors
8 Degree Angle
Tx
Full-Duplex Switch 1
Rx
Tx and Rx
Bidirectional Transceiver (BiDi Transceiver) Switch 1
Shared Media
Ethernet
Bus
HUB
AAAA.AAAA.AAAA
Gig 1
Switch
Gig 3
CCCC.CCCC.CCCC
DDDD.DDDD.DDDD
BBBB.BBBB.BBBB
PoE Switch
UPS Power Outlet
Ethernet
Cable
PoE Standards
27837th Street
10.1.2.3
Dotted Decimal
10 1 2 3
Notation
IP Address
00001010 00000001 00000010 00000011
(in binary)
Default Subnet
Address Class Address Range
Mask
A 10.0.0.0 - 10.255.255.255 255.0.0.0
B 172.16.0.0 - 172.31.255.255 255.255.0.0
B 169.254.0.0 - 169.254.255.255 255.255.0.0
C 192.168.0.0 - 192.168.255.255 255.255.255.0
IPv4 Address Assignment,
Verification, and Name
Resolution
Dynamic Host Configuration Protocol (DHCP)
Discover
Offer
Request
192.168.1.100 /24
Acknowledgement
172.16.1.100 /24
Gig 1 192.168.1.1 /24
172.16.1.0 /24
Laptop B
172.16.1.1 /24 DHCP Relay / IP Helper
Switch 2 Gig 2
Router
Discover
DEMO:
IPv4 Address Assignment
(Manual and Dynamic)
Domain Name System (DNS) Services
The IP address of
kwtrain.com is DNS Server
What is the IP 203.0.113.100.
Web Server
address of
Desktop
kwtrain.com?
Computer 192.0.2.10
Internet
SW1 R1 203.0.113.100
198.51.100.26
Hierarchical DNS Structure
root
cs science
DNS Record Types
Record Type Description
A canonical name record is an alias of an existing record, thus allowing multiple DNS records to
CNAME map to the same IP address.
A mail exchange record maps a domain name to an e-mail (or message transfer agent) server for
MX that domain.
A pointer record points to a canonical name. A PTR record is commonly used when performing a
PTR reverse DNS lookup, which is a process used to determine what domain name is associated with a
known IP address.
A start of authority record provides authoritative information about a DNS zone, such as: e-mail
SOA contact information for the zone's administrator, the zone's primary name server, and various
refresh timers.
DNS Record Types
A text record was originally intended to contain descriptive text (for humans to read). However, it’s
TXT most often used to carry various attributes and their values, readable by the requesting computer.
A Service Locator record can be used to specify the IP address of a host providing a specific
SRV service, which is more generic than using an MX record, which points just to an e-mail service.
NS A Name Server record tells a DNS zone to use specific name servers, for security reasons.
Types of IPv4
Communication
Unicast
PC #1 Wants to
10.1.1.1 Receive Video
PC #2 Wants to
10.1.1.2 Receive Video
Video Server
10.1.1.100
PC #1 Wants to
10.1.1.1 Receive Video
PC #2 Wants to
10.1.1.2 Receive Video
Video Server
10.1.1.100
PC #1 Wants to
10.1.1.1 Receive Video
PC #2 Wants to
10.1.1.2 Receive Video
Video Server
10.1.1.100
10.1.2.3
Dotted Decimal
10 1 2 3
Notation
IP Address
00001010 00000001 00000010 00000011
(in binary)
128 64 32 16 8 4 2 1
1 0 0 1 0 1 1 0
128 + 16 + 4 + 2 = 150
Converting Decimal Numbers to Binary
128 64 32 16 8 4 2 1
1
128 64 32 16 8 4 2 1
1 0
128 64 32 16 8 4 2 1
1 0 1
128 64 32 16 8 4 2 1
1 0 1 0
128 64 32 16 8 4 2 1
1 0 1 0 0
128 64 32 16 8 4 2 1
1 0 1 0 0 1
128 64 32 16 8 4 2 1
1 0 1 0 0 1 1
128 64 32 16 8 4 2 1
1 0 1 0 0 1 1 1
128 64 32 16 8 4 2 1
IPv4 Exercise #1
128 64 32 16 8 4 2 1
0 1 1 0 1 0 1 1
64 + 32 + 8 + 2 + 1 = 107
IPv4 Exercise #2
128 64 32 16 8 4 2 1
IPv4 Exercise #2
128 64 32 16 8 4 2 1
0 0 1 1 0 0 0 1
• Is 49 greater than or equal to 128? => No => Put a 0 in the 128
column.
• Is 49 greater than or equal to 64? => No => Put a 0 in the 64
column.
• Is 49 greater than or equal to 32? => Yes => Put a 1 in the 32
column, and subtract 32 from 49 => 49 - 32 = 17
• Is 17 greater than or equal to 16? => Yes => Put a 1 in the 16
column, and subtract 16 from 17 => 17 - 16 = 1
• Is 1 greater than or equal to 8? => No => Put a 0 in the 8 column.
• Is 1 greater than or equal to 4? => No => Put a 0 in the 4 column.
• Is 1 greater than or equal to 2? => No => Put a 0 in the 2 column.
• Is 1 greater than or equal to 1? => Yes => Put a 1 in the 1 column.
Basic Subnetting
IPv4 Subnetting Overview
.1 .2
R1 R2
IPv4 Subnetting Overview
10.1.2.3 /8
IP Address
(Decimal)
10 1 2 3
IP Address
(Binary)
00001010 00000001 00000010 00000011
Subnet Mask
11111111 00000000 00000000 00000000
(Binary)
Subnet Mask
255 0 0 0
(Decimal)
Network Address
(Binary)
00001010 00000000 00000000 00000000
Network Address
(Decimal)
10 0 0 0
The Directed Broadcast Address
10.1.2.3 /8
IP Address
10 1 2 3
(Decimal)
IP Address
(Binary)
00001010 00000001 00000010 00000011
Subnet Mask
(Binary)
11111111 00000000 00000000 00000000
Subnet Mask
(Decimal)
255 0 0 0
Directed Broadcast
Address (Binary)
00001010 11111111 11111111 11111111
Directed Broadcast
Address (Decimal)
10 255 255 255
Review
• IP Address: 10.1.2.3
• Subnet Mask: 255.0.0.0
192 2
224 3
240 4
248 5
252 6
254 7
255 8
Calculating Available Subnets
s
Number of Created Subnets = 2
(where s is the number of borrowed bits)
• Network Class?
•C
Example
• Natural Mask?
• A subnet mask of 255.255.255.224
• /24
is applied to a Class C network of • Subnet Mask?
192.168.1.0 /24. • 255.255.255.224
• How many subnets are created? • /27
• Borrowed Bits?
•3
• Number of Subnets?
3
• 2 =8
Calculating Available Subnets
Why Subtract 2?
• You cannot assign the network address,
where all host bits are set to 0
• You cannot assign the directed broadcast • Number of 1s in Subnet
address, where all the host bits are set to 1 Mask?
• 27
• Host Bits?
Example • 32 - 27 = 5
Host Number of Supported Hosts (2h - 2, To determine how many host bits are
Bits where h is the number of host bits)
2 2
required to accommodate 100 hosts,
3 6 you can write out a table that shows
4 14
the number of hosts supported by a
5 30
6 62 specific number of hosts bits.
7 126
8 254
9 510
10 1022
11 2046
12 4094
Practice Exercise #4
• You want to support 100 hosts.
rd
Count by 1 in the 3 octet.
Calculating Usable IPv4 Address Ranges
What is the interesting octet (the last
octet to contain a 1 in the subnet mask)?
Subnet Mask
11111111.11111111.11111111.00000000
rd
The 3 octet is the interesting octet.
Calculating Usable IPv4 Address Ranges
What is the block size (the number we
count by in the interesting octet)?
172.25.0.0 /24
• Block Size = 256 - Subnet’s Interesting Octet Value
172.25.1.0 /24
• Subnet Mask = 255.255.255.0
172.25.2.0 /24
• Value in the Subnet Mask’s Interesting Octet = 255
…
• Block Size = 256 - 255 = 1
• Count by 1 in 172.25.255.0
the 3rd Octet to/24
Calculate Subnets
Calculating Usable IPv4 Address Ranges
Determine the Directed Broadcast
Address for a Subnet
• Set Host Bits to 0 for a Network Address
• Network Address: 172.25.0.0 /24
Network Address
172 25 0 0
(Decimal)
Network Address 10101100 00011001 00000000 00000000
(Binary)
Subnet Mask
11111111 11111111 11111111 00000000
(Binary)
Directed Broadcast
(Binary) 10101100 00011001 00000000 11111111
Directed Broadcast
172 25 0 255
(Decimal)
Calculating Usable IPv4 Address Ranges
Determine the Usable Range of
Addresses for a Subnet
• Find the first usable IP address by adding a binary 1
to the Network Address
Calculating Usable IPv4 Address Ranges
Determine the Usable Range of
Addresses for a Subnet
• Find the first usable IP address by adding a binary 1
to the Network Address
• Find the last usable IP address by subtracting a binary
1 from the Directed Broadcast Address
Calculating Usable IPv4 Address Ranges
Determine the Usable Range of
Addresses for a Subnet
• Find the first usable IP address by adding a binary 1
to the Network Address
• Find the last usable IP address by subtracting a binary
1 from the Directed Broadcast Address
Practice Exercise #6
You wish to apply a 26-bit subnet
mask to your 192.168.0.0/24
network address space.
• Determine the first subnet, by setting all borrowed bits and host bits to 0.
- 192.168.0.0 /26
Practice Exercise #6
• Determine additional subnets by counting by the block size in the
interesting octet.
- 192.168.0.0
- 192.168.0.64
- 192.168.0.128
- 192.168.0.192
192.168.32.0 /22
Module 3
IPv6 Addressing
IPv6 Address Format
and Communication
IPv6 Address Format
Prefix Host
Length •
•
32 hexadecimal numbers
8 “quartets” of 4 hexadecimal
digits separated by a colon
• No broadcasts
23A0:201A:00B2
23A0:201A :00B2:0000:0000:0000
:0000:0000:0000:0400
:0400:0001
:0001/64
/64
23A0:201A:B2:: 400:1/64 • Omit leading zeros in a quartet.
2000:0000:0000:0000:1234:0000:0000:000B
IPv6 Unicast
PC #1 PC #2
2001::1 2001::2
IPv6 Multicast
PC #1 Wants to
2000::1 Receive Video
Destination IPv6 Address
FF04::10
Multicast Group: FF04::10
PC #2 Wants to
2000::2 Receive Video
Video Server
ISP1
Client
2002::1
SW1 R1
Internet
ISP2
Server 2
3003::1
IPv6 Address Types
IPv6 Global Unicast
Destination IPv6 Address
2001::2
PC #1 PC #2
2001::1 2001::2
PC #2 Receiver
2000::2
Video Server
R1
127 Zeros 1
127 bits 1 bit
• Written as ::1
• Also known as localhost
R1
128 Zeros
128 bits
• Written as ::
• Used for a client’s source address when sending a Neighbor Solicitation message
• Used for a client’s source address when sending a Router Solicitation message
IPv6 Solicited-Node Multicast
• Example: R1’s Gig 0/1 interface has a MAC address of 0015.2BE4.9B60, and that MAC address can be used for the
Prefix/Length, Host, and DNS Server’s IPv6 Address (Learned from DHCPv6 Server)
SW1
PC #1 DHCPv6 Server
R1
Stateless DHCPv6
EUI-64
Address
Used as Host SW1
Address
PC #1 DHCPv6 Server
Prefix/Length (Learned Using NDP)
R1
Homework
CCNA (200-301)
Complete Video Course
Modules 1 - 3
http://bit.ly/ccna-safari
Q&A