-
Configuration Register
Settings
-
What bits mean what
-
0x2102
- Default setting
-
0-3 (0x0000-0x000F)
-
Boot field
- 00 - ROM monitor mode
- 01 - Boot image from ROM
- 02-F - Specifies a default boot file name
-
6 (0x0040)
- Ignore NVRAM contents
-
7 (0x0080)
- OEM bit enabled
-
8 (0x101)
- Break Disabled
-
10 (0x0400)
- IP broadcast all zeros
-
5, 11-12 (0x0800-0x1000)
- Console line speed
-
13 (0x2000)
- Boot default ROM software if network boot fails
-
14 (0x4000)
- IP broadcast do not have net numbers
-
15 (0x8000)
- Enable diagnostics and ignore NVRAM
-
Password recovery
- Reload router and press [ctrl+Break] to load into ROMMON
- Change the config-register to 0x2142 using confreg
- Reload router
- Enter privileged mode
- copy startup-config to running-config
- Change Password
- Reset Config-register to default (0x2102)
- save the router config (copy run start)
- reload the router (optional)
-
Why change Config-register?
- To force system into ROMmon
- to select a boot source and boot filename
- To enable or disable Break function
- To control broadcast addresses
- To set the console terminal baud rate
- To load OS from ROM
- To enable booting from TFTP
-
Managing system files
-
Backing up IOS
-
Three step fail safe
-
boot from flash
- 'boot system flash [filename]'
-
boot from TFTP
- 'boot system tftp [filename] [address]
-
boot from ROM
- 'boot system rom'
- at best, a last resort
-
back up to TFTP:
- ensure connection to server (ping)
- enough space on server/router
-
verify filename and path
- 'show flash'
- TFTP software running on server
- use a crossover cable
- server is in same subnet as router
- copy command given tftp IP address
-
Restoring IOS
-
restore from TFTP
- verify name and path
- ensure enough memory on router
- IP address of TFTP
- Command: 'copy tftp flash'
-
Saving running-config
- 'copy run/start tftp'
- 'copy run start'
-
Erase Configuration file
-
'erase startup-config'
- reload router
-
Host table
-
ip host [hostnames] [ip address]
- entered from global config mode
- can add multiple IP addresses for one host
-
Static table for name resolution
- verify host table: 'show hosts'
-
Alternative is DNS server
- ip domain-lookup
- ip name-server [IP address]
-
ip domain-name [domain name]
- adds your domain name to host names
- so you don't have to add ".ross.com" at the end of each command
-
Telnet
- Used to access a remote device without using a Console cable
-
setup
- 'line vty' command
-
set password
- if none set, can't telnet
- set login
-
use IP address or host name
- in IOS, just type IP or hostname
-
Multiple connections
-
Switch between connections
- [ctrl] [shift] [6] then [X]
-
'show sessions'
- shows how many telnet lines are open and who to
-
enter session number and enter to re-connect
- double tap enter for last used connection
-
'show users'
- shows who is telnetting into your router and on what line
-
End session
- Remote - Exit
- Local - Disconnect [line number]
- Ending sessions into router - clear line [line number]
-
Ping
- Used to confirm connection to local or remote interfaces
- can use IP addresses or name resolving
- Can be used on IOS or DOS
-
CDP
-
Use
- To find what other device are directly connected to yours
-
Turned on by default
- disble using 'no cdp enable' command
- will only show other IOS devices (not PC's, Printers etc)
-
CDP neighbor
-
Shows:
- Device ID
-
Local interface
- what interface the device is atached to at your end
-
Holdtime
- Of CDP packets
-
capability
- switch, router, repeater, host etc
-
platform
- series number of device (Cisco 2600 router)
-
Remote interface
- what interface you're connected to at the other end
-
CDP neighbor detail
-
as above, but in addition
- Remote interface IP address
- IOS version
- Power draw
-
CDP entry *
-
As CDP detail, but can be split into:
-
Version
- Shows IOS version only
-
Protocols
- IP address only
-
Debug
- Command: 'debug all'
- very powerful
- can show lot's of information
- can dramatacally slow down router
- best to use specific debug commands if poss