4 days until Christmas đź‘Ť, and I 'm trying to get a few lessons in before the Chapman Family party today. Putting a little Grizz coffee in the bear!
Router Memory
- ROM - powering on loads from ROM first and performs (a) Power On Self Test (POST)- checking for any problems with the hardware, the (b) Loads Bootstrap- looks in Flask for IOS software to load, if no IOS present, the device will boot to the ROMMOM prompt and the image could be pulled from TFTP or a USB
- Flash Memory - device will load the first IOS image found by default, you can override this with the (config t) boot system......
- NVRAM (Non-Volatile RAM) - this is where the startup-config file is located; if not present the device will load the Start Wizard
- RAM - working memory of the device; IOS from Flash and the Startup-config from NV-RAM are loaded into the RAM at startup
Factory Reset
Router> write erase this deletes the NVRAM --> the startup-config
Password
Recovery
Config-Register is used to change the way the device boots
0x2102:
boots normally (default)
0x2120:
boot into rommon
0x2142:
ignore contents of NVRAM (startup-config)
(config t) config-register 0x2142
- Reboot device, press Ctrl-Break at power on to break into rommon
- rommon> confreg 0x2142 (this will ignore startup-config on boot)
- rommon> reset (this will reload device with no config, however, the original config is still in NVRAM with the unknown enable secret password)
- Type "no" to bypass the setup wizard
- Enter "enable" mode - device will not prompt for enable secret as there is not one in the running configuration.
- router# copy startup-config running-config - NOTE: you are already in enable mode :-)
- router (config t)# enable secret xxxxxxx (Enter new enable secret to over right old one)
- router (config t)# config-register 0x2102 (device will boot normally at next restart)
- router# copy running-config startup-config
Backing up System
Image and Config
- router# copy flash tftp (prompted for file name of IOS image in flash to copy, then address of tftp server)
- router# copy running-config tftp (prompted to give new name to running-config, and address of tftp server)
- Note: if you copy anything to running-config…it will just merge with running-config
- Back up config to flash and restore -
- router# copy running-config flash (now we have a backup)
- router# write erase (delete startup-config)
- router# copy flash startup-config
- router# reload
Upgrade IOS
- Download new IOS from Cisco to TFTP
- router# copy tftp to flash
- The old IOS could be deleted, and at reload the new IOS is the only file to load
- To keep the old IOS at a backup, must change the boot system
- router (config t)# boot system flash: (file name in flash)
- router# copy running-config startup-config
- router#reload
IOS Licensing
- After purchasing a license to unlock a feature on your device, Cisco will provide a Product Activation Key (PAC).
- Enter the PAC at (cisco.com/go/license) with the UDI (Unique Device Identifier) to create the license file. Note: license tied to device
- Load the file to Flash, then install
- Router (config t) license install flash: (file name)
- Router# show license (note: to display UDI - r1#show License udi)
No comments:
Post a Comment