The “Do” command

Posted February 1, 2006 by aaronm in Cisco networking

If you are running Cisco IOS 12.2(8) or better, you can use the “do” command to run privileged commands in global config mode. In layman’s terms, you can run “show” commands while config or config-if 🙂


This will save you the trouble of exiting to privileged mode to check your work when you are configuring a router or switch.

Just add “do” before the “show” command

i.e.

router(config)# do show interface f0/0

switch(config-if)#do show run

This also works with ping, clear and debug commands.

The Conversation

Follow the reactions below and share your own thoughts.