Ccna2 Chapter1 Introduction To Routing and Packet Forwarding
Ccna2 Chapter1 Introduction To Routing and Packet Forwarding
Introduction
to Routing
and
Packet Forwarding
1.0 Chapter introduction
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 2
1.0 Chapter introduction
Today's networks have a significant impact on our lives - changing
the way we live, work, and play. Computer networks - and in a larger
context the Internet - allow people to communicate, collaborate, and interact
in ways they never did before. We use the network in a variety of ways,
including web applications, IP telephony, video conferencing, interactive
gaming, electronic commerce, education, and more.
Routers are now being added to satellites in space. These routers will have
the ability to route IP traffic between satellites in space in much the same
way that packets are moved on Earth, thereby reducing delays and offering
greater networking flexibility.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 3
1.0 Chapter introduction
In addition to packet forwarding, a router provides other services as
well. To meet the demands on today's networks, routers are also
used to:
All of these services are built around the router and its primary
responsibility of forwarding packets from one network to the next.
It is only because of the router's ability to route packets between
networks that devices on different networks can communicate. This
chapter will introduce you to the router, its role in the networks, its
main hardware and software components, and the routing process
itself.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 4
1 Introduction to Routing and Packet Forwarding
CPU
RAM
ROM
Operating System
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 6
1.1.1 Routers are Computers
1841 Series
Interior view
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 7
1.1.1 Routers are Computers
Show ip route
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 8
1.1.1 Routers are Computers
Routers are at the network center :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 9
1.1.1 Routers are Computers
Each network that a router connects to typically
requires a separate interface. These interfaces are
used to connect a combination of both Local Area
Networks (LANs) and Wide Area Networks (WANs).
LANs are commonly Ethernet networks that contain
devices such as PCs, printers, and servers. WANs are
used to connect networks over a large geographical
area. For example, a WAN connection is commonly
used to connect a LAN to the Internet Service Provider
(ISP) network.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 10
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 11
1.1.1 Routers are Computers
Routers determine the best path :
The primary responsibility of a router is to direct packets destined for local and
remote networks by:
The router uses its routing table to determine the best path to forward the packet.
When the router receives a packet, it examines its destination IP address and
searches for the best match with a network address in the router's routing table.
The routing table also includes the interface to be used to forward the packet.
Once a match is found, the router encapsulates the IP packet into the data link
frame of the outgoing or exit interface, and the packet is then forwarded toward
its destination.
It is very likely that a router will receive a packet that is encapsulated in one type
of data link frame, such as an Ethernet frame and when forwarding the packet, the
router will encapsulate it in a different type of data link frame, such as Point-to-
Point Protocol (PPP). The data link encapsulation depends on the type of interface
on the router and the type of medium it connects to. The different data link
technologies that a router connects to can include :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 12
1.1.1 Routers are Computers
In the figure on the next slides, we can follow a packet from the
source PC to the destination PC. Notice that it is the responsibility of
the router to find the destination network in its routing table and
forward the packet on toward its destination. In this example,
router R1 receives the packet encapsulated in an Ethernet frame.
After decapsulating the packet, R1 uses the destination IP address
of the packet to search its routing table for a matching network
address. After a destination network address is found in the routing
table, R1 encapsulates the packet inside a PPP frame and forwards
the packet to R2. A similar process is performed by R2.
http://computer.howstuffworks.com/router.htm
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 13
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 14
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 15
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 16
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 17
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 18
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 19
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 20
1.1.1 Routers are Computers
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 21
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 22
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 23
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 24
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 25
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 26
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 27
1.1.2 Router CPU and Memory
Router Components and their Functions :
CPU
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 28
1.1.2 Router CPU and Memory
RAM :
RAM is volatile memory and loses its content when the router is
powered down or restarted. However, the router also contains
permanent storage areas, such as ROM, flash and NVRAM.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 29
1.1.2 Router CPU and Memory
ROM :
ROM uses firmware, which is software that is embedded inside the integrated
circuit. Firmware includes the software that does not normally need to be modified
or upgraded, such as the bootup instructions. Many of these features, including
ROM monitor software, will be discussed in a later course. ROM does not lose its
contents when the router loses power or is restarted.
Flash Memory :
Flash memory is nonvolatile computer memory that can be electrically stored and
erased. Flash is used as permanent storage for the operating system, Cisco IOS.
In most models of Cisco routers, the IOS is permanently stored in flash memory
and copied into RAM during the bootup process, where it is then executed by the
CPU. Some older models of Cisco routers run the IOS directly from flash. Flash
consists of SIMMs or PCMCIA cards, which can be upgraded to increase the
amount of flash memory.
Flash memory does not lose its contents when the router loses power or is
restarted.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 30
1.1.2 Router CPU and Memory
NVRAM :
NVRAM (Nonvolatile RAM) does not lose its information when power is turned
off. This is in contrast to the most common forms of RAM, such as DRAM,
that requires continual power to maintain its information. NVRAM is used
by the Cisco IOS as permanent storage for the startup configuration
file (startup-config). All configuration changes are stored in the running-
config file in RAM, and with few exceptions, are implemented immediately by
the IOS. To save those changes in case the router is restarted or loses
power, the running-config must be copied to NVRAM, where it is
stored as the startup-config file. NVRAM retains its contents even when
the router reloads or is powered off.
ROM, RAM, NVRAM, and flash are discussed in the following section which
introduces the IOS and the bootup process. They are also discussed in more
detail in a later course relative to managing the IOS.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 31
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 32
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 33
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 34
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 35
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 36
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 37
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 38
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 39
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 40
1.1.2 Router CPU and Memory
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 41
1.1.3 Internetwork Operating System
Internetwork Operating System :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 42
1.1.3 Internetwork Operating System
As with other operating systems Cisco IOS has its own user
interface. Although some routers provide a graphical user
interface (GUI), the command line interface (CLI) is a much
more common method of configuring Cisco routers. The CLI
is used throughout this curriculum.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 43
1.1.4 Router Boot-Up Process
Bootup Process :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 44
1.1.4 Router Boot-Up Process
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 45
1.1.4 Router Boot-Up Process
After the POST, the bootstrap program is copied from ROM into RAM.
Once in RAM, the CPU executes the instructions in the bootstrap program.
The main task of the bootstrap program is to locate the Cisco IOS and
load it into RAM.
Note: At this point, if you have a console connection to the router, you
will begin to see output on the screen.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 46
1.1.4 Router Boot-Up Process
The IOS is typically stored in flash memory, but can also be stored in other places
such as a TFTP (Trivial File Transfer Protocol) server.
If a full IOS image can not be located, a scaled-down version of the IOS is copied
from ROM into RAM. This version of IOS is used to help diagnose any problems and
can be used to load a complete version of the IOS into RAM.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 47
1.1.4 Router Boot-Up Process
Note: A TFTP server is usually used as a backup server for IOS but it can also be
used as a central point for storing and loading the IOS. IOS management and using
the TFTP server is discussed in a later course.
Some of the older Cisco routers ran the IOS directly from flash, but current models
copy the IOS into RAM for execution by the CPU.
Note: Once the IOS begins to load, you may see a string of pounds signs (#), as
shown in the figure, while the image decompresses.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 48
1.1.4 Router Boot-Up Process
After the IOS is loaded, the bootstrap program searches for the startup configuration file, known
as startup-config, in NVRAM. This file has the previously saved configuration commands and
parameters including:
interface addresses
routing information
passwords
any other configurations saved by the network administrator
If the startup configuration file, startup-config, is located in NVRAM, it is copied into RAM as the
running configuration file, running-config.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 49
1.1.4 Router Boot-Up Process
Note: If the startup configuration file does not exist in NVRAM, the router may search for a TFTP
server. If the router detects that it has an active link to another configured router, it sends a
broadcast searching for a configuration file across the active link. This condition will cause the
router to pause, but you will eventually see a console message like the following one:
<router pauses here while it broadcasts for a configuration file across an active link>
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 50
1.1.4 Router Boot-Up Process
If the startup configuration file can not be located, the router prompts the user to enter setup
mode. Setup mode is a series of questions prompting the user for basic configuration
information. Setup mode is not intended to be used to enter complex router configurations, and
it is not commonly used by network administrators.
When booting a router that does not contain a startup configuration file, you will see the
following question after the IOS has been loaded:
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 52
1.1.4 Router Boot-Up Process
Setup mode will not be used in this course to configure the router. When prompted to enter
setup mode, always answer no. If you answer yes and enter setup mode, you can press Ctrl-C
at any time to terminate the setup process.
When setup mode is not used, the IOS creates a default running-config. The default
running-config is a basic configuration file that includes the router interfaces,
management interfaces, and certain default information. The default running-config
does not contain any interface addresses, routing information, passwords, or other
specific configuration information.
Depending on the platform and IOS, the router may ask the following question before displaying
the prompt:
Note: If a startup configuration file was found, the running-config may contain a hostname and
the prompt will display the hostname of the router.
Once the prompt displays, the router is now running the IOS with the current running
configuration file. The network administrator can now begin using IOS commands on this router.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 53
1.1.4 Router Boot-Up Process
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 54
1.1.4 Router Boot-Up Process
Verifying Router Bootup Process :
The show version command can be used to help verify and troubleshoot some of the basic
hardware and software components of the router. The show version command displays
information about the version of the Cisco IOS software currently running on the router, the
version of the bootstrap program, and information about the hardware configuration, including
the amount of system memory.
IOS version
This is the version of the Cisco IOS software in RAM and that is being used by the router.
This shows the version of the system bootstrap software, stored in ROM memory, that was
initially used to boot up the router.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 55
1.1.4 Router Boot-Up Process
Location of IOS :
This shows where the bootstrap program is located and loaded the Cisco IOS, and the complete
filename of the IOS image.
The first part of this line displays the type of CPU on this router.
The last part of this line displays the amount of DRAM. Some series of routers, like the 2600,
use a fraction of DRAM as packet memory. Packet memory is used for buffering packets.
To determine the total amount of DRAM on the router, add both numbers. In this example, the
Cisco 2621 router has 60,416 KB (kilobytes) of free DRAM used for temporarily storing the Cisco
IOS and other system processes. The other 5,120 KB is dedicated for packet memory. The sum
of these numbers is 65,536K, or 64 megabytes (MB) of total DRAM.
Note: It may be necessary to upgrade the amount of RAM when upgrading the IOS.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 56
1.1.4 Router Boot-Up Process
Interfaces :
Amount of NVRAM :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 57
1.1.4 Router Boot-Up Process
Amount of Flash :
This is the amount of flash memory on the router. Flash is used to permanently store the Cisco
IOS.
Note: It may be necessary to upgrade the amount of flash when upgrading the IOS.
Configuration Register :
The last line of the show version command displays the current configured value of the software
configuration register in hexadecimal. If there is a second value displayed in parentheses, it
denotes the configuration register value that will be used during the next reload.
The configuration register has several uses, including password recovery. The factory default
setting for the configuration register is 0x2102. This value indicates that the router will
attempt to load a Cisco IOS software image from flash memory and load the startup
configuration file from NVRAM.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 58
1.1.5 Router interfaces
Management Ports:
Routers have physical connectors that are used to manage the router. These connectors are
known as management ports. Unlike Ethernet and serial interfaces, management ports are not
used for packet forwarding. The most common management port is the console port. The
console port is used to connect a terminal, or most often a PC running terminal emulator
software, to configure the router without the need for network access to that router. The
console port must be used during initial configuration of the router.
Another management port is the auxiliary port. Not all routers have auxiliary ports. At times the
auxiliary port can be used in ways similar to a console port. It can also be used to attach a
modem. Auxiliary ports will not be used in this curriculum.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 59
1.1.5 Router interfaces
Router Interfaces :
The term 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 that are
used to connect to multiple networks. Typically, the interfaces connect to various types of
networks, which means that different types of media and connectors are required. Often a router
will need to have different types of interfaces. For example, a router usually has FastEthernet
interfaces for connections to different LANs and various types of WAN interfaces to connect a
variety of serial links including T1, DSL and ISDN. The figure shows the FastEthernet and serial
interfaces on the router.
Like interfaces on a PC, the ports and interfaces on a router are located on the outside of the
router. Their external location allows for convenient attachment to the appropriate network
cables and connectors.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 60
1.1.5 Router interfaces
Note: A single interface on a router can be used to connect to multiple
networks; however, this is beyond the scope of this course and is discussed
in a later course.
Like most networking devices, Cisco routers use LED indicators to provide
status information. An interface LED indicates the activity of the
corresponding interface. If an LED is off when the interface is active and the
interface is correctly connected, this may be an indication of a problem with
that interface. If an interface is extremely busy, its LED will always be on.
Depending on the type of router, there may be other LEDs as well. For more
information on LED displays on the 1841, see the link below.
Links
http://www.cisco.com/en/US/products/ps5853/products_installation_guide_c
hapter09186a00802c36b8.html
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 61
1.1.5 Router interfaces
As shown in the figure, every interface on the router is a member or host on a different IP
network. Each interface must be configured with an IP address and subnet mask of a
different network. Cisco IOS will not allow two active interfaces on the same router to belong
to the same network.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 62
1.1.5 Router interfaces
LAN Interfaces
Use the Packet Tracer Activity later in this section to test your
cabling skills.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 63
1.1.5 Router interfaces
WAN Interfaces :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 64
1.1.5 Router interfaces
Router Interfaces :
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 65
1.1.6 Routers and the Network Layer
Routers and the Network Layer
When each router receives a packet, it searches its routing table to find the
best match between the destination IP address of the packet and one of the
network addresses in the routing table. Once a match is found, the packet is
encapsulated in the layer 2 data link frame for that outgoing interface. The
type of data link encapsulation depends on the type of interface, such as
Ethernet or HDLC.
Eventually the packet reaches a router that is part of a network that matches
the destination IP address of the packet.
This sequence of events is explained in more detail later in this chapter.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 66
1.1.6 Routers and the Network Layer
A router makes its primary forwarding decision at Layer 3, but as we saw earlier, it participates in
Layer 1 and Layer 2 processes as well. After a router has examined the destination IP address of
a packet and consulted its routing table to make its forwarding decision, it can forward that
packet out the appropriate interface toward its destination. The router encapsulates the Layer 3
IP packet into the data portion of a Layer 2 data link frame appropriate for the exit interface. The
type of frame can be an Ethernet, HDLC, or some other Layer 2 encapsulation - whatever
encapsulation is used on that particular interface. The Layer 2 frame is encoded into the Layer 1
physical signals that are used to represent bits over the physical link.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 67
1.1.6 Routers and the Network Layer
To understand this process better, refer to the figure. Notice that PC1 operates at all seven
layers, encapsulating the data and sending the frame out as a stream of encoded bits to R1, its
default gateway.
R1 receives the stream of encoded bits on its interface. The bits are decoded and passed up to
Layer 2, where R1 decapsulates the frame. The router examines the destination address of
the data link frame to determine if it matches the receiving interface, including a
broadcast or multicast address. If there is a match, the router decapsulate de frame and the
IP packet is passed up to Layer 3, where R1 makes its routing decision. R1 then re-encapsulates
the packet into a new Layer 2 data link frame and forwards it out the outbound interface as a
stream of encoded bits.
R2 receives the stream of bits, and the process repeats itself. R2 decapsulates the frame and
passes the data portion of the frame, the IP packet, to Layer 3 where R2 makes its routing
decision. R2 then re-encapsulates the packet into a new Layer 2 data link frame and forwards it
out the outbound interface as a stream of encoded bits.
This process is repeated once again by router R3, which forwards the IP packet, encapsulated
inside a data link frame and encoded as bits, to PC2.
Each router in the path from source to destination performs this same process of decapsulation,
searching the routing table, and then re-encapsulation. This process is important to your
understanding of how routers participate in networks. Therefore, we will revisit this discussion in
more depth in a later section.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 68
1.2 CLI configuration and addressing.
1.2.1 Implementing Basic Addressing schemes
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 70
1.2.2 Basic router configuration
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 71
1.2.2 Basic router configuration
You should already be familiar with these configuration commands; however,
we will do a brief review. We begin our review with the assumption that the
router does not have a current startup-config file.
The first prompt appears at user mode. User mode allows you to view the
state of the router, but does not allow you to modify its configuration. Do not
confuse the term "user" as used in user mode with users of the network.
User mode is intended for the network technicians, operators, and engineers
who have the responsibility to configure network devices.
The enable command is used to enter the privileged EXEC mode. This mode
allows the user to make configuration changes on the router. The router
prompt will change from a ">" to a "#" in this mode.
Router>enable
Router# (privileged EXEC mode who gives access to all other modes,
with access to all informations)
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 72
1.2.2 Basic router configuration
Hostnames and Passwords
Router#config t
R1(config)#
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 73
1.2.2 Basic router configuration
Next, configure the console and Telnet lines with the
password cisco. Once again, the password cisco is used only
in our lab environment. The command login enables
password checking on the line. If you do not enter the
command login on the console line, the user will be granted
access to the line without entering a password.
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4 (configuration of 5 vty)
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 74
1.2.2 Basic router configuration
Configuring a Banner
From the global configuration mode, configure the message-of-the-day (motd) banner. A
delimiting character, such as a "#" is used at the beginning and at the end of the message. The
delimiter allows you to configure a multiline banner, as shown here.
R1(config)#banner motd #
Enter TEXT message. End with the character '#'.
******************************************
WARNING!! Unauthorized Access Prohibited!!
******************************************
#
Configuring an appropriate banner is part of a good security plan. At a very minimum, a banner
should warn against unauthorized access. Never configure a banner that "welcomes" an
unauthorized user.
Links
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 75
1.2.2 Basic router configuration
You will now configure the individual router interfaces with IP addresses
and other information. First, enter the interface configuration mode by
specifying the interface type and number. Next, configure the IP address
and subnet mask:
R1(config)#interface Serial0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 76
1.2.2 Basic router configuration
It is good practice to configure a description on each interface to help
document the network information. The description text is limited to 240
characters. On production networks a description can be helpful in
troubleshooting by providing information about the type of network that the
interface is connected to and if there are any other routers on that network.
If the interface connects to an ISP or service carrier, it is helpful to enter the
third party connection and contact information; for example:
R1(config-if)#description Link to R2
Router(config-if)#no shutdown
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 77
1.2.2 Basic router configuration
Note: When cabling a point-to-point serial link in our lab
environment, one end of the cable is marked DTE and the other
end is marked DCE. The router that has the DCE end of the
cable connected to its serial interface will need the additional
clock rate command configured on that serial interface. This
step is only necessary in a lab environment and will be explained in
more detail in Chapter 2, "Static Routing".
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
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 78
1.2.2 Basic router configuration
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
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 79
1.2.2 Basic router configuration
If there is an attempt to enable the interface with the no
shutdown command, the following message will appear:
R1(config-if)#no shutdown
192.168.1.0 overlaps with FastEthernet0/0
FastEthernet0/1: incorrect IP address assignment
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 80
1.2.2 Basic router configuration
Verifying Basic Router Configuration
R1#show running-config
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 81
1.2.2 Basic router configuration
After applying and saving the basic configuration, you
can use several commands to verify that you have
correctly configured the router. Click the appropriate
button in the figure to see a listing of each command's
output. All of these commands are discussed in detail
in later chapters. For now, begin to become familiar
with the output.
R1#show running-config
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 82
1.2.2 Basic router configuration
R1#show startup-config
This command displays the startup configuration file stored in NVRAM. This is the
configuration that the router will use on the next reboot. This configuration does not
change unless the current running configuration is saved to NVRAM with the copy
running-config startup-config command. Notice in the figure that the startup
configuration and the running configuration are identical. They are identical because
the running configuration has not changed since the last time it was saved. Also
notice that the show startup-config command also displays how many bytes of
NVRAM the saved configuration is using.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 83
1.2.2 Basic router configuration
R1#show ip route
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 84
1.2.2 Basic router configuration
R1#show interfaces
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 88
1.3.1 Introducing the routing table
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 89
1.3.1 Introducing the routing table
Note: The routing table-with its directly-connected networks, static
routes, and dynamic routes-will be introduced in the following
sections and discussed in even greater detail throughout this
course.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 90
1.3.1 Introducing the routing table
As shown in the figure the routing table is displayed with the show ip route
command. At this point, there have not been any static routes configured nor any
dynamic routing protocol enabled. Therefore, the routing table for R1 only shows the
router's directly connected networks. For each network listed in the routing table,
the following information is included:
C - The information in this column denotes the source of the route information, directly
connected network, static route or a dynamic routing protocol. The C represents a directly
connected route.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 91
1.3.1 Introducing the routing table
FastEthernet 0/0 - The information at the end of the route entry represents
the exit interface and/or the IP address of the next-hop router. In this example,
both FastEthernet 0/0 and Serial0/0/0 are the exit interfaces used to reach
these networks.
When the routing table includes a route entry for a remote network,
additional information is included, such as the routing metric and the
administrative distance. Routing metrics, administrative distance, and the
show ip route command are explained in more detail in later chapters.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 93
1.3.1 Introducing the routing table
PCs also have a routing table. In the figure, you can see the route print command
output. The command reveals the configured or acquired default gateway, connected,
loopback, multicast, and broadcast networks. The output from route print command
will not be analyzed during this course. It is shown here to emphasize the point that
all IP configured devices should have a routing table.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 94
1.3.2 Directly Connected Networks
As stated in the previous section, when a router's interface is configured with an IP address and
subnet mask, that interface becomes a host on that network. For example, when the
FastEthernet 0/0 interface on R1in the figure is configured with the IP address 192.168.1.1 and
the subnet mask 255.255.255.0, the FastEthernet 0/0 interface becomes a member of the
192.168.1.0/24 network. Hosts that are attached to the same LAN, like PC1, are also configured
with an IP address that belongs to the 192.168.1.0/24 network.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 95
1.3.2 Directly Connected Networks
When a PC is configured with a host IP address and subnet mask,
the PC uses the subnet mask to determine what network it now
belongs to. This is done by the operating system ANDing the host IP
address and subnet mask. A router uses the same logic when an
interface is configured.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 96
1.3.2 Directly Connected Networks
Before any static or dynamic routing is configured on a
router, the router only knows about its own directly
connected networks. These are the only networks that
are displayed in the routing table until static or
dynamic routing is configured. Directly connected
networks are of prime importance for routing
decisions. Static and dynamic routes cannot exist in
the routing table without a router's own directly
connected networks. The router cannot send packets
out an interface if that interface is not enabled with an
IP address and subnet mask, just as a PC cannot send
IP packets out its Ethernet interface if that interface is
not configured with an IP address and subnet mask.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 97
1.3.3 Stating Routing
Static Routing
Remote networks are added to the routing table either by configuring static routes
or enabling a dynamic routing protocol. When the IOS learns about a remote
network and the interface that it will use to reach that network, it adds that route to
the routing table as long as the exit interface is enabled.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 98
1.3.3 Stating Routing
A static route includes the network address and subnet mask of the remote
network, along with the IP address of the next-hop router or exit interface.
Static routes are denoted with the code S in the routing table as shown in
the figure. Static routes are examined in detail in the next chapter.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 99
1.3.4 Dynamic Routing
Dynamic Routing
Remote networks can also be added to the routing table by using a dynamic routing protocol. In
the figure, R1 has automatically learned about the 192.168.4.0/24 network from R2 through the
dynamic routing protocol, RIP (Routing Information Protocol). RIP was one of the first IP routing
protocols and will be fully discussed in later chapters.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 100
1.3.4 Dynamic Routing
Note: R1's routing table in the figure shows that R1 has learned about two
remote networks: one route that dynamically used RIP and a static route
that was configured manually. This is an example of how routing tables can
contain routes learned dynamically and configured statically and is not
necessarily representative of the best configuration for this network.
Network discovery
Updating and maintaining routing tables
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 101
1.3.4 Dynamic Routing
Maintaining Routing Tables
After the initial network discovery, dynamic routing protocols update and
maintain the networks in their routing tables. Dynamic routing protocols not
only make a best path determination to various networks, they will also
determine a new best path if the initial path becomes unusable (or if the
topology changes). For these reasons, dynamic routing protocols have an
advantage over static routes. Routers that use dynamic routing protocols
automatically share routing information with other routers and compensate
for any topology changes without involving the network administrator.
IP Routing Protocols
There are several dynamic routing protocols for IP. Here are some of the
more common dynamic routing protocols for routing IP packets:
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 102
1.3.5 Routing Table Principles
Routing Table Principles
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 103
1.3.5 Routing Table Principles
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 104
1.3.5 Routing Table Principles
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 105
1.3.5 Routing Table Principles
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 106
1.3.5 Routing Table Principles
Asymmetric Routing
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 107
1.4 Path Determination
and
Switching functions.
1.4.1 Packet Fields and Frame Fields
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 109
1.4.1 Packet Fields and Frame Fields
Internet Protocol (IP) Packet Format
The Internet Protocol specified in RFC 791 defines the IP packet format. The IP packet header
has specific fields that contain information about the packet and about the sending and receiving
hosts. Below is a list of the fields in the IP header and a brief description for each one. You
should already be familiar with destination IP address, source IP address, version, and Time To
Live (TTL) fields. The other fields are important but are outside the scope of this course.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 110
1.4.1 Packet Fields and Frame Fields
The Layer 2 data link frame usually contains header information with a data link
source and destination address, trailer information, and the actual transmitted data.
The data link source address is the Layer 2 address of the interface that
sent the data link frame. The data link destination address is the Layer 2
address of the interface of the destination device. Both the source and
destination data link interfaces are on the same network. As a packet is
forwarded from router to router, the Layer 3 source and destination IP
addresses will not change; however, the Layer 2 source and destination
data link addresses will change. This process will be examined more closely later
in this section.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 111
1.4.1 Packet Fields and Frame Fields
Note: When NAT (Network Address Translation) is used, the destination (or
source) IP address does change, but this process is of no concern to IP and
is a process performed within a company's network. Routing with NAT is
discussed in a later course.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 112
1.4.2 Best Path and Metric
Best Path
Determining a router's best path involves the evaluation of multiple paths to the same
destination network and selecting the optimum or "shortest" path to reach that network.
Whenever multiple paths to reach the same network exist, each path uses a different exit
interface on the router to reach that network. The best path is selected by a routing protocol
based on the value or metric it uses to determine the distance to reach a network.
Some routing protocols, such as RIP, use simple hop-count, which the number of routers
between a router and the destination network. Other routing protocols, such as OSPF,
determine the shortest path by examining the bandwidth of the links, and using the
links with the fastest bandwidth from a router to the destination network.
Dynamic routing protocols typically use their own rules and metrics to build and update routing
tables. A metric is the quantitative value used to measure the distance to a given
route. The best path to a network is the path with the lowest metric. For example, a
router will prefer a path that is 5 hops away over a path that is 10 hops away.
The primary objective of the routing protocol is to determine the best paths for each route to
include in the routing table. The routing algorithm generates a value, or a metric, for
each path through the network. Metrics can be based on either a single characteristic or
several characteristics of a path. Some routing protocols can base route selection on multiple
metrics, combining them into a single metric. The smaller the value of the metric, the
better the path.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 113
1.4.2 Best Path and Metric
Two metrics that are used by some dynamic routing protocols are:
Hop count-Hop count is the number of routers that a packet must travel
through before reaching its destination. Each router is equal to one hop. A hop
count of four indicates that a packet must pass through four routers to reach
its destination. If multiple paths are available to a destination, the routing
protocol, such as RIP, picks the path with the least number of hops.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 114
1.4.2 Best Path and Metric
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 115
1.4.2 Best Path and Metric
Note: Speed is technically not an accurate description of
bandwidth because all bits travel at the same speed over the
same physical medium. Bandwidth is more accurately
defined as the number of bits that can be transmitted over a
link per second.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 116
1.4.3 Equal Cost Load Balancing
You may be wondering what happens if a routing table has two or more paths with
the same metric to the same destination network. When a router has multiple paths
to a destination network and the value of that metric (hop count, bandwidth, etc.) is
the same, this is known as an equal cost metric, and the router will perform equal
cost load balancing. The routing table will contain the single destination network but
will have multiple exit interfaces, one for each equal cost path. The router will
forward packets using the multiple exit interfaces listed in the routing table.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 117
1.4.3 Equal Cost Load Balancing
Just in case you are wondering, a router can send packets over
multiple networks even when the metric is not the same if it is
using a routing protocol that has this capability. This is known as
unequal cost load balancing. EIGRP (as well as IGRP) are the only
routing protocols that can be configured for unequal cost load
balancing. Unequal cost load balancing in EIGRP is not discussed in
this course but is covered in CCNP.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 118
1.4.4 Path Determination
Path Determination
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 119
1.4.4 Path Determination
One of three path determinations results from this search:
Directly Connected Network - If the destination IP address of the packet belongs to a device
on a network that is directly connected to one of the router's interfaces, that packet is
forwarded directly to that device. This means that the destination IP address of the packet is a
host address on the same network as this router's interface.
Remote Network - If the destination IP address of the packet belongs to a remote network,
then the packet is forwarded to another router. Remote networks can only be reached by
forwarding packets to another router.
No Route Determined - If the destination IP address of the packet does not belong to either a
connected or remote network, and if the router does not have a default route, then the packet is
discarded. The router sends an ICMP unreachable message to the source IP address of the
packet.
In the first two results, the router re-encapsulates the IP packet into the Layer 2 data link frame
format of the exit interface. The type of Layer 2 encapsulation is determined by the type of
interface. For example, if the exit interface is FastEthernet, the packet is encapsulated in an
Ethernet frame. If the exit interface is a serial interface configured for PPP, the IP packet is
encapsulated in a PPP frame.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 120
1.4.5 Switching function
Switching Function
After the router has determined the exit interface using the path
determination function, the router needs to encapsulate the packet into the
data link frame of the outgoing interface.
What does a router do with a packet received from one network and destined
for another network? The router performs the following three major steps:
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 Layer 3 packet into a new Layer 2 frame and forwards the frame
out the exit interface.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 121
1.4.5 Switching function
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 122
1.4.5 Switching function
As the Layer 3 IP packet is forwarded from one router to the next, the IP packet remains
unchanged, with the exception of the Time To Live (TTL) field. When a router receives an IP
packet, it decrements the TTL by one. If the resulting TTL value is zero, the router discards
the packet. The TTL is used to prevent IP packets from traveling endlessly over networks due to
a routing loop or other misfunction in the network. Routing loops are discussed in a later
chapter.
As the IP packet is decapsulated from one Layer 2 frame and encapsulated into a new Layer 2
frame, the data link destination address and source address will change as the packet is
forwarded from one router to the next. The Layer 2 data link source address represents the
Layer 2 address of the outbound interface. The Layer 2 destination address represents the Layer
2 address of the next-hop router. If the next hop is the final destination device, it will be the
Layer 2 address of that device.
It is very likely that the packet will be encapsulated in a different type of Layer 2 frame than the
one in which it was received. For example, the packet might be received by the router on a
FastEthernet interface, encapsulated in an Ethernet frame, and forwarded out a serial interface
encapsulated in a PPP frame.
Remember, as a packet travels from the source device to the final destination device,
the Layer 3 IP addresses do not change. However, the Layer 2 data link addresses
change at every hop as the packet is decapsulated and re-encapsulated in a new frame
by each router.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 123
1.4.5 Switching function
Path Determination and Switching Function Details
Can you describe the exact details of what happens to a packet at Layer 2 and Layer 3 as it
travels from source to destination? If not, study the animation and follow along with the
discussion until you can describe the process on your own.
PC1 encapsulates the IP packet into an Ethernet frame with the destination MAC address of R1's
FastEthernet 0/0 interface.
How does PC1 know to forward to packet to R1 and not directly to PC2? PC1 has determined
that the IP source and IP destination addresses are on different networks.
PC1 knows the network it belongs to by doing an AND operation on its own IP address and
subnet mask, which results in its network address. PC1 does this same AND operation using the
packet destination IP address and the PC1 subnet mask. If the result is the same as its own
network, PC1 knows that the destination IP address is on its own network and it does not need
to forward the packet to the default gateway, the router. If the AND operation results in a
different network address, PC1 knows that the destination IP address is not on its own network
and that it must forward this packet to the default gateway, the router.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 124
1.4.5 Switching function
Note:
How does PC1 determine the MAC address of the default gateway,
router R1? PC1 checks its ARP table for the IP address of the default
gateway and its associated MAC address.
What if this entry does not exist in the ARP table? PC1 sends an
ARP request and router R1 sends back an ARP reply.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 125
1.4.5 Switching function
Step 2: Router R1 receives the Ethernet frame
2. R1 sees that the Ethernet Type field is 0x800, which means that
the Ethernet frame contains an IP packet in the data portion of the
frame.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 126
1.4.5 Switching function
R1's route to the 192.168.4.0/24 network has a next-hop IP
address of 192.168.2.2 and an exit interface of FastEthernet
0/1. This means that the IP packet will be encapsulated in a
new Ethernet frame with the destination MAC address of the
next-hop router's IP address. Because the exit interface is on
an Ethernet network, R1 must resolve the next-hop IP
address with a destination MAC address.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 127
1.4.5 Switching function
Step 3: Packet arrives at router R2
1. Router R2 examines the destination MAC address, which matches the MAC address of the
receiving interface, FastEthernet 0/0. R2 will therefore copy the frame into its buffer.
2. R2 sees that the Ethernet Type field is 0x800, which means that the Ethernet frame contains
an IP packet in the data portion of the frame.
4. Because the destination IP address of the packet does not match any of R2's interface
addresses, the router consults its routing table to route this packet. R2 searches the routing
table for the packet's destination IP address using the same process R1 used.
R2's routing table has a route to the 192.168.4.0/24 route, with a next-hop IP address of
192.168.3.2 and an exit interface of Serial 0/0/0. Because the exit interface is not an Ethernet
network, R2 does not have to resolve the next-hop-IP address with a destination MAC address.
When the interface is a point-to-point serial connection, R2 encapsulates the IP packet into the
proper data link frame format used by the exit interface (HDLC, PPP, etc.). In this case, the
Layer 2 encapsulation is PPP; therefore, the data link destination address is set to a broadcast.
Remember, there are no MAC addresses on serial interfaces.
5. The IP packet is now encapsulated into a new data link frame, PPP, and sent out the serial
0/0/0 exit interface.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 128
1.4.5 Switching function
Step 4: The packet arrives at R3
1. R3 receives and copies the data link PPP frame into its buffer.
3. R3 searches the routing table for the destination IP address of the packet. The search of the
routing table results in a network that is one of R3's directly connected networks. This means
that the packet can be sent directly to the destination device and does not need to be sent to
another router.
Because the exit interface is a directly connected Ethernet network, R3 needs to resolve the
destination IP address of the packet with a destination MAC address.
4. R3 searches for the packet's destination IP address of 192.168.4.10 in its ARP cache. If the
entry is not in the ARP cache, R3 sends an ARP request out its FastEthernet 0/0 interface. PC2
sends back an ARP reply with its MAC address. R3 updates its ARP cache with an entry for
192.168.4.10 and the MAC address that was returned in the ARP reply.
5. The IP packet is encapsulated into a new data link, Ethernet frame and sent out R3's
FastEthernet 0/0 interface.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 129
1.4.5 Switching function
1. PC2 examines the destination MAC address, which matches the MAC
address of the receiving interface, its Ethernet NIC. PC2 will therefore copy
the rest of the frame into its buffer.
2. PC2 sees that the Ethernet Type field is 0x800, which means that the
Ethernet frame contains an IP packet in the data portion of the frame.
3. PC2 decapsulates the Ethernet frame and passes the IP packet to the IP
process of its operating system.
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 130
1.4.5 Switching function
Summary
February 2009 Philippe Dastroy - CCNA 2 - Chapter 1 - Introduction to routing and packet forwarding 131