Using the Command Line Interface | 31Mode-based Command HierarchyAs introduced above, the CLI is divided into various modes. Commands in a particular mode are notavailable until the operator switches to that mode, with the exception of the User Exec modecommands. The User Exec mode commands may also be executed in the Privileged Exec mode.Interface VLAN In the Global Config mode,enter the command interfacevlan vlanid.hostname (conf-if-vl-vlan-id) # To exit to the Global Config mode, enter theexit command, or press Ctrl-Z to switch tothe User Exec mode.Line Config Mode In the Global Config mode,enter the lineconfigcommandhostname (line) # To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Mac Access ListConfigIn the Global Config mode,enter the mac access-listextended commandhostname (Mac-Access-ListConfig)#To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.InterfaceManagementEthernetIn the Global Config mode,enter the interfacemanagementethernetcommandhostname (Config-if-ma)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Policy Map In the Global Config mode,enter the policy-mapcommandhostname (Config-policy-map)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Policy Class In the Policy Map mode enterthe class commandhostname(Config-policy-classmap)#To exit to the Policy Map mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Router OSPF Config In the Global Config mode,enter the router ospfcommandhostname (Config-router)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Router RIP Config In the Global Config mode,enter the router rip commandhostname (Config-router)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Bwprovisioning -bwallocation ConfigModeFrom the Bwprovisioningmode, enter thebwallocation command.Switch(Config-bwp-bwallocation)#To exit to the Bwprovisioning mode, enterexit. To return to the User Exec mode, enterctrl-Z.Stacking Config In the Global Config mode,enter the stack command.hostname (Config-stack)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.TACACS Config In the Global Config mode,enter the tacacs-serverhost ip-address command.hostname (Tacacs)# To exit to the Global Config mode, enter theexit command. To return to the User Execmode, enter Ctrl-Z.Table 4-2. Command ModesCommand Mode Mode Access Method Prompt Exit or Access Previous Mode