sybex ccna 640-802 chapter 4: cisco’s ios and sdm

48
Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Upload: alvin-stevenson

Post on 13-Dec-2015

271 views

Category:

Documents


14 download

TRANSCRIPT

Page 1: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Sybex CCNA 640-802Chapter 4: Cisco’s IOS and SDM

Page 2: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Chapter 4 Objectives

• The Cisco router IOS• Enhanced editing• Administrative functions

– Hostnames– Banners– Passwords– Interface descriptions

• Verifying your configuration

2

Page 3: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Cisco Router IOS

• Carries network protocols and functions

• Connects high-speed traffic between devices

• Adds security to control access

• Provides scalability for growth

• Supplies reliability– You should understand that routers are seldom

directly connected to user devices, such as workstations, printers, etc. Normally, a router is connected to another router, or it is connected to a switch (or a hub in an older environment) which is in turn connected to workstations or other devices found in an office.p. 173

Page 4: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Access (Connecting to a Cisco Router - 173)

• Console port (console)– Rollover cable (each end is a mirror-image o/t other)

• RJ-45 to DB-9• RJ-45 to DB-25

• Auxiliary port (AUX)– Can function like a console port– Or, can accept modem commands, i.e., from

sources outside the network (i.e., “out of band”)

• Virtual terminal (VTY)– This is for telnet access– This kind of access is from within the network (i.e.,

“in band”.

Page 5: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Connecting To A Cisco Router

Cisco 2811

Cisco 1841

Page 6: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Cisco ISR Routers

• Distinguish older Cisco routers from the newer, ISR routers

• The “Integrated Services Routers” line runs a “hardened” version of Linux and is generally deployed at branch offices.

• ISR routers are part of a trend to include more services in routers – probably making them more profitable.

Page 7: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Connecting To A Cisco Router

Page 8: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Connecting Via Terminal Programs• Establish a connection

– Physical connection through console• 9600 bits per second• data bits 8• stop bits 1• parity “none” • flow control “none”

– Logical connection through VTY – Terminal programs

• HyperTerminal, • Microphone Pro, • ProComm Plus, • Telix, • Tera Term

Page 9: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Bringing up a Router - pg 175

• Boot-up process:1: POST

2: Looks for the Cisco IOS from Flash memory

3: IOS loads & looks for a valid configuration;• startup-configstartup-config• stored in nonvolatile RAM (NVRAM)• i.e., the IOS is stored in a compressed state in non-

volatile memory, or NVRAM• When the router boots it is “decompressed” into RAM.

4: If a valid config is not found in NVRAM:• setupsetup mode mode

p. 177

Page 10: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Bringing up a Router - pg 175-76

• After the POST, some hardware information is listed. Specifically, memory information:

– Copyright (c) 1998-2003 by Boson Software

– C2500 platform with 20480 Kbytes of main memory [RAM]

– program load complete, entry point:0x8000080000, size:0x43b7fc

Self decompressing the image :

– ########################################

– ########################################

– ########################################

– ########################################

– ########################################

– ################# [OK]

– Cisco Internetwork Operating System Software

– IOS ™ C2500 Software (C2500-IK937S2-M), Version 12.3(20) Release software fc2 [IOS version]

– IOS (tm) 2500 Software(C2500-enterprise), Version 5.0, RELEASE SOFTWARE

– Copyright (c) 1998-2003 by Cisco Systems, Inc.

– -- some output omitted --

– Boson 2500 (BOSS) emulator (revision 5.0) with 20480K/512K simulated memory.

– BOSS, Version 5.0

– 1 Ethernet/IEEE 802.3 interface(s)

– 3 ISDN Basic Rate interface(s)7K bytes of simulated non-volatile configuration memory.

– 8192K bytes of simulated processor flash (Read/Write)

Page 11: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Bringing up a Router• Boot-up process:

Page 12: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Setup Mode

• Basic Management Setup

• Extended Setup

• Command-Line Interface

Page 13: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Command-Line Interface (CLI)

• More flexible than setup mode.

• To use the CLI, just say “No” to entering the initial configuration dialog.

• Initial prompt consists of two parts– Hostname– Greater than symbol (>)

p. 179

Page 14: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Logging into the Router

• User mode: – Router>– Used mostly to view statistics

• Privileged mode:– Router#– Used to view & change router configuration

Page 15: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Overview of Router Modes

• Global changes:– config terminal or config t– Changes made to running-configrunning-config (DRAM)– To change the startup-configstartup-config (NVRAM)

• config memory or config mem

• Note: Any configuration changes need to be placed into RAM.

• Typing “config mem” or “config net” (from a TFTP host) will append the current running-running-configconfig

p. 1

Page 16: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Configuration Modes

• Global configuration mode– Router(config)#

• Interface mode– Router(config–if)#

• Line configuration mode– Router(config-line)#

• Router configuration mode– Router(config-router)#

Page 17: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Configuration Modes

Page 18: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Configuration

• CLI Prompts

• Interfaces

• Sub-interfaces

• Line Commands

• Routing Protocol Configurations

Page 19: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM
Page 20: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Editing & Help Features

• Commands starting with a certain letterRouter#c?

clear clock configure connect copy

• Enhanced Editing Commands

• Router-Command History

• Gathering Basic Routing Information– show versionshow version

Page 21: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Enhanced Editing Commands

Page 22: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Enhanced Editing Commands (cont.)

Page 23: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Command History

Page 24: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Gathering Basic Routing

Information

Page 25: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Administrative Functions

The administrative functions that you can configure on a router and switch are

• Hostnames• Banners• Passwords• Interface descriptions

Page 26: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Hostnames & Descriptions

• HostnamesRouter(config)#hostname todd

todd(config)#

• DescriptionsAtlanta(config)#int e0

Atlanta(config-if)#description Sales Lan

Page 27: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Banners

• Purpose: welcome message

• Types– exec: set EXEC process creation banner– incoming: set incoming terminal line banner– login: login banner– motd: set “Message of the Day” banner

• Delimiting character

Page 28: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Banners

Page 29: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Setting the Passwords

• 5 passwords:– 1st two used to set your enable password

• Used to secure privileged mode; • Router>enable• Or Router>en (because no other commands at privileged level

. begin with “en”

– Other three are used to configure a password in useruser mode via:

• console port• auxiliary port• Telnet

Page 30: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords• Enable passwords

– Router(config)#enable password cisco– Router(config)#enable secret cisco

Note: the secret password supersedes the enable password, i.e., if you set both passwords, you will be asked for the secret password.

• Auxiliary Password

• Console Password

• Telnet Password

• Encrypting Your PasswordRouter(config)#service password-encryption

Page 31: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords

Page 32: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords

Page 33: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords

Page 34: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords

Page 35: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Passwords

Page 36: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Interface DescriptionsSetting descriptions on an interface is helpful to the administrator and, like the hostname, only locally significant. The description command is a helpful one because you can, for instance, use it to keep track of circuit numbers.

Here’s an example:Atlanta(config)#int e0

Atlanta(config-if)#description Sales Lan

Atlanta(config-if)#int s0

Atlanta(config-if)#desc Wan to Miami circuit:6fdda4321

You can view the description of an interface either with the show running-config command or the show interface command.

Page 37: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Interfaces

• Bringing up an Interfaceno shutdownshutdownshow interface

• Configuring an IP Address on an InterfaceRouter(config)#int e0Router(config-if)#ip address 172.16.10.2 255.255.255.0Router(config-if)#no shut

• Serial Interface Commandsclock rate & bandwidth (entered in kilobits)

Page 38: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Configuring The Time And Date

Page 39: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Viewing, & Saving Configurations

• Viewing & Saving Configurations– running-configrunning-config saved in DRAM– startup-configstartup-config saved in NVRAM

copy run start

sh run

sh start

erase startup-config

Page 40: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Verifying Your Configuration

Tools:– show running-config– show startup-config– ping– show cdp nei detail– trace– telnet

Page 41: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Other Verification Methods

• Verifying with the show interface command– Router#show interface ?

• Verifying with the show ip interface command (layer 3 info)– Router#show ip interface– Router#show ip interface brief– Router#show controllers

Page 42: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Show Run command• Router# show run

• Version 12.1

• service timestamps debug uptime

• service timestamps log uptime

• no service password-encryption

• hostname Router

• ip subnet-zero

• !

• interface Serial0

• ip address 172.16.12.1 255.255.0.0

• no ip directed-broadcast

• clock rate 56000

• !

• interface Serial1

• no ip address

• no ip directed-broadcast

• shutdown

• !

• interface Ethernet0

• ip address 192.168.1.1 255.255.255.0

• no ip directed-broadcast

• !

• interface Ethernet1

• no ip address

• no ip directed-broadcast

• shutdown

• interface Bri0• no ip address• no ip directed-broadcast• shutdown• !• !• router igrp 1• network 192.168.1.0• network 172.16.0.0• !• ip classless• no ip http server• !• !• line con 0• transport input none• line aux 0• line vty 0 4• !• no scheduler allocate• end

Page 43: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Components

• ROM

• Flash memory

• NVRAM

• RAM/DRAM

Page 44: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Components

• ROM– Read-only memory (ROM)– Bootstrap program– ROM monitor firmware– ROM monitor mode

• (>) or (rommon 1>)

Page 45: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Components

• Flash memory– Erasable, programmable, read-only memory

(EPROM)– Contains the Cisco IOS– Can store multiple IOS– “show version” command (sh ver)– “show flash” command (sh fla)

Page 46: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Components

• NVRAM– Nonvolatile random access memory (NVRAM)– Special type of RAM– Not cleared when router is rebooted– Startup configuration file– “show start” command (sh sta)

Page 47: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Router Components

• Random access memory (RAM)– Volatile– Information is not retained during router reboot– Running configuration– “show running-config” command (sh ru)– “show memory” command (sh me)– “show buffers” command (sh buf)

Page 48: Sybex CCNA 640-802 Chapter 4: Cisco’s IOS and SDM

Summary

• Go through all the written labs and review questions• Review answers in class

48