::cisco black belt::

July 22, 2008

IOS Commands: do

Filed under: IOS Commands — ccxx4488 @ 3:36 pm

This is an incredibly useful command, don’t want to exit or ctrl z etc, just do it!

·    Example 1:

R1(config)#do show run
Building configuration…

Current configuration : 1294 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption

·    Example 2:

R1(config)#ip access-list standard 10
R1(config-std-nacl)#permit 10.0.0.0 0.255.255.255
R1(config-std-nacl)#permit 20.1.0.0 0.0.255.255
R1(config-std-nacl)#permit 100.0.0.0 0.255.255.255
R1(config-std-nacl)#deny any

R1(config-std-nacl)#do show access-list 10
Standard IP access list 10
10 permit 10.0.0.0, wildcard bits 0.255.255.255
20 permit 20.1.0.0, wildcard bits 0.0.255.255
30 permit 100.0.0.0, wildcard bits 0.255.255.255
40 deny   any

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: