Ccna2020 Nogjghhchh
Ccna2020 Nogjghhchh
Notes
Itexampractice.net
1
3/2/2020
Cisco certificates
In 2019 Cisco redesigned all their certification paths.
New exam available
02.2020
06.2019
Changes announced
Cisco certificates
In 2019 Cisco redesigned all their certification paths.
Here are the key points:
✓ No ICND1 / CCENT anymore
✓ No CCNA Security, Wireless, Data Center….
✓ Specialist and Professional certifications
✓ No prerequisites for CCNP certs
✓ New recertification policies
2
3/2/2020
Cisco certificates
✓ CCNA
✓ Specialist
✓ CCNP
✓ CCIE
✓ DevNet
Schedule an exam
http://www.pearsonvue.com/cisco
3
3/2/2020
How to study
✓ Go through all lectures
✓ Focus on basic concepts, subnetting, and labs
✓ Questions are important!
✓ Your own lab:
▪ Simulators, Emulators
▪ Your own lab (Cisco 890/880/860)
▪ Rack rentals
What is a network?
A network can be defined as two or more devices
(e.g. computers, printers, laptops, servers, routers)
that are linked together.
4
3/2/2020
What is a network?
Icons:
What is a network?
Connecting two PCs
We use a Network Interface Card (NIC) and a network cable.
10
5
3/2/2020
✓ Network types
11
Network types
LAN (Local Area Network) – covers a limited area, e.g. one building or one
office. The main network device is a switch.
12
6
3/2/2020
Network types
WAN (Wide Area Network) – covers a large area, connects at least two LANs.
The main network device is a router.
13
✓ Network devices
14
7
3/2/2020
Network devices
Router – connects two or more Local Area Networks (LANs). It is your
gateway and gives you access to the Internet.
A router decides how to route a message.
15
Network devices
Switch – connects devices in a
Local Area Network. It knows very
well where your device is.
It uses a special type of address
called a MAC address.
16
8
3/2/2020
Network devices
17
Network devices
Firewall – a device dedicated to network security, in most cases it is
a router as well and works as an edge device. Might include
additional features like AV, Spam filtering, IPS.
18
9
3/2/2020
Network devices
Access Point – works as a bridge between wireless and wired networks.
Allows you to connect to the network using a wireless card.
19
Network devices
Controller – simplifies admin tasks by centralizing all operations.
We have one device that controls and configures other devices.
Examples: Wireless LAN Controller (WLAN), Cisco DNA
20
10
3/2/2020
Network devices
Other devices
✓ Endpoints
✓ Servers
✓ Printers
✓ Console / Terminal servers
✓ Mobile devices: the BYOD concept
21
✓ IP addresses
22
11
3/2/2020
Default Gateway
– your router
23
24
12
3/2/2020
Commands:
ping
nslookup
25
✓ Communication types
26
13
3/2/2020
27
✓ Topologies
28
14
3/2/2020
29
Leaf switches
Servers
Advantages:
improved redundancy, performance, and scalability.
30
15
3/2/2020
31
32
16
3/2/2020
Console
33
34
17
3/2/2020
35
36
18
3/2/2020
37
✓ Layer 7
✓ Layer 6
✓ Layer 5
38
19
3/2/2020
Examples of protocols:
DHCP, DNS, HTTP, SNMP, FTP, TFTP, SMTP
39
40
20
3/2/2020
41
42
21
3/2/2020
UDP
✓ Connectionless
✓ Unreliable, no acknowledgments
✓ No retransmissions. Best-effort only
✓ Message oriented
✓ Smaller header (8 bytes), faster than TCP
✓ Examples: streaming music and video, VOIP, TFTP, SNMP, DNS
43
44
22
3/2/2020
45
46
23
3/2/2020
Port numbers
Allows a device to identify a service or process.
80 - HTTP
20/21 - FTP
23 – Telnet
25 - SMTP
110 - POP3
443 - HTTPS
3389 - RDP
53 - DNS
47
Port numbers
48
24
3/2/2020
49
IP Addresses
An IP address is used to identify a device on the network. It
has to be a unique address in every local area network.
IPv4 – 32 bits, 4 octets
IPv6 – 128 bits
50
25
3/2/2020
IP Addresses
51
52
26
3/2/2020
MAC Address
A MAC address is assigned to NICs by manufacturers.
48 bits, 12 hex numbers.
MAC addresses are stored in
the CAM table on a switch.
53
ARP
The Address Resolution Protocol (ARP)
Translates IP addresses into MAC addresses
54
27
3/2/2020
ARP
Capture an ARP message using Wireshark
55
56
28
3/2/2020
57
58
29
3/2/2020
59
60
30
3/2/2020
61
62
31
3/2/2020
63
64
32
3/2/2020
65
66
33
3/2/2020
67
✓ TCP/IP vs OSI
✓ Encapsulation
68
34
3/2/2020
TCP/IP vs OSI
69
Encapsulation
70
35
3/2/2020
✓ Challenge!
71
Communication
72
36
3/2/2020
73
Modes:
✓ User Exec Mode
✓ Privileged Mode
✓ Global Configuration Mode
✓ Interface Configuration Mode
74
37
3/2/2020
Hardware
75
Passwords
✓ Enable password
✓ VTY, Console, Aux (Lines)
76
38
3/2/2020
Our Lab:
✓Hostname and Domain Name
✓ IP addresses
✓ Passwords
✓ Telnet and SSH access
✓ Backup G0
10.10.10.111
255.255.255.0
77
78
39
3/2/2020
79
80
40
3/2/2020
Routers use the metric to decide how good a path is. Lower
is better.
If a router is presented with two or more paths to a
destination from two different routing protocols, it uses the
administrative distance to decide which path to use.
81
82
41
3/2/2020
G1 G1 G0 G0
10.10.10.151 10.10.10.152
83
Default route
If a router does not have a more specific route, it will use the
default route to forward a packet.
84
42
3/2/2020
Process switching
Every single packet is analyzed by the router using the CPU.
Fast switching
A router checks the first packet in a flow using the CPU.
85
86
43
3/2/2020
87
88
44
3/2/2020
OSPF
✓ Open standard
✓ Uses Areas to separate the network
✓ The Backbone is Area 0
✓ Triggered updates
✓ Forms neighbors
✓ Supports VLSM and authentication
✓ Uses the SPF algorithm to find paths
✓ Uses multicast 224.0.0.5 (hello packets) and 224.0.0.6 (DR)
✓ CPU intensive
✓Not easy to implement and manage
89
OSPF
90
45
3/2/2020
OSPF
Hello: every 10 seconds, the dead timer: 40 seconds
(for some networks it is 30/120 seconds).
The Link-State Advertisement (LSA) is a special message used by
OSPF routers to build the database table.
Show commands:
show ip ospf neighbor
show ip route
show ip ospf database
show ip ospf
debug ip ospf xxx
91
Passive Interface
ip ospf passive-interface
92
46
3/2/2020
OSPF cost
Metric for OSPF is called the cost.
For example,
a link of 10Mbps is: 100/10 = cost of 10
a link of 100Mbps is 100/100 = cost of 1
93
COST 1
COST 1
100Mbps 100Mbps
COST 10 COST 10
100Mbps 10Mbps 10Mbps 100Mbps
COST 1
The red path= 1+1+1+1 = 4
The green path= 10+10+1 = 22
94
47
3/2/2020
OSPF cost
Wildcard mask
255.255.255.0
10.10.10.151 /24
255.255.255.255
- 255.255.255.0 255.255.255.0 = subnet mask
----------------------------- 0.0.0.255 = Wildcard bits
0.0.0.255
0.0.0.0 = wildcard bits (a single IP)
95
Switching Modes
Store and Forward
A switch has to wait for the whole frame to arrive, perform a CRC and then
forward a frame.
Cut-through
A switch needs the destination MAC address of a frame only (first 6 bytes). Much
faster than Store and Forward.
Fragment-Free
A switch will wait for the first 64 bytes of a frame to make sure the frame is OK.
96
48
3/2/2020
97
98
49
3/2/2020
99
100
50
3/2/2020
101
102
51
3/2/2020
Native VLAN
If your switch receives a frame with no VLAN information, it
assumes this frame belongs to the Native VLAN.
Switches do not tag frames that belong to the native VLAN.
103
104
52
3/2/2020
Inter-VLAN Routing
105
R1: 10.10.10.151
R1 R2: 10.10.10.152
What about the default Gateway for our PC?
R2
106
53
3/2/2020
107
108
54
3/2/2020
109
Port states:
110
55
3/2/2020
111
F0/11 G0/2
MAC
00eb.9038.edfd
F0/11 G0/2
MAC
001b.9038.edfd
112
56
3/2/2020
113
Protocols:
PAgP (Cisco proprietary)
LACP (IEEE standard)
PAgP Modes: ON, DESIRABLE, AUTO
LACP Modes: ON, ACTIVE, PASSIVE
114
57
3/2/2020
Port Security
Lock down your switch and make sure that nobody can
connect a hub, SOHO router or another PC!
switchport port-security
show port-security interface xxx
115
Port Security
Violation modes:
✓ Shutdown (the default option)
✓ Protect
✓ Restrict
116
58
3/2/2020
Types:
✓ Standard (1-99)
(based on a source address only)
✓ Extended (100-199)
(based on source and destination addresses and protocol)
117
118
59
3/2/2020
119
120
60
3/2/2020
121
Types of NAT
Static NAT (1-to-1)
Maps a single private IP address to a single
public IP address.
Dynamic NAT
Maps private IP addresses to a pool of public IP
addresses.
Port Address Translation (PAT, NAT overload)
Maps private IP addresses using a single public
IP.
122
61
3/2/2020
L0 G0
Internet
192.168.1.0/24 R1 10.10.10.111
123
RDP to PC1
G0
PC1 Internet
R1 10.10.10.111 PC2
VLAN1
.111 192.168.9.0/24
124
62
3/2/2020
IP Services
Network Time Protocol (NTP)
Allows your router to sync time and date. Your router can be
an NTP client or server. You can also sync with some public
NTP servers.
Router(config)# ip nameserver x.x.x.x
Router(config)# ntp server x.x.x.x
125
126
63
3/2/2020
Syslog
Level Name Description Syslog
0 emergencies Unstable operations LOG_EMERG
1 alerts Immediate action needed LOG_ALERT
2 critical Critical conditions LOG_CRIT
3 errors Error conditions LOG_ERR
4 warnings Warning conditions LOG_WARNING
5 notifications Normal but significant problem LOG_NOTICE
6 informational Informational messages LOG_INFO
7 debugging Debugging messages LOG_DEBUG
127
SNMP
The Simple Network Management Protocol is used to
monitor remote devices and receive alerts.
128
64
3/2/2020
SNMP
Versions:
✓ SNMP version 1
✓ SNMP version 2c
✓ SNMP version 3
SNMPv3
noAuthNoPriv – Username, no encryption
authNoPriv – MD5 or SHA1 authentication, no encryption
authPriv – MD5 or SHA1 authentication, encryption
129
130
65
3/2/2020
131
2001:AAAA:0000:0000:0000:0000:1234:0001
132
66
3/2/2020
IP address:
ipv6 address 2001:::1/64
OSPFv3:
ipv6 router ospf 1
router-id 1.1.1.1
ipv6 enable
ipv6 ospf 1 area 0
133
Overview
IEEE 802.11 – describes wireless standards
134
67
3/2/2020
Overview
135
Overview
Channels
Clear Channel Assessment (CCA)
2.4Ghz – 1,6,11 are non-overlapping channels.
Use 5Ghz if possible (more non-overlapping channels).
136
68
3/2/2020
Security
WEP
TKIP (WPA)
AES (WPA2)
137
Security
WPA3
✓Larger Session Key Sizes
✓Simultaneous Authentication of Equals (SAE) replacing the Pre-Shared Key (PSK)
✓ Brute-force prevention
✓ Individual Data Encryption for open networks
✓ Dragonfly Handshake (improved handshake)
✓Uses the forward secrecy concepts (known as PFS)
138
69
3/2/2020
APs
Standalone (autonomous) vs controller-based (Wireless LAN Controller - WLC)
Advantages of WLCs:
- Centralized configuration
- Security
- Roaming
- Optional features
139
Security concepts
✓AAA (authentication, authorization, and accounting)
✓Threats and vulnerabilities
✓ Kali Linux as an excellent platform to learn ethical hacking
140
70
3/2/2020
VPNs
141
Vectors
An attack vector describes a path someone can use to gain access to
a computer system.
142
71
3/2/2020
DHCP Snooping
We do not want to allow arogue DHCP server start offering IP
addresses to DHCP clients
Rogue DHCP
DHCP Server
Switch(config)#ip dhcp snooping
Switch(config)# interface f0/1
Switch(config-if)#ip dhcp snooping trust
143
192.168.1.4
CCC
192.168.1.1
AAAA
192.168.1.3
BBB
Arp –a Arp –a
192.168.1.1 AAA 192.168.1.1 CCC
144
72
3/2/2020
ARP inspection
Dynamic ARP Inspection (DAI) validates all ARP packets and
protects you against a man-in-the-middle attack.
145
146
73
3/2/2020
CRUD/HTTP
Action HTTP
Create PUT / POST
Read (Retrieve) GET
Update POST / PUT / PATCH
Delete DELETE
147
Examples:
VMware
Hyper-V
Oracle VirtualBox
148
74
3/2/2020
149
75