1. Trang chủ
  2. » Tất cả

1. Routing Concepts

73 5 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 73
Dung lượng 15,24 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Chapter 4: Objectives Configure a router to route between multiple directly connected networks  Describe the primary functions and features of a router..  Explain the encapsulation a

Trang 1

Chapter 4: Routing

Concepts

Routing Protocols

Trang 3

Chapter 4: Objectives

 Configure a router to route between multiple directly connected

networks

 Describe the primary functions and features of a router.

 Explain how routers use information in data packets to make

forwarding decisions in a small to medium-sized business network.

 Explain the encapsulation and de-encapsulation process used by

routers when switching packets between interfaces

 Compare ways in which a router builds a routing table when

operating in a small to medium-sized business network.

 Explain routing table entries for directly connected networks.

 Explain how a router builds a routing table of directly connected

networks.

Trang 4

Chapter 4: Objectives (continued)

 Explain how a router builds a routing table using static routes.

 Explain how a router builds a routing table using a dynamic routing

protocol.

Trang 5

Functions of a Router

Trang 6

Functions of a Router

Why Routing?

between networks.

Trang 7

 Routers are specialized computers containing the

following required components to operate:

Central processing unit (CPU) Operating system (OS) - Routers use Cisco IOS Memory and storage (RAM, ROM, NVRAM, Flash, hard drive)

Functions of a Router

Routers are Computers

Trang 8

 Routers use specialized ports and network interface

cards to interconnect to other networks

Functions of a Router

Routers are Computers

Trang 9

 Routers can connect multiple networks

IP network.

Functions of a Router

Routers Interconnect Networks

Trang 10

 Determine the best path to send packets

Uses its routing table to determine path

Forwards packet to interface indicated in routing table.

Encapsulates the packet and forwards out toward destination

protocols to learn about remote networks and build

their routing tables.

Functions of a Router

Routers Choose Best Paths

Trang 11

Functions of a Router

Routers Choose Best Paths

Trang 12

Process switching – An older

packet forwarding mechanism

still available for Cisco routers.

Fast switching – A common

packet forwarding mechanism

which uses a fast-switching

cache to store next hop

information

Cisco Express Forwarding

(CEF) – The most recent,

fastest, and preferred Cisco

IOS packet-forwarding

mechanism Table entries are

not packet-triggered like fast

switching but change-triggered

Functions of a Router

Packet Forwarding Methods

Trang 13

Connect Devices

Connect to a Network

Trang 14

To enable network access

devices must be configured

with the following IP address

is not on the same local network subnet.

Connect Devices

Default Gateways

Trang 15

Network Documentation should include at least the following in a

topology diagram and addressing table:

Trang 16

Statically Assigned IP address – host is manually

assigned the IP address, subnet mask and default

gateway DNS server IP address can also be

assigned.

Used to identify specific network resources such as network

servers and printers Can be used in very small networks with few hosts.

Dynamically Assigned IP Address – IP Address

information is dynamically assigned by a server using

Dynamic Host Configuration Protocol (DHCP)

Most hosts acquire their IP address information through DHCP

DHCP services can be provided by Cisco routers

Connect Devices

Enable IP on a Host

Trang 17

Connect Devices

Device LEDs

Trang 18

Console access requires:

Console cable – RJ-45-to-DB-9 console cable Terminal emulation software – Tera Term, PuTTY,

HyperTerminal

Connect Devices

Console Access

Trang 19

 Network infrastructure devices require IP addresses to enable

Trang 20

Basics tasks that should be first configured on a Cisco Router and

Cisco Switch:

Name the device – Distinguishes it from other routers

Secure management access – Secures privileged EXEC, user

EXEC, and Telnet access, and encrypts passwords to their highest level

Configure a banner – Provides legal notification of

unauthorized access.

Basic Settings on a Router

Configure Basic Router Settings

Trang 21

To be available a router

interface must be:

Configured with an

address and subnet mask

Activated – by default LAN

and WAN interfaces are not

activated Must be activated

using no shutdown

command.

 Other parameters - serial

cable end labeled DCE must

be configured with the clock

rate command.

 Optional description can be

included.

Basic Settings on a Router

Configure Router Interfaces

Trang 22

Configure interface with IPv6

address and subnet mask Use

the ipv6 address

 Configure a global IPv6 address with

an interface identifier (ID) in the

low-order 64 bits -  ipv6-address

/ipv6-length eui-64

Configure a link-local address -

ipv6-address /ipv6-length link-local

Basic Settings on a Router

Configure an IPv6 Router Interface

Trang 23

 Useful for testing and

important in the OSPF

routing process.

Basic Settings on a Router

