Configuration Fundamentals | 29
Figure 2-3 shows how to change the command mode from CONFIGURATION mode to PROTOCOL 
SPANNING TREE.
Figure 2-3.  Changing CLI Modes
The do Command
Enter an EXEC mode or EXEC privilege mode command from any CONFIGURATION mode 
(CONFIGURATION, INTERFACE, SPANNING TREE, etc.) without returning to EXEC mode by 
preceding the EXEC mode command with the command 
do. Figure 2-4 illustrates the do command.
PROTOCOL GVRP FTOS(conf-gvrp)
protocol gvrp 
PROTOCOL LLDP FTOS(conf-lldp)
protocol lldp
Per-VLAN SPANNING 
TREE Plus
FTOS(conf-pvst)#
protocol spanning-tree pvst
RAPID SPANNING 
TREE
FTOS(conf-rstp)#
protocol spanning-tree rstp
ROUTE-MAP FTOS(conf-route-map)# route-map
ROUTER OSPF FTOS(conf-router_ospf)# router ospf
ROUTER RIP FTOS(conf-router_rip)# router rip
SPANNING TREE FTOS(conf-stp)# protocol spanning-tree 0
Note: The following commands cannot be modified by the do command: enable, disable, exit, and configure.
Table 2-1.  FTOS Command Modes
CLI Command Mode  Prompt
Access Command
FTOS(conf)#protocol spanning-tree 0
FTOS(conf-stp)#
New command prompt