Network diagnostic commands:
Router#show interfaces
Router#show ip protocols
Router#show ip route
Router#show ip arp
IPSec
http://www.cisco.com/en/US/products/hw/routers/ps380/products_configuration_guide_chapter09186a008045d286.html#wp20347
Backup:
CE_2#config terminal
CE_2(config)#ip ftp username cisco
CE_2(config)#ip ftp password cisco123
CE_2(config)#end
CE_2#
CE_2#copy running-config ftp:
Address or name of remote host []? 10.66.64.10
Destination filename [ce_2-confg]? backup_cfg_for_router
Writing backup_cfg_for_router !
1030 bytes copied in 3.341 secs (308 bytes/sec)
CE_2#
Open the configuration file with a text editor. Search for and remove any line that starts with “AAA”.
Note: This step is to remove any security commands that can lock you out of the router.
Restore:
Router#copy ftp: running-config
Address or name of remote host [10.66.64.10]?
Source filename [backup_cfg_for_router]?
Destination filename [running-config]?
Accessing ftp://10.66.64.10/backup_cfg_for_router…
Loading backup_cfg_for_router !
[OK – 1030/4096 bytes]
1030 bytes copied in 13.213 secs (78 bytes/sec)
CE_2#
SPANÂ :
gw#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
gw(config)#monitor session 1 source interface FastEthernet 0
gw(config)#monitor session 1 de interface FastEthernet 1
gw(config)#exit
gw#write memory
Building configuration…
[OK]
To enable ssh server.
It took a long time to figure it out 🙂
crypto key generate rsa usage-keys label [label] modulus 768