24
© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-1 Operating Cisco IOS Software

chapter 5 - Cisco IOS.ppt

Embed Size (px)

Citation preview

Page 1: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-1

Operating Cisco IOS Software

Page 2: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-2

An Overview of Cisco Device Startup

Page 3: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-3

External Configuration Sources

Configurations can come from many sources.

Configurations will act in device memory.

Page 4: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-4

CLI is used to enter commands.

Operations vary on different internetworking devices.

Users type or paste entries in the console command modes.

Command modes have distinctive prompts.

Enter key instructs device to parse and execute the command.

Two primary EXEC modes are user mode and privileged mode.

Cisco IOS User Interface Functions

Page 5: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-5

There are two main EXEC modes for entering commands.

Cisco IOS Software EXEC Mode (User)

Page 6: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-6

Cisco IOS Software EXEC Mode (Privileged)

Page 7: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-7

Switch Command-Line Help Facilities

Page 8: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-8

Context-Sensitive Help

Page 9: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-9

Context-Sensitive Help (Cont.)

Page 10: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-10

SwitchX>Shape the future of internetworking by creating unpreced

Shape the future of internetworking by creating unprecedented value for customers, employees, and partners.

Enhanced Editing Commands

Page 11: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-11

Enhanced Editing Commands (Cont.)

Page 12: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-12

Router Command History

Page 13: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-13

Viewing the Configuration

Page 14: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-14

Displays the current and saved configuration

show running-config and show startup-config Commands

Page 15: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-15

Configuring a Switch Password

Page 16: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-16

Configuring the Login Banner

Defines and enables a customized banner to be displayed before the username and password login prompts.

SwitchX# banner login " Access for authorized users only. Please enter your username and password. "

Page 17: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-17

Telnet vs. SSH Access

Telnet

– Most common access method

– Insecure

SSH-encrypted !– The username command create the username and password for the SSH sessionUsername cisco password cisco

ip domain-name mydomain.com

crypto key generate rsa

ip ssh version 2

line vty 0 4 login local transport input ssh

Page 18: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-18

Cisco Catalyst 2960 Series

SwitchX(config-if)#switchport port-security [ mac-address mac-address | mac-address sticky [mac-address] | maximum value | violation {restrict | shutdown}]

SwitchX(config)#interface fa0/2SwitchX(config-if)#switchport mode accessSwitchX(config-if)#switchport port-securitySwitchX(config-if)#switchport port-security maximum 1SwitchX(config-if)#switchport port-security mac-address stickySwitchX(config-if)#switchport port-security violation shutdown

Configuring Port Security

Page 19: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-19

SwitchX#show port-security [interface interface-id] [address] [ | {begin | exclude | include} expression]

SwitchX#show port-security interface fastethernet 0/5Port Security              : EnabledPort Status                : Secure-upViolation Mode             : ShutdownAging Time                 : 20 minsAging Type                 : AbsoluteSecureStatic Address Aging : DisabledMaximum MAC Addresses      : 1Total MAC Addresses        : 1Configured MAC Addresses   : 0Sticky MAC Addresses       : 0Last Source Address        : 0000.0000.0000Security Violation Count   : 0

Verifying Port Security on the Catalyst 2960 Series

Page 20: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-20

SwitchX#sh port-securitySecure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action (Count) (Count) (Count)-------------------------------------------------------------------------- Fa0/5 1 1 0 Shutdown---------------------------------------------------------------------------Total Addresses in System (excluding one mac per port) : 0Max Addresses limit in System (excluding one mac per port) : 1024

SwitchX#sh port-security address Secure Mac Address Table-------------------------------------------------------------------Vlan Mac Address Type Ports Remaining Age (mins)---- ----------- ---- ----- ------------- 1 0008.dddd.eeee SecureConfigured Fa0/5 --------------------------------------------------------------------Total Addresses in System (excluding one mac per port) : 0 Max Addresses limit in System (excluding one mac per port) : 1024

Verifying Port Security on the Catalyst 2960 Series (Cont.)

Page 21: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-21

Disabling an Interface (Port)

shutdown

SwitchX(config-int)#

To disable an interface, use the shutdown command in interface configuration mode.

To restart a disabled interface, use the no form of this command.

Page 22: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-22

Overview of Cisco IOS Configuration Modes

Page 23: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-23

Commands Review Discussion

What does the command accomplish? From what configuration mode is the command executed?

Page 24: chapter 5 - Cisco IOS.ppt

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—2-24