Professional Documents
Culture Documents
Introduction to Routing
and Packet Forwarding
CCNA2-1
Chapter 1
CCNA2-2
Chapter 1
2811 Router
Chapter 1
CCNA2-3
Chapter 1
CCNA2-5
Router
Routers Primary Responsibilities:
Determine the best path to send packets.
Forward the packets out the correct interface.
CCNA2-6
Chapter 1
CCNA2-7
L2
IP TCP
DATA
L2
IP
IP TCP
DATA
The frame is
encapsulated and
forwarded out port
Serial0/0/0.
Chapter 1
CCNA2-9
L2
IP
IP TCP
DATA
L2
The frame is
encapsulated and
forwarded out port
FastEthernet0/0.
Chapter 1
Chapter 1
CCNA2-11
Chapter 1
Chapter 1
CCNA2-13
CCNA2-14
Chapter 1
Chapter 1
CCNA2-15
Chapter 1
Chapter 1
CCNA2-17
1. Perform POST
ROM
CCNA2-18
Chapter 1
2. Load Bootstrap
ROM
Chapter 1
CCNA2-19
3. Locate IOS
Flash
TFTP Server
Chapter 1
5. Locate the
Configuration File
NVRAM
TFTP Server
Console
Step 5: Locating the Configuration File
The bootstrap program searches for the previously
saved configuration commands (startup configuration
file), in NVRAM.
If there is no startup configuration,
configuration, the program
searches for a TFTP server.
If a TFTP server cannot be found,
found, the router will
accept input from the Console.
Chapter 1
CCNA2-21
5. Locate the
Configuration File
NVRAM
TFTP Server
Console
Step 5: Locating the Configuration File
If you boot a router that has no startstart-up configuration
file and the WAN links are connected, the router will
broadcast out the WAN interface looking for a TFTP
server (SLARP).
(SLARP).
%Error opening tftp://255.255.255.255/networktftp://255.255.255.255/network-config
(Timed out)
Chapter 1
CCNA2-23
1. Perform POST
ROM
Bootstrap
2. Load Bootstrap
ROM
Cisco IOS
3. Locate IOS
Flash
4. Load IOS
Configuration
5. Locate the
Configuration File
6. Execute the
Configuration File
or enter Setup
mode.
CCNA2-24
TFTP Server
NVRAM
TFTP Server
Console
Chapter 1
Chapter 1
CCNA2-25
Router Interfaces
Port:
Normally means one of the management ports used for
administrative access.
Interface:
Normally refers to interfaces that are capable of sending
and receiving user traffic.
However, these terms are often used interchangeably in the
industry and even with IOS output.
CCNA2-26
Chapter 1
Router Interfaces
Console
Auxiliary
Console Port:
Used to connect a terminal or most likely a PC running
terminal emulator software,
Must be used during initial configuration of the router.
Auxiliary (AUX) Port:
Not all routers have auxiliary ports.
At times, can be used similarly to a console port and can
also be used to attach a modem.
Chapter 1
CCNA2-27
Router Interfaces
Ethernet
Serial
An interface on Cisco routers refers to a physical connector
on the router whose main purpose is to receive and forward
packets.
Routers have multiple interfaces used to connect to multiple
networks.
Various types of networks.
Different types of media and connectors.
Different types of interfaces.
CCNA2-28
Chapter 1
Router Interfaces
Every Interface on a router:
- Belongs to a different network
- Is a host on a different network
- Has an IP address on a different
network
CCNA2-29
Chapter 1
Chapter 1
CCNA2-31
Chapter 1
CCNA2-33
Chapter 1
CLI Configuration
and Addressing
Chapter 1
CCNA2-35
Device
Interface
IP Address
Subnet Mask
Default
Gateway
Fa0/0
192.168.1.1
255.255.255.0
N/A
S0/0/0
192.168.2.1
255.255.255.0
N/A
Fa0/0
192.168.3.1
255.255.255.0
N/A
S0/0/0
192.168.2.2
255.255.255.0
N/A
PC1
N/A
192.168.1.10
255.255.255.0
192.168.1.1
PC2
N/A
192.168.3.10
255.255.255.0
192.168.3.1
R1
R2
CCNA2-36
Chapter 1
Chapter 1
CCNA2-37
CCNA2-38
Chapter 1
Chapter 1
CCNA2-39
Chapter 1
CCNA2-41
CCNA2-42
Chapter 1
CCNA2-43
show
show
show
show
runningrunning-config
ip route
ip interface brief
interfaces
CCNA2-44
Chapter 1
Device
Interface
IP Address
Subnet Mask
Default
Gateway
Fa0/0
192.168.1.1
255.255.255.0
N/A
S0/0/0
192.168.2.1
255.255.255.0
N/A
Fa0/0
192.168.3.1
255.255.255.0
N/A
S0/0/0
192.168.2.2
255.255.255.0
N/A
PC1
N/A
192.168.1.10
255.255.255.0
192.168.1.1
PC2
N/A
192.168.3.10
255.255.255.0
192.168.3.1
R1
R2
Chapter 1
CCNA2-45
CCNA2-46
Chapter 1
Chapter 1
CCNA2-47
Configure Passwords:
R1(config)#line
R1(config)#line console 0
R1(configR1(config-line)#password
line)#password cisco
R1(configR1(config-line)#login
line)#login
R1(config)#line
R1(config)#line vty 0 4
R1(configR1(config-line)#password
line)#password cisco
R1(configR1(config-line)#login
line)#login
R1(configR1(config-line)#exit
line)#exit
CCNA2-48
Chapter 1
Chapter 1
CCNA2-49
CCNA2-50
Chapter 1
Chapter 1
CCNA2-51
Chapter 1
CCNA2-53
Chapter 1
FastEthernet0/0
C
192.168.2.0/24 is directly connected,
Serial0/0/0 Chapter 1
CCNA2-55
CCNA2-56
Chapter 1
Chapter 1
CCNA2-57
CCNA2-58
Chapter 1
CCNA2-59
Codes:
Indicate how the route was
learned.
Chapter 1
CCNA2-60
Exit Interface
Chapter 1
CCNA2-61
CCNA2-62
Chapter 1
Static Routing
CCNA2-63
Dynamic Routing
Chapter 1
Dynamic Routing
Chapter 1
CCNA2-65
Chapter 1
R2 forwards the
packet to R3.
R3 forwards the
packet to PC2.
CCNA2-67
Asymmetric Routing
Chapter 1
Path Determination
and Switching Functions
Chapter 1
CCNA2-69
Layer 3 addresses:
Source Address: Source host address
Destination Address: Destination host address
Does not change during the forwarding of the data.
CCNA2-70
Chapter 1
Layer 2 addresses:
Source address: Sending interface.
Destination address: Destination interface.
InterfaceInterface-toto-Interface on the same network.
Changes from network to network.
Chapter 1
CCNA2-71
CCNA2-72
Chapter 1
CCNA2-73
Using OSPF:
Based on the bandwidth, the
packet will be forwarded from
R1
to R2 to R3. More hops, but
faster lines.
CCNA2-74
Chapter 1
CCNA2-75
Packet Forwarding
Two Functions:
Path Determination
Switching
CCNA2-76
Chapter 1
Path Determination
The process of how the router determines which path to use
when forwarding a packet.
The router searches its routing table for a network
address that matches the packet
packets destination network.
One of three path determinations results from this search.
Directly connected network.
Remote network.
No route determined.
Chapter 1
CCNA2-77
Path Determination
CCNA2-78
Chapter 1
Path Determination
Remote Network:
R1 receives a packet from PC1 whose ultimate
destination is PC2.
R1 looks in the routing table and determines that the path
to the destination network is via its WAN port.
The packet is forwarded to another router. Remote
networks can only be reached by forwarding packets to
another router.
Chapter 1
CCNA2-79
Path Determination
?
No Route Determined:
R1 receives a packet from PC1 whose ultimate
destination is PC2.
R1 looks in the routing table and cannot find a path to a
directly connected network or remote network.
If the router does not have a default route, the packet is
discarded. The router sends an Internet Control Message
Protocol (ICMP) Unreachable message to the source IP
address of the packet.
CCNA2-80
Chapter 1
Switching Function
Host X sends a packet to Host Y.
A router generally relays a packet
from one data link to another, using
Remember:
two basic functions:
Two addresses are needed to
a from
path determination
move a packet
the source to function
Routing
the destination.
a switching function
MAC Address
Packet Forwarding
IP Address
Let
Lets go through all of the stages
these routers use to route and
switch this packet.
Chapter 1
CCNA2-81
Switching Function
Layer 2
Destination
Layer 2
Source
A111
H111
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
A111
H111
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
CCNA2-83
Switching Function
Layer 2
Destination
Layer 2
Source
A111
H111
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
CCNA2-84
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
A111
B111
H111
A222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
192.168.1.10
192.168.4.10
Chapter 1
CCNA2-85
Switching Function
Layer 2
Destination
Layer 2
Source
B111
A222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
B111
A222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
CCNA2-87
Switching Function
Layer 2
Destination
Layer 2
Source
B111
A222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
B111
A222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
CCNA2-89
Switching Function
Layer 2
Destination
Layer 2
Source
B111
FFFF
A222
B222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
192.168.1.10
192.168.4.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
FFFF
B222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
CCNA2-91
Switching Function
Layer 2
Destination
Layer 2
Source
FFFF
B222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
FFFF
B222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
CCNA2-93
Switching Function
Layer 2
Destination
Layer 2
Source
FFFF
H222
B222
C222
Layer 3
Destination
Layer 3
Source
192.168.4.10 192.168.1.10
192.168.1.10
192.168.4.10
Chapter 1
Switching Function
Layer 2
Destination
Layer 2
Source
Layer 3
Destination
Layer 3
Source
Host X to
Router A
A111
H111
192.168.4.10
192.168.1.10
Router A to
Router B
B111
A222
192.168.4.10
192.168.1.10
Router B to
Router C
FFFF
B222
192.168.4.10
192.168.1.10
Router C to
Host Y
H222
C222
192.168.4.10
192.168.1.10
Step
Chapter 1