Showing posts with label Useful Commands. Show all posts
Showing posts with label Useful Commands. Show all posts

Wednesday, May 9, 2007

configure replace - Replacing Your Running-Config

I ran across post on CiscoBlog.com about the configure replace command. I had not ever seen this command before, but I could have used it quite a few times in the past. Essentially it will let you replace the running config with another config instead of the standard copy command which just merges the two configs.

Below is the link for more information on Cisco's website

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124tcr/tcf_r/cf_02ht.htm#wp1031947

This command was first introduced in 12.3(7)T

Monday, April 30, 2007

do - Executing Commands in Configuration Mode

Ever need to execute a command when you have already dropped into the configuration mode? I used to spend alot of time dropping out of config mode to either look at an interface configuration or verify that a command I had just entered actually affected my device as I had expected before moving on to more configuration tasks. As of IOS 12.2(8)T Cisco added a new command called do. This allows you to run an EXEC level command in configuration mode. Simple, just run do show run int fa0/0 and you'll get the output without having to go into EXEC mode. A quick example:


Router#
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#sh run int fa0/0
^
% Invalid input detected at '^' marker.

Router(config)#do sh run int fa0/0
Building configuration...

Current configuration : 133 bytes
!
interface FastEthernet0/0
description 3mb Internet Connection
ip address 172.16.1.60 255.255.255.248
speed 100
full-duplex
end

Router(config)#


A brief overview of the command can be found here:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124tcr/tcf_r/cf_02ht.htm#wp1035222