basics to configure nw device

40
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public ITE I Chapter 6 1 Chapter Eleven Configuring and Testing Your Network Haitham A. El-Ghareeb 2009 / 2010

Upload: haitham-a-el-ghareeb

Post on 05-Dec-2014

2.325 views

Category:

Technology


3 download

DESCRIPTION

CCNA Exploration Chapter Eleven

TRANSCRIPT

Page 1: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE I Chapter 6 1

Chapter Eleven

Configuring and Testing Your Network

Haitham A. El-Ghareeb2009 / 2010

Page 2: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 2

Cisco IOS

Network Device cannot function without an Operating System.

Cisco Internetwork Operating System (IOS) is the system software in Cisco Devices

Cisco IOS provides devices with the following network services:

–Basic routing and switching functions

–Reliable and secure access to networked resources

–Network scalability

Services provided by Cisco IOS are generally accessed using Command Line Interface (CLI)

Page 3: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 3

Cisco IOS (Cont.)

IOS file is several megabytes in size and is stored in a semi permanent memory area called Flash.

Flash memory provides non-volatile storage.

Using flash memory allows IOS to be upgraded to newer versions or to have new features added.

In many router architectures, IOS is copied into RAM when the device is powered on and the IOS runs from RAM. This function increases the performance of the device.

Page 4: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 4

Cisco IOS (Cont.)

Page 5: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 5

Cisco IOS Access Methods

Most Usual Methods–Console

–Telnet or SSH

–AUX Port

Page 6: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 6

Cisco IOS Access Methods (Cont.)

Console–Also known as CTYCTY Line

–Uses low speed serial connection to directly connect a computer or terminal to the console port

–Management port that provides out-of-band access to the router

–Accessible even if NO networking services have been configured

–Often used to access a device when the networking services have not been started or have failed

–Examples of console use are:

•Initial configuration

•Disaster recovery

•Password Recovery

–By default, the console conveys the device startup, debugging, and error messages

–The device should be located in a locked room or requirement rack to prevent physical access

Page 7: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 7

Cisco IOS Access Methods (Cont.)

Telnet and SSH–A method for RemotelyRemotely accessing a CLI session

–Require active networking serviceactive networking service (at least on active interface configured with Layer 3 Address)

–Cisco IOS include a Telnet Server ProcessTelnet Server Process, and a Telnet ClientTelnet Client

–Secure Shell (SSH) Secure Shell (SSH) protocol is a more SecureSecure method

–As a best practice, always use SSH in place of TelnetAs a best practice, always use SSH in place of Telnet

–IOS Devices also include SSH ServerServer and ClientClient

Page 8: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 8

Cisco IOS Access Methods (Cont.)

AUX (Auxiliary)–Establish a CLI Session remotely via a telephone dialup connection using a modem connected to the router’s AUX port

–Doesn’t require any networking services to be configured

–Can also be used locally; like console port

–Not all routers have AUX port

–Console is preferred over AUX in troubleshooting because it displays router startup, debugging, and error messages by default

–The only time AUX is used locally instead of the console port is when there are problems using console port

Page 9: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 9

Configuration Files

Network Devices depend on two types of software for their operation:

–Operating System:Operating System: facilitates the basic operation of the device’s hardware components

–Configuration Files: Configuration Files: contain Cisco IOS software commands used to customize functionality of the device. Commands are parsed by Cisco IOS

Types of Configuration Files–Running Configuration File: Running Configuration File: used during the current operation of the device | Changes will immediately affect the operation, RAM

–Startup Configuration File:Startup Configuration File: used as the backup configuration and is loaded when the device is started (Stored in NVRAM)

Page 10: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 10

Cisco IOS Modes

IOS is a modal OS. Major Modes are:–User Executive Mode

–Privileged Executive Mode

–Global Configuration Mode

–Other specific configuration Mode

Page 11: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 11

IOS Primary Modes

User EXEC Mode Privileged EXEC Mode

Allows only a limited no. of basic monitoring commands

Execution of configuration and management

commands

Doesn’t allow execution of any commands that might

change the device’s configuration

