Chapter 6: Network Layer

Similar documents
Network Layer Week 5. Module : Computer Networks Lecturer: Lucy White Office : 324

CCNA 1 Chapter 6 v5.0 Exam Answers 2013

Lab Configuring Basic Router Settings with IOS CLI (Instructor Version Optional Lab)

Password Recovery Procedure for the Cisco 1900 Series Integrated Services Routers

SEMESTER 2 Chapter 1 Planning and Cabling a Network V 4.0

TELECOMMUNICATION MANAGEMENT AND NETWORKS

Chapter 6: Network Layer

Chapter 6: Network Layer. Introduction to Networks v5.1

Lab Configuring IPv4 Static and Default Routes (Solution)

Lab 7 Configuring Basic Router Settings with IOS CLI

KIM DONNERBORG / RTS. Cisco Lab Øvelse Af Kim Donnerborg / RTS. Side 0 af 8

Lab - Troubleshooting Connectivity Issues

Configure Initial Router Settings on Cisco 4000 Series ISRs

Lab 2.8.1: Basic Static Route Configuration

Lab Using the CLI to Gather Network Device Information Topology

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

Introduction to Routing and Packet Forwarding

Lab Configuring Per-Interface Inter-VLAN Routing (Solution)

Lab- Troubleshooting Basic EIGRP for 1Pv4

Packet Tracer - Connect a Router to a LAN (Instructor Version)

Lab Configuring Per-Interface Inter-VLAN Routing (Instructor Version)

Lab - Exploring Router Physical Characteristics

Lab Configuring and Verifying Standard IPv4 ACLs Topology

Lab Configuring 802.1Q Trunk-Based Inter-VLAN Routing (Instructor Version Optional Lab)

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Basic Router Configuration

Chapter 6: Network Layer

Chapter 1 Lab 1-1, Basic RIPng and Default Gateway Configuration

Lab Configuring and Verifying Standard IPv4 ACLs (Instructor Version Optional Lab)

RealCiscoLAB.com. Chapter 2 Lab 2-2, EIGRP Load Balancing. Topology. Objectives. Background. CCNPv6 ROUTE

How to Configure a Cisco Router Behind a Non-Cisco Cable Modem

Password Recovery Procedure for the Cisco 1700 and 1800 Series Routers

CCNA Routing and Switching: Routing and Switching Essentials 6.0. Instructor Lab Manual

Chapter 4: Routing Concepts. Routing & Switching

co Password Recovery Procedure for the Cisco 1700 Series R

Chapter 8 Lab 8-3, Configuring 6to4 Tunnels

Configuring the SM-1-STM1

Lab Configuring Basic RIPv2 (Solution)

Lab Configuring IGRP Instructor Version 2500

ord Recovery Procedure for the Cisco Catalyst 8510 Multiserv

Distance vector Routing protocols. 2000, Cisco Systems, Inc. 9-1

RealCiscoLAB.com. Chapter 6 Lab 6-2, Using the AS_PATH Attribute. Topology. Objectives. Background. CCNPv6 ROUTE

CCNA Semester 2 labs. Labs for chapters 2 10

OSI Data Link & Network Layer

Table of Contents. Cisco Password Recovery Procedure for the Cisco 2000, 2500, 3000, 4000, AccessPro, 7000 (RP), AGS, IGS, STS

Chapter 3: Using Maintenance & Troubleshooting Tools and Applications

Lab Configuring and Verifying Standard ACLs Topology

Lab Troubleshooting Using traceroute Instructor Version 2500

Lab 3: Basic Device Configuration

Lab- Configuring Basic Single-Area OSPFv2

Lab 3.5.1: Basic Frame Relay

Password Recovery Procedure for the Cisco 3600 and 3800 Series Routers

Chapter 5 Lab 5-1 Inter-VLAN Routing INSTRUCTOR VERSION

Lab Troubleshooting Routing Issues with show ip route and show ip protocols Instructor Version 2500

Lab 5: Basic VLAN Configuration

RealCiscoLAB.com. Inter-VLAN Routing with an Internal Route Processor and Monitoring CEF Functions

