Professional Documents
Culture Documents
2
Note
This chapter contains mostly introductory material.
Most of not all of this information will be explained in more detail
in later chapters or later courses.
The bootup process and the IOS are examined in a later
course.
Do not worry or focus too much on the details for now.
This will all be examined and explained in the following chapters.
3
For further information
This presentation is an
overview of what is
covered in the
curriculum/book.
For further explanation
and details, please read
the chapter/curriculum.
Book:
Routing Protocols
and Concepts
By Rick Graziani and
Allan Johnson
ISBN: 1-58713-206-0
ISBN-13: 978-58713-
206-3
4
Topics CLI Configuration and
Addressing
Inside the Router Implementing Basic
Routers are computers Addressing Schemes
Router CPU and Memory Basic Router
Internetwork Operating
Configuration
System
Router Bootup Process Building the Routing Table
Router Ports and Interfaces Introducing the Routing
Routers and the Network Table
Layer Directly Connected
Path Determination and Networks
Switching Function
Packet Fields and Frame Static Routing
Formats Dynamic Routing
Best Path and Metrics Routing Table Principles
Equal Cost Load Balancing
Path Determination
Switching Function
5
Inside the Router
Routers are computers
Router CPU and Memory
Internetwork Operating System
Router Bootup Process
Router Ports and Interfaces
Routers and the Network Layer
Routers are Computers
A router is a computer:
CPU, RAM, ROM, Operating System
The first router: used for the Advanced Research Projects Agency
Network (ARPANET):
IMP (Interface Message Processor)
Honeywell 516 minicomputer that brought the ARPANET to life
on August 30, 1969. 7
Routers forwarding packets (packet switching):
From the original source to the final destination.
Selects best path based on destination IP address
A router connects multiple networks:
Interfaces on different IP networks
8
Router interfaces:
LAN
WAN
9
Routers Determine the Best Path
10
Routers Determine the Best Path
Routing table
Determines best path.
Best match between destination IP address and network
11
address in routing table
Router
CPU and
Memory
13
Cisco IOS - Internetwork
Operating System
15
Bootup Process
16
Where is the permanent configuration file stored used during boot-up? NVRAM
Where is the diagnostics software stored executed by hardware modules? ROM
Where is the backup (partial) copy of the IOS stored? ROM
Where is IOS permanently stored before it is copied into RAM? FLASH
Where are the bootsystem commands stored which are used to locate NVRAM
the IOS?
19
Router Boot Process –
Details (later)
1. ROM
1. POST
2. Bootstrap code executed
3. Check Configuration Register value (NVRAM)
0 = ROM Monitor mode
1 = ROM IOS
2 - 15 = startup-config in NVRAM
3. Locate and load IOS, Default fallback sequence: No IOS boot system commands in startup-config
a. Flash (sequential)
b. TFTP server (netboot) - The router uses the configuration register value to form a filename from
which to boot a default system image stored on a network server.
c. ROM (partial IOS) or keep retrying TFTP depending upon router model
- If no IOS located, get partial IOS version from ROM
21
Ports and Interfaces
Console port
Terminal
PC running terminal emulator software
No need for network access
Used for initial configuration
29
Path Determination and
Switching Functions
Packet Fields and Frame Formats
Best Path and Metrics
Equal Cost Load Balancing
Path Determination
Switching Function
Path Determination and Switching Functions
The following sections focus on exactly what happens to data as it
moves from source to destination.
Review the packet and frame field specifications
Discuss in detail how the frame fields change from hop to hop,
whereas the packet fields remain unchanged
31
Ethernet Frame IPv4 (Internet
Protocol)
Layer 2 addresses:
Interface-to-Interface on the same network.
Changes as packet is decapsulated and encapsulated from
network to network
Layer 3 addresses:
Original source layer 3 address (IP)
Final destination layer 3 address (IP)
Does not change (except with NAT, but this is not a concern of
IP but an internal network process) 32
Best Path
1.5 Mbps
1.5 Mbps
Equal Cost ?
Load ?
Balancing
192.168.1.0/24
35
T1
Equal-Cost Paths
Versus Unequal- T3
Cost Paths
192.168.1.0/24
37
Path Forwarding Router receives packet.
Destination IP address matches a network on one
of its directly connected networks.
Packet is forwarded out
that network.
Directly connected
network
Remote
network
No route
determined
Does
Paththis mean the network does not
determination function is the process of how the router determines
exist?
which path to use when forwarding a packet.
To determine the best path, the router searches its routing table for a
No, only address
network that thethatrouter
matchesdoes not know
the packet’s destination IP address.
about
One ofthat
threenetwork. (later) results from this search:
path determinations
Directly connected network
Remote network
No route determined 40
Path Forwarding
Path
Forwarding
192.168.1.10
What does a router do with a packet received from one network and destined for another
network?
1. Decapsulates the Layer 3 packet by removing the Layer 2 frame header and trailer
2. Examines the destination IP address of the IP packet to find the best path in the
routing table
3. Encapsulates the Layer 3 packet into a new Layer 2 frame and forwards the frame
out the exit interface 42
Remember: Encapsulation
These addresses
do not change!
43
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC
MAC Source Add
MAC Type Dest. IP Source IP IP Data Trailer
0B-31
FF-FF
00-10 0A-10
00-20 800 192.168.4.10 192.168.1.10 fields
44
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC Source MAC Type Dest. IP Source IP IP Data Trailer
00-10 0A-10 800 192.168.4.10 192.168.1.10 fields
45
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC Source
Source MAC
MAC Type
Type Dest. IP Source IP IP Data Trailer
Trailer
0B-31
00-10 00-20
0A-10 800
800 192.168.4.10 192.168.1.10 fields
46
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC
Add Source MAC
Add Type Dest. IP Source IP IP Data Trailer
FF-FF
0B-31 00-20 800 192.168.4.10 192.168.1.10 fields
47
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC Source
SourceAdd
MAC Type
Type Dest. IP Source IP IP Data Trailer
FF-FF
0B-20 0C-22 800
800 192.168.4.10 192.168.1.10 fields
RTC
1. RTC copies in the data link (serial, PPP) frame.
2. RTC sees the Type field is 0x800, IP packet in the data field, a packet which needs to be routed.
3. RTC strips off the data link, serial, frame.
RTC looks up the Destination IP Address in its routing table.
RTC realizes that this Destination IP Address is on the same network as one of its interfaces and it can sent the packet
directly to the destination and not another router.
Since the exit interface is on an directly connected Ethernet network, RTC must resolve the destination ip address
with a destination MAC address.
2. RTC looks up the destination ip address of 192.168.4.10 in its ARP cache.
If the entry was not in the ARP cache, the RTC would need to send an ARP request out e0. Host Y would send back
an ARP reply, so RTC can update its ARP cache with an entry for 192.168.4.10.
5. Packet is encapsulated into a new data link (Ethernet) frame and sent out the interface.
48
Layer 2 Data Link Frame Layer 3 IP Packet
Dest. MAC Source MAC Type Dest. IP Source IP IP Data Trailer
0B-20 0C-22 800 192.168.4.10 192.168.1.10 fields
Host Y
Layer 3: IP Packet
4. Host Y’s IP process examines the Destination IP Address to make sure it matches its own IP
Address..
If it does not, the packet will be dropped.
5. The packet’s protocol field is examined to see where to send the data portion of this IP packet: TCP,
UDP or other?
49
Layer 2 Data Link Frame Layer 3 IP Packet
Dest.
Dest.Add
MAC
MAC Source Add
MAC Type Dest. IP Source IP IP Data Trailer
0B-31
FF-FF
00-10 0A-10
00-20 800 192.168.4.10 192.168.1.10 fields
50
CLI Configuration and
Addressing
Implementing Basic Addressing Schemes
Basic Router Configuration
Learning IOS: Lab 1.5.2 (Cabrillo College Version)
52
Networking Lab NetLab Packet Tracer
Establishing a HyperTerminal session (next week)
Router
Console port
Terminal or a
PC with
Rollover cable
terminal
emulation
software
Take the following steps to connect a terminal to the console port on the router:
Connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to DB-9 or
RJ-45 to DB-25 adapter.
Configure the terminal or PC terminal emulation software for 9600 baud, 8 data bits,
no parity, 1 stop bit, and no flow control.
53
Establishing a Terminal session
Tera Term
HyperTerminal (comes with Windows)
Putty
What cable and ports do you use? PC: Serial port & Router: Console Port
Rollover or Console Cable
Terminal Connection
No network connection needed Console Port
Serial
55
C:\> ping
C:\> telnet
Ethernet Connection
Network connection needed
NIC
When can you use a network connection to
the router? When there is a network connection to the
router (telnet).
What software/command do you need? TCP/IP, Terminal prompt (DOS),
Tera Term, etc.
What cable and ports do you use? PC & Router: Ethernet NIC
Ethernet straight-through cable
When should you not use a network When the change may
56
connection to configure the router? disconnect the telnet connection.
C:\> ping
C:\> telnet
Ethernet Connection
Network connection needed
57
NetLab
58
NetLab
Basic Router
Pod
59
Your Interfaces may differ
R1# show ip interface brief
Interface IP-Address OK? Method Status
Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet0/1 192.168.1.2 YES manual up up
Serial0/0 192.168.2.1 YES manual up up
Serial0/1 unassigned YES manual up up
60
Learning IOS: Lab 1.5.2 (Cabrillo College Version)
61
Command Overview (partial list from lab)
Router> user mode
Router> enable
Router# privilege mode
Router# configure terminal
Router(config)# exit
Router# config t
Router(config)# hostname name
Router(config)# enable secret password privilege password
Router(config)# line console 0 console password
Router(config-line)# password password
Router(config-line)# login
Router(config)# line vty 0 4 telnet password
Router(config-line)# password password
Router(config-line)# login
Router(config)# banner motd # message # banner
Router(config)# interface type number configure
interface
Router(config-if)# ip address address mask
Router(config-if)# description description
62
Router(config-if)# no shutdown
Other Commands
Router# copy running-config startup-config
Router# show running-config
Router# show ip route
Router# show ip interface brief
Router# show interfaces
63
Different Modes
Router# hostname R1
^
% Invalid input detected at '^' marker.
Router# configure terminal
Router(config)# hostname R1
R1(config)#
65
Serial Connectors
DCE Cable
DTE Cable
Router is typically a DTE device.
The DTE cable is connected to the serial interface on the router to a
CSU/DSU device (DCE).
66
WAN Interface Configuration
R1(config)# interface Serial0/0
R1(config-if)# ip address 192.168.2.1 255.255.255.0
R1(config-if)# description Link to R2
R1(config-if)# clock rate 64000 DCE Only
R1(config-if)# no shutdown
67
Unsolicited Messages from IOS
R1(config)# interface fastethernet0/0
R1(config-if)# ip address 172.16.3.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# descri
*Mar 1 01:16:08.212: %LINK-3-UPDOWN: Interface
FastEthernet0/0, changed state to up
*Mar 1 01:16:09.214: %LINEPROTO-5-UPDOWN: Line protocol on
Interface
FastEthernet0/0, changed state to upption
R1(config-if)#
The IOS often sends unsolicited messages
Does not affect the command
Can cause you to lose your place when typing.
68
Unsolicited Messages from IOS
R1(config)# line console 0
R1(config-line)# logging synchronous
R1(config-if)# descri
*Mar 1 01:28:04.242: %LINK-3-UPDOWN: Interface
FastEthernet0/0, changed state to up
*Mar 1 01:28:05.243: %LINEPROTO-5-UPDOWN: Line protocol on
Interface
FastEthernet0/0, changed state to up
R1(config-if)# description
To keep the unsolicited output separate from your input, enter line
configuration mode for the console port and add the logging
synchronous
69
LAN Interface Configuration
R1(config)# interface FastEthernet0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# description R1 LAN
R1(config-if)# no shutdown
Fa0/1
70
Each Interface Belongs to a Different Network
R1(config)# interface FastEthernet0/1
R1(config-if)# ip address 192.168.1.2 255.255.255.0
192.168.1.0 overlaps with FastEthernet0/0
R1(config-if)# no shutdown
192.168.1.0 overlaps with FastEthernet0/0
FastEthernet0/1: incorrect IP address assignment
Fa0/1
192.168.1.1/24
192.168.1.2/24
Same Network!
71
Each Interface Belongs to a Different Network
R1# show ip interface brief
Interface IP-Address OK? Method Status
Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
Serial0/0 192.168.2.1 YES manual up up
FastEthernet0/1 192.168.1.2 YES manual administratively
down down
Serial0/1 unassigned YES unset administratively
down down
Fa0/1
72
Verifying Interfaces
R1# show interfaces
<some interfaces not shown>
FastEthernet0/0 is up, line protocol is up (connected)
Hardware is Lance, address is 0007.eca7.1511 (bia 00e0.f7e4.e47e)
Description: R1 LAN
Internet address is 192.168.1.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of “show interface” counters never
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
<output omitted>
Serial0/0 is up, line protocol is up (connected)
Hardware is HD64570
Description: Link to R2
Internet address is 192.168.2.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
73
<output omitted>
Verify Router Configuration
R1# show running-config
!
version 12.3
!
hostname R1
!
interface FastEthernet0/0
description R1 LAN Note: shutdown is the
ip address 192.168.1.1 255.255.255.0
! default. no shutdown does
interface Serial0/0 not show in the configuration.
description Link to R2
ip address 192.168.2.1 255.255.255.0
clock rate 64000
!
banner motd ^C
******************************************
WARNING!! Unauthorized Access Prohibited!!
******************************************
^C
!
line con 0
password cisco
login
line vty 0 4
password cisco
login
!
end
74
Save Configuration
R1# copy running-config startup-config
R1# show startup-config
Using 728 bytes
!
version 12.3
!
hostname R1
!
interface FastEthernet0/0
description R1 LAN
ip address 192.168.1.1 255.255.255.0
!
interface Serial0/0
description Link to R2
ip address 192.168.2.1 255.255.255.0
clock rate 64000
!
banner motd ^C
******************************************
WARNING!! Unauthorized Access Prohibited!!
******************************************
^C
line con 0
password cisco
login
line vty 0 4
password cisco
login
!
end 75
Building the Routing Table
77
Introducing the Routing Table
R1# show ip route
78
Introducing the Routing Table
R1# show ip route
<output omitted>
Exit Interfaces
79
Introducing the Routing Table
R1# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
<output omitted>
Directly Connected
Networks
Remote Network