Configure a Loopback Interface

Trang 24

Show commands to verify

Show commands to gather

more detailed interface

information.

show interfaces

show ip interfaces

Verify Connectivity of Directly Connected Networks

Verify Interface Settings

Trang 25

show ipv6 interface brief -

displays a summary for each

of the interfaces.

show ipv6 interface

gigabitethernet 0/0 -

displays the interface status

and all the IPv6 addresses for

this interface

show ipv6 route - verify

that IPv6 networks and

specific IPv6 interface

addresses have been

installed in the IPv6 routing

table

Verify Connectivity of Directly Connected Networks

Verify Interface Settings

Trang 26

Use the terminal lengthnumbercommand to specify the number of lines to

be displayed A value of 0 (zero) prevents the router from pausing between

screens of output.

To filter specific output of commands use the (|)pipe character after show

command Parameters that can be used after pipe include:

section, include, exclude, begin

Verify Connectivity of Directly Connected Networks

Filter Show Command Output

Trang 27

Recall commands – Ctrl+P or the UP Arrow

Arrow

commands in buffer – show history displays contents

of the buffer.

Verify Connectivity of Directly Connected Networks

Command History Feature

Trang 28

Switching Packets between Networks

Router Switching Functions

Trang 29

Switching Packets between Networks

Send a Packet

Trang 30

Switching Packets between Networks

Forward to the Next Hop

Trang 31

Switching Packets between Networks

Packet Routing

Trang 32

Switching Packets between Networks

Reach the Destination

Trang 33

Path Determination

Routing Decisions

Trang 34

Presentation_ID © 2008 Cisco Systems, Inc All rights reserved Cisco Confidential 34

Path Determination

Best Path

value or metric it uses to determine the distance to

reach a network.

given network

metrics to build and update routing tables for example:

Routing Information Protocol (RIP) - Hop count

Open Shortest Path First (OSPF) - Cost based on cumulative

bandwidth from source to destination

Enhanced Interior Gateway Routing Protocol (EIGRP) -

Bandwidth, delay, load, reliability

Open Shortest Path First (OSPF) - Cost based on

cumulative bandwidth from source to destination

Enhanced Interior Gateway Routing Protocol

(EIGRP) - Bandwidth, delay, load, reliability

Trang 35

Path Determination

Load Balancing

with equal cost metrics, then the router forwards the

packets using both paths equally

Trang 36

Path Determination of the route

Administrative Distance

router, the path installed in the routing table is the one

with the best Administrative Distance (AD).

Trang 37

Path Determination of the route

Administrative Distance

router, the path installed in the routing table is the one

with the best (lowest) Administrative Distance (AD).

route

Trang 38

The Routing Table

The Routing Table

Trang 39

The Routing Table

Routing Table Sources

of the routing table

Link local Interfaces –Added to the routing table when

an interface is configured (displayed in IOS 15 or newer)

Directly connected interfaces -Added to the routing

table when an interface is configured and active.

Static routes - Added when a route is manually

configured and the exit interface is active.

Dynamic routing protocol - Added when EIGRP or

OSPF are implemented and networks are identified.

Trang 40

The Routing Table

Routing Table Sources

Trang 41

The Routing Table

Remote Network Routing Entries

Trang 42

Directly Connected Routes

Directly Connected Interfaces

has an empty routing table.

routing table entries Link Local (L) and Directly Connected (C)

Trang 43

Directly Connected Routes

Directly Connected Interfaces

has an empty routing table.

routing table entries Link Local (L) and Directly Connected (C)

Trang 44

Directly Connected Routes

Directly Connected IPv6 Example

and routes installed in the routing table

Trang 45

Statically Learned Routes

Static Routes

resources.

ip routenetworkmask {next-hop-ip | exit-intf}

contain a path for a destination network.