Lab VTY Restriction Instructor Version 2500

RR> RR> RR>en RR# RR# RR# RR# *Oct 2 04:57:03.684: %AMDP2_FE-6-EXCESSCOLL: Ethernet0/2 TDR=0, TRC=0 RR#

Lab Configuring IPv6 Static and Default Routes (Solution)

Lab Catalyst 2950T and 3550 Series Basic Setup

Password Recovery Procedure for the Cisco 801, 802, 803, 804, 805, 811, and 813 Series Routers

LAB5: OSPF IPv4. OSPF: Stub. Disclaimer

Chapter 5 Router and IOS Basics

Lab: Basic Static Route Configuration

Route between VLANs using a 3560 switch with an internal route processor using Cisco Express Forwarding (CEF).

Final exam study Guide

CCNA Semester 1 labs. Part 1 of 2 Labs for chapters 1 7

CCNA Semester 2 labs. Part 2 of 2 Labs for chapters 8 11

Lab 19a. Router On A Stick

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Lab Troubleshooting Routing Issues with debug Instructor Version 2500

Chapter 6 Lab 6-3, Gateway Load Balancing Protocol (GLBP) INSTRUCTOR VERSION

Lab Securing Network Devices

CIS 83 LAB 3 - EIGRP Rich Simms September 23, Objective. Scenario. Topology

Lab Managing Router Configuration Files with Terminal Emulation Software

Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED

Configuration and Management of Networks

Lab - Configuring Multi-area OSPFv3 Topology

Configuring GRE Tunnel Over Cable

Module 9, Assignment 7

outing and Switching Elective : Le

Lab - Building a Switch and Router Network

OSI Data Link & Network Layer

Lab : Challenge OSPF Configuration Lab. Topology Diagram. Addressing Table. Default Gateway. Device Interface IP Address Subnet Mask

Chapter 10 - Configure ASA Basic Settings and Firewall using ASDM

Lab Configuring Basic Switch Settings (Solution)

Case Study 2: Frame Relay and OSPF Solution

Configuring and Troubleshooting Frame Relay

Lab - Configuring a Switch Management Address

OSI Data Link & Network Layer

Layer3 VPN with OSPF Protocol between CE-PE

RealCiscoLAB.com. Configure inter-vlan routing with HSRP to provide redundant, fault-tolerant routing to the internal network.

Chapter 7 Lab 7-2, Using the AS_PATH Attribute

Lab - Configuring IPv6 Addresses on Network Devices

Lab 2.5.1: Basic PPP Configuration Lab

2. Which two functions of the OSI model occur at layer two? (Choose two.) physical addressing encoding routing cabling media access control

config mode: Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Lab Configuring HSRP and GLBP Topology

Configuring the Cisco IOS MGCP Gateway

Lab - Troubleshooting Standard IPv4 ACL Configuration and Placement Topology

Transcription:

Chapter 6: Network Layer Introduction to Networks Intro to Networks v5

Network Layer Intro to Networks v5 2

The Network Layer End to End Transport processes Addressing end devices Encapsulation of Packets Routing De-encapsulating Intro to Networks v5 3

Network Layer Protocols Common Network Layer Routed Protocols Internet Protocol version 4 (IPv4) Internet Protocol version 6 (IPv6) Legacy Network Layer Protocols Novell Internetwork Packet Exchange (IPX) AppleTalk Connectionless Network Service (CLNS/DECNet) Intro to Networks v5 4

Characteristics of IP Intro to Networks v5 5

IP - Connectionless When connectionless protocols are implemented at the lower layers of the OSI model, upper-layer connection-oriented protocols are usually used to acknowledge the data receipt and request the retransmission of missing data. Intro to Networks v5 6

IP Best Effort Delivery Intro to Networks v5 7

IP Media Independent Intro to Networks v5 8

Encapsulating IP Intro to Networks v5 9

