Cisco finally introduced rollback functionality in 12.3(7)T train,before, with “copy startup-config running-config” we were not able to role back configuration cause always copying to RAM happens with a merge. with introduced “config replace” we can replace the whole configuration from other sources right into RAM (from NVRAM, Flash, FTP, TFTP, HTTP, etc) configure replace nvram:startup-config [...]
Archive for the ‘IOS Tricks’ Category
23 Jul
CCIE LAB – Show Run Partition
Show Run Partition If you want to see just the configuration of the OSPF process, you can try “show running partition router ospf 1″: Router-A# show running partition router ospf 1 Configuration of Partition – router ospf 1!router ospf 1log-adjacency-changesnetwork 0.0.0.0 255.255.255.255 area 0!
19 Jul
CCIE Security – User Privileges
User Privileges Cisco IOS has three default user privileges (access-levels): 0 : very limited-Access1 : User15 : Privilege (Super User/Admin) To see your privilege while connected to router issue: Show privilege Rack1R1#sh privilegeCurrent privilege level is 15 Assigning privilege to user:!username admin privilege 0 password 0 adminusername user privilege 0 password 0 userusername root privilege [...]
5 Jul
CCIE LAB – Router Inventory
How you find Router and Hardware/Modules serial numbers easily? that just one command: Show inventory Rack1R1#sh inventory NAME: “3640 chassis”, DESCR: “3640 chassis”PID: , VID: 0xFF, SN: 00000000 NAME: “One port Fastethernet TX”, DESCR: “One port Fastethernet TX”PID: NM-1FE-TX= , VID: 1.0, SN: 7720321 NAME: “Four Port High-Speed Serial”, DESCR: “Four Port High-Speed Serial”PID: NM-4T= [...]
2 Jul
CCIE LAB – Boot Image/Config file
We already know how to boot system using specific image file: boot system flash [device:][filename] boot system flash c2800nm-ipvoice_ivs-mz.123-14.T7.bin or from TFTP server: boot system tftp filename server_ip boot system tftp c2800nm-ipvoice_ivs-mz.123-14.T7.bin 110.23.1.10 Here I want to show you, how to boot system with a specific system configuration file like router.config, which is stored in [...]
2 Jul
CCIE LAB – Logging Locally
Logging Syslog Messages Locally This trick shows how to store log messages in flash memory instead of syslog, in this example we are logging informational system generated messages into flash with file name log.txt: logging file flash:log.txt informational
26 May
CCIE LAB – Logging Config Changes
Logging Config Changes Archive command is useful for configuration consistency check and logging, you can use Syslog for informing configuration changes, or use telnet to see what has been changed and who has done that. Configuration: archive log config logging enable logging size 500 notify syslog! Verification: R1#sh archive log config all idx sess user@line [...]
26 May
CCIE LAB – Source Address/Interface
Configuring Source Configure each service to use a specific source interface: ip ssh source-interface e0 ip ftp source-interface e0 ip tacacs source-interface e0 ip telnet source-interface e0 ip tftp source-interface e0 ip domain lookup source-interface e0 ntp source e0 ! ping 1.1.1.1 repeat 1000 source 2.2.2.2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26 May
CCIE LAB – Parser Tricks
IOS Parser Find the subcommands under Clear exec command and have “call” keyword like:clear call voice … How to do that? Look, Router# show parser dump exec | inc clear .*[a-z]+.*call 1 clear controller call-counters timeslots 1 clear controller call-counters timeslots 1 clear controller call-counters timeslots 1 clear controller call-counters timeslots 1 clear controller call-counters [...]
26 May
CCIE LAB – Configuring KRON
Configuring KRON Kron in task scheduler in IOS just like Unix/Linux boxes, Configure Router to do a task every 6 hours, like renewing an IP through DHCP: Configuraion: kron occurrence TOT in 6 recurringpolicy-list POL1!kron policy-list POL1cli renew dhcp fastethernet 0/1


Recent Comments