• No results found

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

N/A
N/A
Protected

Academic year: 2021

Share "Objectives. Router as a Computer. Router components and their functions. Router components and their functions"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public ITE PC v4.0

Chapter 1 1

Introduction to Routing and Packet Forwarding

Routing Protocols and Concepts – Chapter 1

2

Objectives

ƒ Identify a router as a computer with an OS

and hardware designed for the routing process.

ƒ Demonstrate the ability to configure devices

and apply addresses.

ƒ Describe the structure of a routing table.

ƒ Describe how a router determines a path and

switches packets

3

Router as a Computer

ƒA router is a specialized computer that connects

networks together, both LANs and WANs

ƒIt has an operating system

ƒIt directs packets destined for local and remote

networks by:

Determining the best path to send packets Forwarding packets toward their destination

ƒRouters examine a packet’s destination IP

address and determine the best path by using a routing table

4

5

Router components and their functions

ƒCPU - Executes operating system instructions

ƒRead-only memory (ROM) - Holds diagnostic

software used when router is powered up. Stores the router’s bootstrap program.

ƒInterfaces - There exist multiple physical interfaces

that are used to connect networks. Examples of interface types:

-Ethernet / Fast Ethernet interfaces -Serial interfaces

-Management interfaces

6

Router components and their functions

ƒRandom access memory (RAM)

ƒContains the running copy of configuration file.

Stores routing table. RAM contents lost when power is off

ƒNon-volatile RAM (NVRAM)

ƒStores startup configuration. This may include

IP addresses (Routing protocol, Hostname of router)

ƒFlash memory

(2)

7

The router boot-up process

ƒTest router hardware

Power-On Self Test (POST)

Execute bootstrap loader

ƒLocate & load Cisco IOS

-Locate IOS -Load IOS

ƒLocate & load startup

configuration file or enter setup mode

8

Verify the router boot-up process

ƒThe show version command is used to view

information about the router bootup process:

ƒPlatform model number

ƒImage name & IOS version

ƒBootstrap version stored in ROM

ƒImage file name & where it was loaded from

ƒNumber & type of interfaces

ƒAmount of NVRAM

ƒAmount of flash

ƒConfiguration register

9 10

Router interfaces

ƒA Router Interface is a physical connector that

enables a router to send or receive packets

ƒEach interface connects to a separate network

ƒTypes of router interfaces:

-Ethernet -Fastethernet -Serial -DSL -ISDN -Cable

Switching function of the router

ƒThe process used to switch a packet from an

incoming interface to an outgoing interface on the same router.

ƒRouter receives a stream of encoded bits

ƒBits are decoded and passed to layer 2

ƒRouter de-encapsulates the frame

ƒRemaining packet passed up to layer 3

-Routing decision made at this layer by examining destination IP address

(3)

13

Router Paths and Packet Switching

ƒAs a packet travels from one networking device

to another

-The Source and Destination IP addresses

NEVER change

-The Source & Destination MAC addresses

CHANGE as packet is forwarded from one

router to the next.

-TTL fieldis decremented by one until a value of zero is reached at which point router discards packet (prevents packets from endlessly traversing the network)

14

Basic Router Configuration

ƒA basic router configuration should contain the

following:

-Router name- Host name should be unique -Banner- Warn against unauthorized use -Passwords- Use strong passwords -Interface configurations

Interface type, IP address and subnet mask. Describe purpose of interface.

Issue no shutdown command.

If DCE serial interface issue clock rate command.

15

Lab 1.5.1: Basic Router Configuration

192.168.3.1 255.255.255.0 192.168.3.10 PC2 192.168.1.1 255.255.255.0 192.168.1.10 PC1 255.255.255.0 192.168.2.1 S0/0 255.255.255.0 192.168.3.1 Fa0/0 R2 255.255.255.0 192.168.2.1 S0/0 255.255.255.0 192.168.1.1 Fa0/0 R1 Default Gateway Subnet Mask IP Address Interface Device 16

R1 configuration

Router> enable Router# config t Router(config)# hostname R1 R1(config)# banner motd &

************************************ WARNING!! No Unauthorized Access!! ************************************ &

17

R1 password configuration

R1(config)# enable secret class R1(config)# line console 0 R1(config-line)# password cisco R1(config-line)# login

R1(config-line)# exit R1(config)# line vty 0 4

(4)

19

Verify and Save the Router Configuration

ƒSave the basic router configuration by issuing the

copy running-config startup-configcommand

ƒShow commands that will enable you to verify

router configuration are:

ƒShow running-config- Displays config currently in RAM ƒShow startup-config- Displays configuration file NVRAM ƒShow IP route- Displays routing table

ƒShow interfaces- Displays all interface configurations ƒShow IP interface brief- Displays abbreviated interface configuration information

ƒTest connectivity with ping, traceroute

20

Verify and Save Configuration Commands

copy run start show ip int brief show run

show start show int fa0/0 show version show ip route

21

Routing table of R1

R1#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS in * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0 R1#

22

Routing Table Structure

ƒRouting Table is stored in RAM and contains

information about:

ƒDirectly connected networks- when a device is connected to a router interface

ƒRemotely connected networks- networks connected via neighboring routers

ƒDetailed informationabout the networks include source of information, network address & subnet mask, and IP address of next-hop router

ƒShow ip routecommand is used to view the routing

table

Static routes

ƒEntered manually by the administrator

ƒIncludes: network address and subnet mask and

IP address of next hop router or exit interface

ƒDenoted with the code Sin the routing table

ƒUsed when

Small number of routers

(5)

25

Dynamic routes

ƒUsed to add remote networks to a routing table

ƒAre used to discover networks

ƒAre used to update and maintain routing tables

ƒAutomatic network discovery

-Routers are able discover new networks by sharing routing table information

ƒMust configure a Routing Protocolon each

router such as

RIP, EIGRP, or OSPF

26

27

Routing Table Principles

3 principles regarding routing tables:

ƒEvery router makes its decisions alone, based on the information it has in its routing table.

ƒDifferent routing table may contain different

information

ƒ A routing table can tell how to get to a destination but may not know how to get back

28

Router Paths and Packet Switching

ƒPath determination is the process used by a

router to pick the best path to a destination

29

Router Paths and Packet Switching

ƒA Metric is a numerical valueused by routing

protocols help determine the best path to a destination

–The smallerthe metric value the betterthe path

ƒ2 types of metrics used by

routing protocols are: -Hop count- this is the number of routers a packet must travel through to get to its destination

-Bandwidth- this is the “speed” of a link also known as the data

capacity of a link 30

Router Paths and Packet Switching

ƒEqual cost metric is a condition where a router

has multiple paths to the same destinationthat all have the same metric

ƒTo solve this dilemma,

a router will useEqual

Cost Load Balancing.

References

Related documents