IPv4 Packet Header Version, Differentiated Services (DS), Time-to-Live (TTL),Protocol, Source IP Address, Destination IP Address, Internet Header Length (IHL), Total Length, Header Checksum, Identification, Flags, Fragment Offset Differentiated services is responsible for defining the priority of the packet Byte 1 Byte 2 Byte 3 Byte 4 Version IP Header Length Differentiated Services DSCP ECN Total Length Identification Flag Fragment Offset Time To Live Protocol Header Checksum Source IP Address Destination IP Address Options (optional) Padding Intro to Networks v5 10

Sample IPv4 Headers Intro to Networks v5 11

Introducing IPv6 Increased address space Improved packet handling Integrated security Eliminates the need for NAT because any host or user can get a public IPv6 network address because the number of available IPv6 addresses is extremely large: 4 billion IPv4 addresses 4,000,000,000 340 undecillion IPv6 addresses 340,000,000,000,000,000,000,000,000,000,000,000,000 Intro to Networks v5 12

Encapsulating IPv6 Intro to Networks v5 13

IPv6 Packet Header The Flow Label field informs network devices to maintain the same path for real-time application packets Byte 1 Byte 2 Byte 3 Byte 4 Version Traffic Class Flow Label Payload Length Next Header Hop Limit Source IP Address Destination IP Address Intro to Networks v5 14

Sample IPv6 Header Intro to Networks v5 15

Host Packet Forwarding Decision Hosts have to keep their own local routing table that contains a route to the loopback interface, a local network route, and a remote default route to ensure that their packets are directed to the correct network destination Intro to Networks v5 16

Host Tables Hosts must maintain their own, local, routing table to ensure that network layer packets are directed to the correct destination network. The local table of the host typically contains: Direct connection Local network route Local default route R Intro to Networks v5 17

Sample IPv4 Host Routing Table Two commands can be used on a Windows host to display the routing table: route print netstat -r Intro to Networks v5 18

Sample IPv6 Host Routing Table Intro to Networks v5 19

Router Packet Forwarding Decision The router will switch the packet to the directly connected interface immediately after matching the destination IP address to a network on a directly connected routing table entry Intro to Networks v5 20

Directly Connected Routing Table Entries PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 640.0 R2 10.0/24 192681.0/24 10.2.0/24 A B C C 19268.0/24 is directly connected, GigabitEthernet0/0 L 19268/32 is directly connected, GigabitEthernet0/0 A B C Identifies how the network was learned by the router. Identifies the destination network and how it is connected. Identifies the interface on the router connected to the destination network. Intro to Networks v5 21

Remote Network Routing Table Entries PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 640.0 R2 10.0/24 192681.0/24 10.2.0/24 D 10.0/24 [90/2170112] via 20965.200.226, 00:00:05, Serial0/0/0 A B C D E F G Identifies how the network was learned by the router. Identifies the destination network. Identifies the administrative distance (trustworthiness) of the route source. Identifies the metric to reach the remote network. Identifies the next hop IP address to reach the remote network. Identifies the amount of elapsed time since the network was discovered. Identifies the outgoing interface on the router to reach the destination network. Intro to Networks v5 22

IPv4 Router Routing Table Next Hop PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 R2 10.0/24 192681.0/24 10.2.0/24 R1#show ip route Codes: L - local, C - connected, S - static, 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 inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set D D C L C L C L R1# 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks 10.0/24 [90/2170112] via 20965.200.226, 00:00:05, Serial0/0/0 10.2.0/24 [90/2170112] via 20965.200.226, 00:00:05, Serial0/0/0 19268.0/24 is variably subnetted, 2 subnets, 3 masks 19268.0/24 is directly connected, GigabitEthernet0/0 19268/32 is directly connected, GigabitEthernet0/0 192681.0/24 is variably subnetted, 2 subnets, 3 masks 192681.0/24 is directly connected, GigabitEthernet0/1 192681/32 is directly connected, GigabitEthernet0/1 20965.200.0/24 is variably subnetted, 2 subnets, 3 masks 20965.200.224/30 is directly connected, Serial0/0/0 20965.200.225/32 is directly connected, Serial0/0/0 Intro to Networks v5 23

Hops A hop is an intermediary Layer 3 device (router) that a packet has to traverse to reach its destination A packet from PC-1 to PC-4 has to traverse how many hops? 3 Intro to Networks v5 24