Debugging, Testing

The entrance of the CLI The Higher Level

Doesn't require Authentication

By default, doesn't require authentication

Identified by the prompt> Identified by the prompt#

Page 12: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 12

Basic IOS Command Structure

Page 13: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 13

Using CLI Help (1)

Context Sensitive Help

Page 14: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 14

Using CLI Help (2)

Command Syntax Check

Page 15: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 15

IOS “Examination” Commands

Page 16: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 16

Router#Show version

Software Version, Bootstrap Version, System up-time, System restart info, Software image name, Router Type and Processor

type, Memory type and allocation (Shared/Main), Software Features, Hardware Interfaces, Configuration Register

Page 17: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 17

Other Show Commands

Command Function

show arp Displays the ARP table of the device

show mac-address-table Displays the MAC table of a switch

show startup-config Displays the saved configuration located in NVRAM

show running-config Displays the contents of the currently running configuration file or

the configuration for a specific interface, or map class information.

show ip interfaces Displays IPv4 statistics for all interfaces on a router

Show ip route Displays the next hop and checks its status

Page 18: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 18

IOS Configuration Modes

Page 19: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 19

Configuring IOS: Host Name

Page 20: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 20

Limiting Device Access – Configure Passwords

Every device shall have locally configured passwords to limit access

The passwords introduced here are:–Console Password

–Enable Password

–Enable Secret Password

–VTY password

Page 21: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 21

Console Password

Switch(config)#line console 0

Switch(config-line)#password password

Switch(config-line)#login

Page 22: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 22

Telnet and Password Encryption

Page 23: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 23

Login Banner

Page 24: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 24

Show Running Configuration

Page 25: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 25

Backing Up Configuration Offline

Page 26: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 26

Removing All Configuration

Router#erase startup-config

Router#Reload

Caution: Caution: Exercise care when using the erase command. This command can be used to erase any file in the device. Improper use of the command can erase the IOS itself or another critical file

Page 27: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 27

Configure Router Interfaces

Page 28: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 28

Configure Router Ethernet

Page 29: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 29

Configure Router Serial Interface

Page 30: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 30

Router Interfaces Description

Page 31: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 31

Switch Interface VLAN

Important for Management

Needed on the Switches to Ping and Telnet Routers

Page 32: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 32

Testing Interface Assignment

Page 33: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 33

Testing Local Network

Page 34: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 34

Testing Gateway Connectivity

Page 35: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 35

Putting it all Together

Test 1: Local Loop

Test 2: Local NIC

Test 3: Ping Local Gateway

Test 4: Ping Remote Host – Failure

Test 5: Traceroute to Remote Host – Failure at First Hop

Test 6: Examine Host Configuration for Proper Local Gateway

Display Figure

Page 36: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 36

Basic Network Baselines A Network BaselineA Network Baseline is a Process that involves monitoring

network performance and behavior over a certain period of time allowing for a point of reference when wanting to monitor performance in the future.

One methodmethod for starting a baseline is to copy and paste the results from an executed ping, trace, or other relevant command into a text file. These text files can be time stamped with the date and saved into an archive for later retrieval.

The importanceimportance of creating documentation cannot be emphasized enough. Verification of host-to-host connectivity, latency issues, and resolutions of identified problems can assist a network administrator in keeping a network running as efficiently as possible.

Page 37: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 37

Learning About the Nodes on the Network

arp command lists all devices currently in the ARP cache. The cache can be cleared by using the arp –d

Ping Sweep

Page 38: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 38

Switch Connections

Page 39: Basics to Configure NW Device

© 2006 Cisco Systems, Inc. All rights reserved. Cisco PublicITE 1 Chapter 6 39

Lab Test

Perform the Basic Configurations for Router / Switch–Authenticate Executive Privileged Mode via Clear and Encrypted Passwords

–Authenticate CTY, VTY

–Create the suitable Log-in and MOTD Banners

–Apply the Address Schema given to you in the Exam Paper

Verify Connectivity, Debug and Correct the Issues

HTTP and DNS Activity

Page 40: Basics to Configure NW Device