Icnd1 Cram
Icnd1 Cram
Icnd1 Cram
(100-101)
The Ultimate Cram Guide
Warning
You need to know everything on this video before you attempt the exam.
This cram guide is NOT a replacement for studying and doing lots of labs.
How to...
Stop the video as required
Print the slides (members only)
OSI/TCP Model
Layer
Purpose
Data
Applications
TCP
7. Application
Establishes resources.
Data
Application
Data
MP3, MP4
Application
5. Session
Establishes sessions.
Data
SQL, NFS
Application
4. Transport
Data delivery.
Segment TCP/UDP
Host-to-host
3. Network
Packet
IP/RIP
Internetwork
2. Data Link
MAC address/error
detection.
Frame
1. Physical
Bits
Cables &
devices
Network
Interface
TCP (updated)
Application
Presentation
Session
Transport
Transport
Network
Network
Data Link
Data Link
Physical
Physical
www.in60days.net
Copyright Paul
Browing
2013 Some People Fry Bacon
All People Seem To Need Data
Processing
Dont
Common Ports
Port
Service
Port
Service
20
21
22
23
25
53
69
FTP Data
FTP Control
SSH
Telnet
SMTP
DNS
TFTP
80
110
119
123
143
161/162
443
HTTP
POP3
NNTP
NTP
IMAP
SNMP
HTTPS
TCP/IP
TCP
Protocol 6
UDP
Protocol 17
FTP
TCP 20/21
TFTP
UDP 69
SNMP
UDP 161/162
ICMP
Protocol 1
ARP
Network
protocol
DNS
UDP 53
DHCP
UDP 67/68
Configure DHCP
Router(config)#ip dhcp pool NAME_DHCP_Pool
Router(dhcp-config)#network 10.10.10.0 255.255.255.0
Router(dhcp-config)#dns-server 24.196.64.39 24.196.64.40
Router(dhcp-config)#domain-name mydomain.com
Router(dhcp-config)#default-router 10.10.10.254
Router(dhcp-config)#lease 1
Router Modes
Mode
User exec
Privileged exec
Global config
ROM monitor
Set Up
Prompt
Router>
Router#
Router(config)#
rommon>
[series of questions]
RXBoot
Router<boot>
www.in60days.net Copyright Paul Browing 2013
Keyboard Shortcuts
Ctrl+W
Erases a word
Ctrl+P (up
arrow)
Recall last
command
Ctrl+U
Erases a line
Ctrl+N
Recall next
command
Ctrl+A
Esc+B
Ctrl+E
Curser to end of
line
Esc+F
Forward one
word
Ctrl+F (right
arrow)
Forward one
character
Tab
Finish the
command
Ctrl+B (left
arrow)
Wiped on power
down
Rommon mode
Start up config
Default value
0x2102 (0x2142
skips startup
config)
Cabling
Hub
Switch
Router
PC
Hub
Crossover
Crossover
Straight
Straight
Switch
Crossover
Crossover
Straight
Straight
Router
Straight
Straight
Crossover
Crossover
PC
Straight
Straight
Crossover
Crossover
Straight Cable
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
Rollover Cable
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
8
7
6
5
4
3
2
1
VTY
TFTP
NMS
LAN Switch
1.
2.
3.
Transmitting Frames
Store-and-Forward Copies entire frame into buffer, checks CRC.
High latency
Cut-Through
Reads only destination address and
forwards frame. Lowest latency.
Fragment-Free
Switch reads first 64 bytes of frame.
(Or)
Switch(config)#spanning-tree vlan 2010 root primary
Port Security
Protects switch ports
Can permit static mac address(es)
Violation action is shutdown/protect/restrict
Restrict interface so only expected devices can be connected
Port security identifies devices based on MAC address
Port security is enabled on switch ports with different settings
available per port
Each port can be defined with maximum allowed MAC address
www.in60days.net Copyright Paul Browing 2013
Mode
Port Action
Traffic
Syslog
Violation
Counter
Protect
Protected
No
No
Shutdown
Errdisabled
Disabled
Incremented
Restrict
Open
Incremented
VLANs
Logically divide your LAN
Cuts down broadcast domains
Improves security
Easier admin
VLAN info goes over trunk links
Configure a VLAN
F0/0
F1/0
F2/0
F3/0
Switch(config)#vlan 2
Switch(config)#interface fast1/0
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#interface fast3/0
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
www.in60days.net Copyright Paul Browing 2013
Access ports
Trunk ports
www.in60days.net Copyright Paul Browing 2013
Configure a Trunk/Access
port
Trunk link required to pass VLAN info across
switches
Encapsulation either ISL or 802.1q (default on
2950 switch)
Link usually needs to be at least 100Mbps but
usually 1000Mbps (can be 10Mbps!!)
Access port
Trunk port
Switch1(config)#vlan 5
Switch1(config)#interface fast0/1
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#interface fast0/15
Switch1(config-if)#switchport mode trunk
www.in60days.net Copyright Paul Browing 2013
Switch1(config-if)#switchport
trunk encapsulation isl
Switch Commands
Switch(config)#vlan 2 (creates VLAN 2)
Switch(config-vlan)#name SALES (names VLAN)
Switch(config)#interface fast 0/1
Switch(config-if)#switchport access vlan 2 (puts interface into VLAN 2)
Switch(config-if)#switchport mode trunk (sets interface to trunk)
Switch(config)#vtp mode transparent/client/server (sets switch mode)
Switch(config)#vtp domain howtonetwork.net (sets VTP domain name)
Switch(config)#spanning-tree portfast (sets portfast) Switch(config)#ip defaultgateway 192.168.1.1 (switch default gateway)
DTP
Tries to negotiate the port to become a trunk
Always on unless you manually turn off
Switch1(config)#intf0/2
Switch1(config-if)#switchportnonegotiate
Command rejected: Conflict between 'nonegotiate' and 'dynamic'
status.
Switch1(config-if)#switchportmode trunk
Switch1(config-if)#switchport nonegotiate
Switch1(config-if)#
Auto = become a trunk if the other end is a trunk or set to desirable (passive)
Desirable = attempt to become a trunk (active)
Auto/Auto = no trunk. Must at least have one end as desirable or manually set to trunk
www.in60days.net Copyright Paul Browing 2013
IP Addressing
Class
255.255.255.0 110
192-223
NA
1110
224-239
NA
11110
240-255
Mask
2,097152 254
Subnets
BITS
128
64
32
16
128
192
224
240
248
252
254
255
2-2
4
8
16
32
Easy Subnetting
1. Change the slash number to subnet mask
2. Tick down and across the chart
3. Count up increments to get correct subnet
BITS
128
64
32
16
Subne
ts
128
192
224
240
248
252
254
255
www.in60days.net Copyright Paul Browing 2013
Next Steps
172.16.100.11
172.16.0.0
172.16.32.0
172.16.64.0
172.16.96.0*
172.16.128.0
www.in60days.net Copyright Paul Browing 2013
172.16.96.0
Our subnet
172.16.96.1
172.16.127.254
172.16.127.255
VLSM
Lets you chop your network into subnets
200.100.100.0 /24
Change mask from /24 to /25 Now you get:
Original mask (last octet) 00000000 1 Subnet 254 hosts
New mask (subnet 1) 00000000 200.100.100.0 - subnet 1 126 hosts
New mask (subnet 2) 10000000 200.100.100.128 - subnet 2 126 hosts
www.in60days.net Copyright Paul Browing 2013
Route Summarization
Find the common bits and advertise this.
172.16.8.0 10101100.00010000.00001000.00000000
172.16.9.0 10101100.00010000.00001001.00000000
172.16.10.0 10101100.00010000.00001010.00000000
172.16.11.0 10101100.00010000.00001011.00000000
172.16.12.0 10101100.00010000.00001100.00000000
172.16.13.0 10101100.00010000.00001101.00000000
172.16.14.0 10101100.00010000.00001110.00000000
172.16.15.0 10101100.00010000.00001111.00000000
Matching Bits 10101100.00010000.00001 = 21 bits
Advertise - 172.16.8.0
255.255.248.0
Router
Packet forwarding on route lookup.
Maintaining routing table
Never forwards broadcast
Routes learned :
Connected routes
Static routes
Routing protocols (dynamic routing)
www.in60days.net Copyright Paul Browing 2013
Routing Protocol
Types of protocol :
Routed protocol
It moves data from the best path like IP, IPX and appletalk.
Routing protocol
It finds the best route to the destination.
Administrative Distances
Directly Connected
Interface
Static Hop
EIGRP Summary
ISIS
1
5
RIP
120
Exterior Gateway Protocol (EGP) 140
External BGP
EIGRP (Internal)
OSPF
20
90
110
External EIGRP
Internal BGP
Unknown
115
170
200
255
Static Routing
Use if only a handful of routes
Useful for stub networks (only one way in and out)
Destination network/mask next hop/interface
ip route 172.16.5.0 255.255.255.0 172.16.12.8
ip route 172.16.5.0 255.255.255.0 serial 0/0
Uses IP protocol 89
Classless
Uses Dijkstras shortest path first algorithm (SPF)
Router ID is the highest IP address
But loopback address is used as ID if present
Backbone area is area 0
All non backbone areas must connect directly to area 0
Areas can be numbered from 0 to 65535
Multicasts on 224.0.0.5
OSPF uses cost as a metric (108/bandwidth)
www.in60days.net Copyright Paul Browing 2013
Configure OSPF
R1(config)#router ospf 20
R1(config-router)#network 172.16.0.0 0.0.255.255 area 0
Inter-vlan routing
-Using a layer 3 switch or
-Router, with a VLAN trunk connecting switch.
fa0/0.10
fa0/0.20
fa0/1
Trunk port
Source IP
Destination IP
Source port
Destination port
1-99 IP standard
1300-1999 IP standard (expanded range)
100-199 IP extended
2000-2699 IP extended (expanded range)
172.16.1.1/26
EXTENDED ACL Router A
192.168.1.1/26
Web Server
192.168.1.1/26
Web Server
172.16.1.1/26
NAMED ACL Router A
interface serial 0/0
ip access-list blockweb in
!
ip access-list extended blockweb
permit tcp host 192.168.1.1 host 172.16.1.1 eq 80
Wildcard Masks
Used for access lists and routing
Take the subnet away from 255
255
Subnet 255
Equals 0
255
255
0
255
224
31
255
0
255
Static NAT
192.168.1.1
200.1.1.1
200.1.1.1-10
PAT
192.168.1.0/26
200.1.1.1-10
disp
1.2
CEF Components
VTP-Server-1(config)#ip cef
VTP-Server-1(config)#exit
IPv6
128 bit address in 8 parts (each 16 hex bits)
EEDE:AC89:4323:5445:FE32:BB78:7856:2022
Uses multicast/anycast/unicast (no broadcasts)
Use with IPv4 using tunnelling or dual stack
Transition from IPv4 with Static, 6to4, Automatic, ISATAP, GRE
Complete Representation
Compressed Representation
0000:0000:0000:0000:0000:0000:0000:0001
::0001
2001:0000:0000:1234:0000:5678:af23:bcd5
2001::1234:0000:5678:af23:bcd5
3FFF:0000:0000:1010:1A2B:5000:0B00:DE0F
3FFF::1010:1A2B:5000:0B00:DE0F
FEC0:2004:AB10:00CD:1234:0000:0000:6789
FEC0:2004:AB10:00CD:1234::6789
0000:0000:0000:0000:0000:FFFF: 172.16.255.1
::FFFF: 172.16.255.1
0000:0000:0000:0000:0000:0000:172.16.255.1
::172.16.255.1
0000:0000:0000:0000:0000:0000:0000:0000
::
Compression Method 2
Omit leading zeros
Complete IPv6 Address Representation
0000:0123:0abc:0000:04b0:0678:f000:0001
0:123:abc:0:4b0:678:f000:1
2001:0000:0000:1234:0000:5678:af23:bcd5
2001:0:0:1234:0:5678:af23:bcd5
3FFF:0000:0000:1010:1A2B:5000:0B00:DE0F
3FFF:0:0:1010:1A2B:5000:B00:DE0F
fec0:2004:ab10:00cd:1234:0000:0000:6789
fec0:2004:ab10:cd:1234:0:0:6789
0000:0000:0000:0000:0000:FFFF:172.16.255.1
0:0:0:0:0:FFFF: 172.16.255.1
0000:0000:0000:0000:0000:0000:172.16.255.1 0:0:0:0:0:0:172.16.255.1
0000:0000:0000:0000:0000:0000:0000:0000
0:0:0:0:0:0:0:0
IPv6 routing
Using Static routes
Router(config)# ipv6 route 2001:fa8:1231:1::/64 2001:cc8:1789:2::2
Using OSPF v3
ipv6 unicast-routing
!
ipv6 router ospf 2
router-id 1.1.1.1
!
interface serial0/0/1
ipv6 address 2001:fa8:1231:1::1
ipv6 ospf 2 area 0
!
interface GigabitEthernet0/0
ipv6 address 2001:cd8:1711:1::2
ipv6 ospf 2 area