2
Accessing the
router and
switch directly
3
Console Port on 2950 Switch
4
Management port – Console Port connection
5
Serial Port
6
Management port – AUX port connection
<Router Output>
8
Terminal Emulators
• HyperTerminal: Comes with Windows
• Teraterm: Free download (recommended)
• Settings:
– 9600 Baud
– 8 Data Bits
– 1 Stop Bit
– No Parity
9
Using HyperTerminal
Settings
Match
serial port
on PC
10
Teraterm
11
Connecting console interfaces
<Router Output>
12
Booting up the Switch and the
Router
Power-up the router (and switch) – No
configuration
If the routers do not have a saved configuration.
After several lines of information on the screen you should eventually see:
Router>
14
Power-up the router (and switch) – Has
Configuration
The router has a pre-existing configuration.
If after you power-up the router, instead of getting the previous message, you get:
Router>
Router> enable
If you are prompted for a password type: class or if that does not work, type cisco
• User mode will allow you to view the state of the router, but
will not allow you to modify its configuration.
• Don t confuse user mode with users of the network.
• This is only for network techs, operators, engineers, etc.
17
Privilege Mode (Router and Switch)
Router> enable <user mode>
Router# <privilege mode>
18
Getting Help (Router and Switch)
Router> ?
Exec commands:
access-enable Create a temporary Access-List
entry
access-profile Apply user-profile to interface
clear Reset functions
<text omitted>
ping Send echo messages
ppp Start IETF Point-to-Point Protocol
(PPP)
--More--
19
Getting Help (Router and Switch)
Router> show ?
alps Alps information
backup Backup status
c2600 Show c2600 information
call Show call
cca CCA information
ccm-manager Call Manager Application information
cdapi CDAPI information
cef Cisco Express Forwarding
class-map Show QoS Class Map
clock Display the system clock
<text omitted>
--More—
Router> show
20
Getting Help (Router and Switch)
Router> show interfaces ?
Async Async interface
BRI ISDN Basic Rate
Interface
BVI Bridge-Group Virtual
Interface
<text omitted>
Router> show interfaces
21
Abbreviated commands (Router and Switch)
Router# sh inter
Same as
•
22
Global Configuration Mode
and Passwords
Using exit, end and Control-Z
end
exit
24
Router>ena
Router#configure terminal <Must be in privileged mode>
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#?
Configure commands:
access-list Add an access list entry
<text omitted>
Router(config)#exit
00:03:20: %SYS-5-CONFIG_I: Configured from console by con
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#exit
00:03:34: %SYS-5-CONFIG_I: Configured from console by console
Router#
25
Hostname
Router#config t
Router(config)#hostname R1
R1(config)#
26
Passwords
27
Console password = cisco
Router#conf t
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
28
VTY password = cisco
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
29
Privilege password = class
R1(config)#enable secret class
R1(config)#end
Test it:
R1#disable
R1>enable
Password:class
R1#
30
Configuring router passwords
WARNING
• service password-encryption uses a Cisco Level 7
encryption which is very easy to decrypt.
• For the GetPass! software www.boson.com
• However, the enable secret <password> uses a stronger
encryption method and cannot be easily hacked.
32
enable secret <password> command
• More later!
33
Viewing, Saving and Erasing the
Configurations
Router#show running-config
Current configuration : 542 bytes
!
running-config
version 12.2 • The running-config file is
! the configuration in RAM
interface FastEthernet0/0 memory.
no ip address • All changes are made to
shutdown the running-config file.
duplex auto • This is the configuration
speed auto that the router is
! currently using.
interface Serial0/0
no ip address
• The running-config is
lost when the router
shutdown
loses power or reloads.
!
line con 0 • Privilege mode
line aux 0 command.
line vty 0 4
!
end
Router#
35
startup-config
Router#show startup-config • The startup-config file is
startup-config is not present the saved configuration
Router# in NVRAM.
• If there is a startup-
config file in NVRAM
when the router boots
up, this file will be copied
into running-config.
• The running-config is
what the router will use.
• Privilege mode
command.
36
Copy running-config to startup-config
Router#copy running-config startup-config
Destination filename [startup-config]? <Press Enter>
Building configuration...
[OK]
Router#show startup-config
Current configuration : 542 bytes
!
version 12.2
!
interface FastEthernet0/0
<text omitted>
• The running-config should be periodically saved to startup-config when
you are satisfied with your changes and you do not want to lose them.
(Lab)
• Production network, startup-config should always match running-config
in case of power failure, etc.
• Privilege mode command.
37
Erase startup-config
Router#erase startup-config
Erasing the nvram filesystem will remove all files!
Continue? [confirm] <Press Enter>
[OK]
Erase of nvram: complete
Router#
• When you are done with the routers in the lab, please be
sure to erase the startup-config.
• If you are starting a lab, and you do not get the message:
Would you like to enter the initial configuration dialog?
[yes/no]:
• You will need to erase the startup-config and reboot.
• Privilege mode command.
38
copy running-config startup-config
39
copy running-config startup-config
WARNING
• Using an incorrect configuration file name could overwrite the router s IOS in
flash, as the router believes you are trying to copy a blank file into flash.
40
Executing adds, moves, and changes
41
copy running-config startup-config
During bootup
running-config
RAM
startup-config
Router# copy running-config startup-config
Router#erase startup-config
43
Managing Console Input
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-line)#exec-timeout 0 0
Router(config-line)#exit
Router(config)#no ip domain-lookup
44
The Router
Router internal components
• CPU • Buses
• RAM • ROM
• Flash • Interfaces
• NVRAM • Power Supply
46
Router physical characteristics
47
Router external connections
48
Connecting LAN
interfaces
49
Cisco 2500 Series (older routers)
50
Connecting WAN interfaces
51
Connecting WAN interfaces
52
Connecting WAN interfaces
53
NetLab
• Next Week
54
Interfaces
Interfaces
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
Serial0/0 unassigned YES unset administratively down down
BRI0/0 unassigned YES unset administratively down down
BRI0/0:1 unassigned YES unset administratively down down
BRI0/0:2 unassigned YES unset administratively down down
Serial0/1 unassigned YES unset administratively down down
Router#
56
Configuring an Ethernet interface
Router#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#inter fastethernet 0/0
Router(config-if)#ip add 172.30.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#end
Router#
57
Configuring a serial interface
R1(config)#inter serial 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
58
A brief look at some other
commands we will discuss later
Examining the show commands
• show interfaces – Displays all the statistics for all the interfaces on the router. To
view the statistics for a specific interface, enter the show interfaces command
followed by the specific interface and port number.
• show controllers serial – Displays information-specific to the interface
hardware
• show clock – Shows the time set in the router
• show hosts – Displays a cached list of host names and addresses
• show users – Displays all users who are connected to the router
• show history – Displays a history of commands that have been entered
• show flash – Displays information about flash memory and what IOS files are
stored there
• show version – Displays information about the router and the IOS that is running
in RAM
• show ARP – Displays the ARP table of the router
• show protocol – Displays the global and interface specific status of any
configured Layer 3 protocols
• show startup-configuration – Displays the saved configuration located in
NVRAM
• show running-configuration – Displays the configuration currently running in
RAM
60
show interfaces <interface> command
Router>show interface ethernet 0 Status MAC Address
Ethernet0 is administratively down, line protocol is down , using hub 0
Hardware is Lance, address is 0010.7b3a.cf84 (bia 0010.7b3a.cf84)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec) Routing
ARP link
Data type: ARPA, ARP Timeout 04:00:00 ARP cache entries timer metric
encapsulation
Last input never, output 01:05:35, output hang never information
(Ethernet-II)
Last clearing of "show interface" counters never (later)
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
63 packets output, 11676 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Router>
61
Where is the MAC Address?
Router>show interface serial 0
Serial0 is administratively down, line protocol is down
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
28 packets output, 9576 bytes, 0 underruns
0 output errors, 0 collisions, 17 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=down DSR=down DTR=down RTS=down CTS=down
Router>
62
Configuring a serial interface
Lab
Real world
How can you tell which end is the DTE and which end is the DCE?
Look at the label on the cable.
Look at the connecter between the two cables - The DTE cable will
always be male and the DCE cable will always be female.
65
Configuring a serial interface
RouterA RouterB
DTE cable DCE cable
RouterA#show controllers serial 0
HD unit 0, idb = 0xECA4C, driver structure at 0xF1EC8
buffer size 1524 HD unit 0, V.35 DTE cable
cpb = 0x62, eda = 0x403C, cda = 0x4050
RX ring with 16 entries at 0x624000
00 bd_ptr=0x4000 pak=0x0F5704 ds=0x62FFB8 status=80 pak_size=22
This is one of few commands where there must be a space between the interface type and the port.
How can you tell which end is the DTE and which end is the DCE?
Use the show controllers command!
It will also tell you the type of cable, in our labs we will be using a V.35
cable.
66
Switch Configuration
Physical startup of the Catalyst switch
71
Port LEDs during switch POST – System
LED
72
Port LEDs during switch POST – Port
Status LED
• More later…
77
HTTP Service and Port
79
Managing the MAC address table
81