14
Jun

CLI Shortucts

Written by Brandon Carroll  |  under CCNA Corner

Welcome back!

Often I will help one of my students and while doing so I use commands that are not covered in class, mostly because they are either a shortcut or because I am looking for something very specific. Here is a short list of some of my favorites:


show run interface:

blog_demo#sh run int f0/0

Building configuration…


Current configuration : 93 bytes

!

interface FastEthernet0/0

ip address 10.1.1.1 255.255.255.0

duplex auto

speed auto

end


show run | section:

blog_demo#sh run | section interface

interface FastEthernet0/0

ip address 10.1.1.1 255.255.255.0

duplex auto

speed auto

interface FastEthernet1/0

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

blog_demo#


show run | begin :

blog_demo#sh run | begin interface

interface FastEthernet0/0

ip address 10.1.1.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

!

ip http server

no ip http secure-server

ip classless

!

control-plane

!

!

–More–


show run | include:

blog_demo#sh run interface f0/0 | include ip

ip address 10.1.1.1 255.255.255.0


show ip interface brief:

blog_demo#sh ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 10.1.1.1 YES manual up up

FastEthernet1/0 192.168.1.1 YES manual up up

blog_demo#


Also while doing a show run you can use the / character to find something specific:

blog_demo#sh run

Building configuration…

Current configuration : 663 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname blog_demo

!

boot-start-marker

boot-end-marker

!

!

memory-size iomem 5

no aaa new-model

ip subnet-zero

!

!

!

!

ip cef

ip ips po max-events 100

/192.168

filtering…

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

!

ip http server

Enjoy, and If you find this helpful please leave a comment and let me know!  

Related posts:

  1. GNS3 setup and outside connections with VoIP example I don’t want to write another guide to setup GNS3,...

Related posts brought to you by Yet Another Related Posts Plugin.

COMMENTS

  1. Tony June 20, 2008 9:24 am

    - to get a quick and dirty look at your switch interface info:

    # SHOW INTERFACE STATUS

  2. Paul Stewart June 8, 2009 5:37 pm

    Those are great shortcuts. I remember them really first becoming necessary when I started configuring Call Manager Express in IOS. Now it seems like there are so many features and configs are so long I am constantly using them. I wish the parser supported full regex and you could run debug output through a regex parser.

    On a side note “/” works in Firefox as well.

Leave a feedback:

Name (required)

Email (required)

Website

Comments

2008 (c) GlobalConfig.net, Using the Minimalistic Theme : Powered by WordPress

Switch to our mobile site