Configuring and Testing Your Network
Configuring and Testing Your Network
Configuring and Testing Your Network
Cisco Public
Objectives
Topics
The Internetwork Operating System (IOS).
Devices that have the IOS embedded. IOS commands available to a device.
Cisco Public
Cisco Public
Cisco Public
Cisco Public
Console access does not require a password. Configure a password. Lock the door.
Cisco Public
Cisco Public
Cisco Public
Cisco Public
10
Cisco Public
11
Cisco Public
12
Cisco Public
13
Cisco Public
14
Cisco Public
15
disable
Configure terminal
Exit or Ctrl+z
16
Configuration files
Hold the commands that have been configured on the router to customise it.
Running configuration in RAM holds commands that are in current use Startup configuration in NVRAM holds saved commands. These are kept when the power is off and usually copied back into RAM when the router is restarted.
Cisco Public
17
Flash
Keeps contents Holds IOS image
NVRAM
Keeps contents Holds startup configuration file
RAM
Volatile Holds runnning config, tables, queues etc
Cisco Public
18
EXEC modes
You log in to User EXEC mode Router>
You can give basic monitoring commands but cannot change the configuration
Cisco Public
19
Configuration modes
Start in privileged EXEC mode and enter the configure terminal (config t) command Router# config t Router(config)# The prompt changes
This is global configuration mode Additional commands take you to interface configuration, router configuration etc.
Cisco Public
20
Cisco Public
21
Command Structure
Followed by <Enter>
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
22
? 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.
Cisco Public
23
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
Cisco Public
24
25
Keyboard shortcuts
Tab completes a partial command
Backspace erases to left of cursor Ctrl+D erases at cursor (Delete does not)
Cisco Public
26
Needed with commands such as show running-config that produce more than one screen of text.
Cisco Public
27
Show commands
Show ? To get a list
Many different show commands to give information about every aspect of the router and its operation We use some of the most common.
Cisco Public
28
Cisco Public
29
Show interfaces
Gives statistics for all interfaces
In particular, says if the interface is up and if the protocol is up important in troubleshooting. Show interfaces serial 0/0 to show one selected interface You can shorten to show int s 0/0 Show ip interfaces gives IP statistics
Cisco Public
30
Save configuration
Router#copy running-config startup-config 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.
Cisco Public
31
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.
Cisco Public
32
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
Cisco Public
33
Paris(config-line)#exit
Allows and restricts access via 5 vty lines Use cisco as the password in labs. Use a proper strong, different password on production networks
Cisco Public
34
Cisco Public
35
Cisco Public
36
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.
Cisco Public
37
Cisco Public
38
39
Cisco Public
40
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
41
Cisco Public
42
Cisco Public
43
Paris(config-if)#exit
Interface names vary, depending on whether the router is modular and on the bandwidth.
Cisco Public
44
Paris(config-if)#no shutdown
Paris(config-if)#exit
DCE only
Cisco Public
45
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 Valuable for documentation as it is included in the configuration listing
Cisco Public
46
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
47
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
48
Cisco Public
49
Cisco Public
50
Up or down
Interface status: Layer 1
Up Down Administratively down (no shutdown to bring up)
Protocol: Layer 2
Up Down (no keepalive signal received)
Cisco Public
51
Cisco Public
52
Network baseline
Measure and record performance
At different times Under different conditions Repeatedly over a period of time
Cisco Public
53
Cisco Public
54
Summary
Cisco Public
55
Cisco Public
56