ip route 0.0.0.0 0.0.0.0 {exit-intf | next-hop-ip

Trang 46

Statically Learned Routes

Static Routes Example

Trang 47

Statically Learned Routes

Static IPv6 Routes Example

Trang 48

Dynamic Routing Protocols

Dynamic Routing

reachability and status of remote networks.

tables.

Trang 49

Dynamic Routing Protocols

IPv4 Routing Protocols

routing protocols including:

EIGRP – Enhanced Interior Gateway Routing Protocol

OSPF – Open Shortest Path First

IS-IS – Intermediate System-to-Intermediate System

RIP – Routing Information Protocol

Trang 50

Dynamic Routing Protocols

IPv4 Routing Protocols

Trang 51

Dynamic Routing Protocols

IPv6 Routing Protocols

routing protocols including:

OSPF v3

Trang 52

Dynamic Routing Protocols

IPv6 Routing Protocols

Trang 53

Anatomy of a Router

Trang 54

Anatomy of a Router

A Router is a Computer

Trang 55

Anatomy of a Router

Router CPU and OS

Trang 56

• Running configuration file

• IP routing and ARP tables

NVRAM Non-Volatile • Startup configuration file

Flash Non-Volatile • • IOS Other system files

Trang 57

Anatomy of a Router

Inside a Router

Trang 58

Anatomy of a Router

Router Backplane

Two 4 GB flash card slots

Double-wide eHWIC slots eHWIC 0 AUX

port

LAN interfaces

USB Ports Console

USB Type B

Console RJ45

Trang 59

Anatomy of a Router

Connecting to a Router

WAN Interface AUX port

LAN interfaces

Console USB Type B

Console RJ45

Trang 60

Anatomy of a Router

LAN and WAN Interfaces

Serial interfaces

LAN interfaces

Trang 61

Router Boot-up

Cisco IOS

Trang 62

Router Boot-up

Bootset Files

Trang 63

Router Boot-up

Router Bootup Process

System Bootstrap, Version 15.0(1r)M15, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport

<output omitted>

1.Perform the POST

and load the bootstrap program

2.Locate and load the Cisco IOS software

3.Locate and load the startup configuration file or enter setup

mode

Trang 64

Router Boot-up

Show Versions Output

Router# show version

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.2(4)M1, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2012 by Cisco Systems, Inc.

Compiled Thu 26-Jul-12 19:34 by prod_rel_team

ROM: System Bootstrap, Version 15.0(1r)M15, RELEASE SOFTWARE (fc1)

Router uptime is 10 hours, 9 minutes

System returned to ROM by power-on

System image file is "flash0:c1900-universalk9-mz.SPA.152-4.M1.bin"

Last reload type: Normal Reload

Last reload reason: power-on

DRAM configuration is 64 bits wide with parity disabled.

255K bytes of non-volatile configuration memory.

250880K bytes of ATA System CompactFlash 0 (Read/Write)

<Output omitted>

Technology Package License Information for Module:'c1900'

-Technology -Technology-package -Technology-package

Current Type Next reboot

-ipbase -ipbasek9 Permanent -ipbasek9

security None None None

data None None None

Configuration register is 0x2142 (will be 0x2102 at next reload)

Router#

Trang 65

Network Layer

Configuring a Cisco Router

Trang 66

Configure Initial Settings

Router Configuration Steps

Router> enable

Router# configure terminal

Enter configuration commands, one per line

.225 S0/0/0

G0/0 1

R1

PC1

PC2

Router> en Router# conf t

Enter configuration commands, one per line

R1(config)# line console 0

R1(config-line)# password cisco

R1(config-line)# login

R1(config-line)# exit

R1(config)#

R1(config)# line vty 0 4

R1(config-line)# password cisco

R1(config)# banner motd #

Enter TEXT message End with the character '#'.

***********************************************

WARNING: Unauthorized access is prohibited!

***********************************************

# R1(config)#

R1# copy running-config startup-config

Destination filename [startup-config]?

Building configuration

[OK]

Trang 67

.225 S0/0/0

G0/0 1

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,

%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,

changed state to up

R1(config-if)# exit

R1(config)#

Trang 68

.225 S0/0/0

G0/0 1

R1

PC1

PC2

R1# show ip interface brief

Interface IP-Address OK? Method Status Protocol

GigabitEthernet0/0 192.168.10.1 YES manual up up

GigabitEthernet0/1 192.168.11.1 YES manual up up

Serial0/0/0 209.165.200.225 YES manual up up

Serial0/0/1 unassigned YES NVRAM administratively down down

Vlan1 unassigned YES NVRAM administratively down down

R1#

R1# ping 209.165.200.226

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 209.165.200.226, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/9 ms

R1#

Trang 69

Configuring a Cisco Router

Configuring the Default Gateway

Trang 70

Configuring the Default Gateway

Default Gateway on a Host

192.168.10.0/24

192.168.11.0/24

G0/1 1

.1 G0/0

R1

.10 PC1

.10 PC2

.10 PC4

.10

192.168.11.0/24

G0/1 1

.1 G0/0

R1

.10 PC1

.11 PC2

.11 PC4

.10 PC3

Trang 71

Configuring the Default Gateway

Default Gateway on a Switch

192.168.11.0/24

.1 G0/1

.1 G0/0 R1

192.168.10.0/24

.10 PC1

.11 PC2

! Interface Vlan1

be able to mange the device remotely.

Trang 72

Chapter 4: Summary

Ngày đăng: 27/08/2017, 17:18

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w