Skip to content

cisco IOS cheatsheat

quick IP config

>enable
#config t
(config)#interface FastEthernet 0
(config-if)#no shut
(config-if)#ip address 10.10.24.9 255.255.255.0
(config-if)#exit
(config)#ip default-gateway 10.10.24.1
(config)#ip route 0.0.0.0 0.0.0.0 10.10.24.1
(config)#exit
#ping 10.10.10.1 (should succeed)
#copy run start (dont forget!)
Setting up Services
>enable
#config t
(config)#enable secret abc123
(config)#hostname c1720-24-99
(config)#snmp-server community public RO
(config)#snmp-server community private RW
(config)#line vty 0
(config-line)#password somePasswordHere
(config)#username admin password somePasswordHere
(config)#ip domain-name some.domainHere.com
(config)#crypto key generate rsa
(config)#ip ssh time-out 120
(config)#ip ssh authentication-retries 4
(config)#line vty 0 4
(config-line)#transport input all
(config)#aaa new-model
(config)#aaa authentication login default local
aaa authorization exec default local if-authenticated
ipv6
for ipv6 use a firmware like advipservicesk9
(config)#ipv6 unicast-routing
(config)#interface fastEthernet 0/0
(config)##ipv6 route ::/0 2001:890:8118:A18::A
(config-if)#ipv6 address 2001:890:8118:A18::0A0A:180C/64
(config-if)#ipv6 nd suppress-ra
Upgrading IOS
Check ‘#show flash’ to make sure you have enough flash for your .bin file.<br>
Copy the .bin to /store/upload/tftp. Verify connectivity with a ping.<br>
Backup your current image with ‘copy flash tftp’, in case something goes wrong.<br>
Then use this guide
http://www.routergeek.net/content/view/33/37/ OR
#copy tftp flash
#config t
#config-register 0x2102
#no boot system
#boot system flash ios_image_name.bin
#copy run start
#reload
Password Recover
http://www.cisco.com/en/US/products/hw/routers/ps221/products_password_recovery09186a0080094773.shtml#ex_pass
Saving Configs to backup
copy running-config tftp
Booting from startup config
enable
config t
config-register 0x2102

Reset to defaults
http://www.cisco.com/en/US/products/sw/iosswrel/ps5187/products_tech_note09186a00802017a1.shtml

Post a Comment

You must be logged in to post a comment.