Exec commands can be issued from within configuration mode via the do command. This can be handy for double-checking the current configuration before applying any changes. You can now issue EXEC-level Cisco IOS commands (such as show, clear, and debug commands) from within global configuration mode or other modes by issuing the do command followed by the EXEC command.

Note:You cannot use the do command to execute the configure terminal EXEC command because issuing the configure terminal command changes the mode to configuration mode.

Command:

Router(config)# do command
Router(config)#

or

Router(config-if)# do command
Router(config-if)#

command—The EXEC command to be executed.

Supported Platforms:

  • Catalyst 5000 family ATM modules
  • Catalyst 6000 family ATM modules
  • Catalyst 6000 family switches
  • Catalyst 8510 switch routers
  • Catalyst 8540 switch routers
  • Cisco ONS 15000 series routers
  • Cisco 7100 series
  • Cisco 7200 series
  • Cisco 7500 series
  • Cisco 7600 Series Internet Router
  • LightStream 1010 switch routers