Router Memory Memory RAM ROM Volatile / Non-Volatile Volatile Non-Volatile Stores Running IOS Running configuration file IP routing and ARP tables Packet buffer Basic diagnostic software Bootup instructions Limited IOS NVRAM Non-Volatile Startup configuration file Flash Non-Volatile IOS Other system files Intro to Networks v5 25

Router Bootup Process A. B. C. ROM Basic IOS Rom Monitor Mode A. B. C. Intro to Networks v5 26

Router Bootup Process Routing table and ARP cache will be lost when the router loses power, is turned off, or restarted The IOS image file and startup configuration are copied into RAM as a router, with the default configuration register setting, boots up If the full IOS cannot be found, the IOS image held in ROM would be used to boot the router A packet to a destination host in the same LAN will be sent directly to the destination host Intro to Networks v5 27

Show Version 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 IOS Information 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.spa52-4.m1.bin" Last reload type: Normal Reload Last reload reason: power-on <Output omitted> Cisco CISCO1941/K9 (revision 1.0) with 446464K/77824K bytes of memory. Processor board ID FTX1636848Z 2 Gigabit Ethernet interfaces 2 Serial(sync/async) interfaces 1 terminal line 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' ROM Information IOS Image file RAM Interfaces NVRAM for Configuration file Flash for IOS files ----------------------------------------------------------------- Technology Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------ ipbase ipbasek9 Permanent ipbasek9 security None None None data None None None Configuration Register setting Configuration register is 0x2142 (will be 0x2102 at next reload) Router# Intro to Networks v5 28

Router Configuration Steps PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 R2 10.0/24 192681.0/24 10.2.0/24 Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R1 R1(config)# OR Router> en Router# conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ho R1 R2(config)# R1(config)# enable secret class R1(config)# 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-line)# login R1(config-line)# exit R1(config)# R1(config)# service password-encryption R1(config)# 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] R1# Intro to Networks v5 29

Configure LAN Interfaces LAN and WAN interfaces will allow access via the VTY lines to configure the router PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 R2 10.0/24 192681.0/24 10.2.0/24 R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# R1(config)# interface gigabitethernet 0/0 R1(config-if)# ip address 19268 255.255.255.0 R1(config-if)# description Link to LAN-10 R1(config-if)# no shutdown %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up R1(config-if)# exit R1(config)# R1(config)# int g0/1 R1(config-if)# ip add 192681 255.255.255.0 R1(config-if)# des Link to LAN-11 R1(config-if)# no shut %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)# Intro to Networks v5 30

Verify Interface Configuration A configured and activated router interface must be connected to another device in order to operate PC1 PC2 19268.0/24 G0/0 G0/1 R1 20965.200.224 /30.225 S0/0/0.226 R2 10.0/24 192681.0/24 10.2.0/24 R1# show ip interface brief (Summary of interfaces) Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0 19268 YES manual up up GigabitEthernet0/1 192681 YES manual up up Serial0/0/0 20965.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 20965.200.226 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20965.200.226, timeout is 2 seconds:!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/9 ms R1# Intro to Networks v5 31

Configuring the Default Gateway A computer MUST have an IP address, a subnet mask, and a default gateway address to communicate on the network DNS server (optional) is usually configured PC1 PC2 19268.0/24 G0/0 R1 G0/1 PC1 PC2 1 19268.0/24 G0/0 R1 G0/1 PC3 PC3 PC4 192681.0/24 PC4 1 192681.0/24 Intro to Networks v5 32

Default Gateway on a Switch Switch Virtual Interface (SVI) Management VLAN S1#show running-config Building configuration...! <output omitted> service password-encryption! hostname S1! Interface Vlan1 ip address 19268.50! ip default-gateway 19268 <output omitted> PC1 19268.0/24 192681.0/24 PC2 1 S1.50 G0/0 R1 G0/1 S2 If the default gateway were not configured on S1, response packets from S1 would not be able to reach the administrator at 192681. The administrator would not be able to mange the device remotely. Intro to Networks v5 33

Intro to Networks v5 34