Professional Documents
Culture Documents
Objectives
RAM RAM
NVRAM
Flash
ROM
NVRAM
Stores configuration
Flash
Stores image(s)
ROM
Stores ROM-image (BIOS)
Introduction to Cisco IOS 3
Initializing
Load IOS Subset RUN RXboot Image Load from ROM Read NVRAM Load from flash Load from TFTP
POST
Load IOS
Load config
Configuration-register
16-bit register
Normal value is 0x2102 Ignore startup-configuration (pw-recovery) value is 0x2142
Use show version to display value config register Use config-register global configuration command to set the value from a running system
Introduction to Cisco IOS 6
Examples:
boot boot boot boot system system system system
Use copy tftp flash to copy IOS to a Cisco device Use show flash: to display stored files in flash
Console
COM port on computer to RJ45 Console port router Roll-over console cable
Telnet
Interface must be reachable via IP Using a Terminal Emulator
Auxiliary port
Often used for Asynchronous dial access Can also be used as a normal console port
Access Modes
User Exec Mode
limited control Router>
Setup mode
When there is no startup-config
Rxboot mode
if IOS load failure Router(boot)>
RT1>enable RT1#
RT1#config t RT1(config)#
RT1#disable RT1>
RT1(config)#exit RT1#
10
User Interface
? Ctrl+p Ctrl+n tab Ctrl+a Ctrl+e
- gives (sub)command explanation/parameter options - or arrow up, recalls last command(s) - or arrow down, recalls next command - entry completion - cursor to (command)line start - cursor to (command)line end
Router#show running-config
12
13
Router/Switch configuration
Start configuring by typing in privileged mode (#)
configure terminal (or short: conf t)
Use no <command> to remove configuration commands Commands are effectuated/executed directly after pressing Enter Use ^z or end or exit to exit (sub)config mode Display active configuration show running-config
Display saved startup configuration show startup-config Save active (modified) configuration using copy running-config startup-config (preferred) write memory (or short: wr , is outdated command!)
15
TFTP
NVRAM
RAM
Introduction to Cisco IOS 16
Configuring Comments
Give the device a name
Router(config)# hostname Router5 Router5(config)#
Use banners
banner motd # Unauthorized access is rewarded! #
banner exec
banner login
Introduction to Cisco IOS 17
Configuring DNS
DNS lookups are enabled by default, to disable type:
no ip domain-lookup
21
capabilities list
version platform layer 3 addressing
Introduction to Cisco IOS 22
router4>sh cdp neigh detail ------------------------Device ID: Router1 Entry address(es): IP address: 172.16.2.6 Platform: cisco 2500, Capabilities: Router Interface: Serial0/0, Port ID (outgoing port): Serial0 Holdtime : 156 sec Version : Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-AJS40-L), Version 11.3(6), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1998 by cisco Systems, Inc. Compiled Tue 06-Oct-98 23:17 by kpma
Introduction to Cisco IOS 23
debug
24
Ping
router4>ping % Incomplete command. router4#ping Protocol [ip]: Target IP address: 172.16.10.3 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 172.16.10.4 Type of service [0]: Set DF bit in IP header? [no]: yes Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.10.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Introduction to Cisco IOS 25
26
Traceroute
CoreRouter2#traceroute Protocol [ip]: Target IP address: 192.168.1.1 Source address: Numeric display [n]: Timeout in seconds [3]: Probe count [3]: Minimum Time to Live [1]: Maximum Time to Live [30]: Port Number [33434]: Loose, Strict, Record, Timestamp, Verbose[none]: Type escape sequence to abort. Tracing the route to 192.168.1.1
1 router1 (10.0.0.1) 4 msec 4 msec 4 msec 2 * * * 3 * *
Introduction to Cisco IOS 27
Debug
Debug is CPU intensive Use un all to disable debugging Be very specific in what you want to debug
CoreRouter3#debug isdn q921 ISDN Q921 packets debugging is on CoreRouter3# 1w0d: ISDN BR1/0: RX <- RRp sapi=0 tei=82 nr=0 1w0d: ISDN BR1/2: RX <- RRp sapi=0 tei=82 nr=0 1w0d: ISDN BR1/0: TX -> RRf sapi=0 tei=82 nr=0 1w0d: ISDN BR1/2: TX -> RRf sapi=0 tei=82 nr=0 1w0d: ISDN BR1/3: RX <- RRp sapi=0 tei=82 nr=0 1w0d: ISDN BR1/3: TX -> RRp sapi=0 tei=82 nr=0 1w0d: ISDN BR1/3: TX -> RRf sapi=0 tei=82 nr=0 1w0d: ISDN BR1/3: RX <- RRf sapi=0 tei=82 nr=0 CoreRouter3#un all All possible debugging has been turned off CoreRouter3#
Introduction to Cisco IOS 28
Summary
30