Documente Academic
Documente Profesional
Documente Cultură
Cisco Public
Topics The Internetwork Operating System (IOS). Devices that have the IOS embedded.
Configuration files
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Internetwork Operating System Most Cisco devices use the Cisco IOS. Details vary with the device and feature set. Normal access through a command line.
Disaster recovery
When network access has failed Password recovery As well as general management
Console access does not require a password. Configure a password. Lock the door.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Telnet, SSH, Aux Later management can be via Telnet There must be an IP address on the port A password must be configured Secure shell gives better security AUX port can be used locally or via modem but by default does not show error messages
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
Configuration files Hold the commands that have been configured on the router to customise it.
Cisco Public
disable
Configure terminal
Exit or Ctrl+z
Router prompts
User EXEC mode Router>
Router#
Router(config)#
Router(config-if)# and others
9
EXEC modes You log in to User EXEC mode Router> You can give basic monitoring commands but cannot change the configuration
Enter enable to go to Privileged EXEC mode Router# Password may be used for security
You can give more commands and can go to configuration modes
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
10
Configuration modes Start in privileged EXEC mode and enter the configure terminal (config t) command Router# config t Router(config)# The prompt changes
Cisco Public
Leaving configuration modes From interface configuration mode there are several ways of getting to privileged EXEC Router(config-if)# exit Router(config)# exit Router# Router(config-if)# end Router# Router(config-if)# Ctrl+z Router#
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
12
Command Structure
Followed by <Enter>
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
13
? To get help ? Gives a list of commands available from the current prompt.
Command followed by space then ? Gives a list of keywords or arguments that can be used.
Start of command followed by ? with no space shows how the word can be continued.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
14
Shortened commands Router#show running-config Router#show run Router#sh ru It needs enough letters of each word to be unambiguous. (Tab key shows whole word) Router#s ru % Ambiguous command: s
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
15
Other error messages Switch#clock set % Incomplete command Switch#clock set 19:50:00 25 6 ^
16
Keyboard shortcuts
Tab
Backspace erases to left of cursor Ctrl+D erases at cursor (Delete does not) Ctrl+Z returns from any config mode to privileged exec mode
17
Show commands
Show ? To get a list Many different show commands to give information about every aspect of the router and its operation
Cisco Public
18
19
Cisco Public
20
Save configuration Router#copy running-config startupconfig Router#copy run start (shortened) Router#wr (Old fashioned, short for write, but it works and is safe.) Beware! A typing error in the copy command can delete the operating system. If you get an odd message about Flash hands off call for help.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
21
Hostname Router>enable Router#config t Router(config)#hostname Paris Paris(config)# Configure a suitable hostname so that you know which router you are managing and so that you can identify it in network documentation.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
22
Console password Paris(config)#line con 0 Paris(config-line)#password cisco Paris(config-line)#login Paris(config-line)#exit Restricts access via the console Use cisco as the password in labs. Use a proper strong password on production networks
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
23
Paris(config-line)#login
Paris(config-line)#exit
24
Enable and enable secret Paris(config)#enable secret class The password class is needed when you type enable to enter privileged exec mode This password is encrypted
25
26
Reload
Shuts down the router and then starts it again. If the configuration has changed then you are prompted to save it.
The running configuration in RAM is lost. The startup configuration from NVRAM is (usually) loaded into RAM on startup.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
27
Back up to TFTP server Start TFTP server software on host Paris#copy running-config tftp Remote host []? 172.16.1.1 Name of configuration file to write [Parisconfig]? Paris12Oct07
28
show run
Stop text capture Open saved file and
Cisco Public
29
Cisco Public
30
Paris#erase start
If you reload, then the router starts up with the default configuration. No passwords, no IP addresses etc.
Caution if you get this command wrong then you could erase something else, e.g. IOS
Cisco Public
31
Cisco Public
32
Cisco Public
33
Paris(config-if)#no shutdown
Paris(config-if)#exit Interface names vary, depending on whether the router is modular and on the bandwidth. E.g. interface Ethernet 0 on an older router
Cisco Public
34
DCE only
Cisco Public
35
Description
Paris(config)#interface fa0/0 Paris(config-if)#description Connects to Paris central switch Can include circuit and contact information Not needed for the operation of the router
Cisco Public
36
Switch interfaces
Switch physical interfaces do not have IP addresses They are active by default and do not need the no shutdown command. It can be useful to give them a description.
Cisco Public
37
Switch IP address
The switch IP address goes on a virtual interface, not a real one, normally VLAN1. SwA(config)#interface VLAN1 SwA(config-if)#ip address 172.16.255.1 255.255.0.0 SwA(config-if)#no shutdown
SwA(config-if)#exit
Cisco Public
38
Cisco Public
39
Cisco Public
40
Up or down
Interface status: Layer 1
Up Down Administratively down (no shutdown to bring up)
Protocol: Layer 2
Up
Cisco Public
41
Cisco Public
42
Network baseline
Measure and record performance
At different times Under different conditions Repeatedly over a period of time
Build up a record of network performance Useful in troubleshooting and optimising the network
Cisco Public
43
Cisco Public
44
Summary
Hierarchical Design model addresses performance, scalability, maintainability & manageability issues.
Traffic Analysis is used to monitor network performance. Hierarchical Design Model is composed of 3 layers:
Access Distribution
Core
Switches selected for each layer must meet the needs of each hierarchical layer as well as the needs of the business.
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
45
Cisco Public
46
Cisco Public
47