Skip to content

CLI command modes

The following table lists the different CLI command modes. Depending on the CLI mode, the prompt will be specific.

Command mode Access method Prompt
Privileged EXEC This is the initial mode to start a session. <SwitchName>#
Global Configuration The EXEC mode command configure terminal is used to enter the Global Configuration mode. <SwitchName>(config)#
Interface Configuration The Global Configuration mode command interface <interfacetype><interfaceid> is used to enter the Interface configuration mode. <SwitchName>(config-if)#
Interface Range Mode The Global Configuration mode command interface range ( { <interfacetype><slot/port-port>} {vlan <vlan-id(1-4094)>- <vlanid(2-4094)>}) is used to enter the Interface range mode. <SwitchName>(config-if-range)#
SNTP Configuration The SNTP Configuration mode command sntp is used to enter the SNTP configuration mode. <SwitchName>(config-sntp)#
Config-VLAN The Global configuration mode command vlan vlan-id is used to enter the Config-VLAN mode. <SwitchName>(config-vlan)#
Line Configuration The Line Configuration mode command line cli is used to enter the Line configuration mode. <SwitchName>(config-line)#
IPV4 ACL Extended Access List Configuration The IPV4 ACL Extended Access List configuration mode command ip access-list extended <name> is used to enter the IPV4 ACL Extended Access List configuration mode. <SwitchName>(config-ext-nacl)#
IPV6 ACL Extended Access List Configuration The IPV6 ACL Extended Access List configuration mode command ipv6 access-list extended <name> is used to enter the IPV6 ACL Extended Access List configuration mode. <SwitchName>(config-ipv6-acl)#
MAC ACL Extended Access List Configuration The MAC ACL Extended Access List configuration mode command mac access-list extended <name> is used to enter the MAC ACL Extended Access List configuration mode. <SwitchName>(config-ext-macl)#
Policy Map Configuration Mode The Policy Map configuration mode command class-policy <name> is used to enter the Policy Map configuration mode. <SwitchName>(config-qc-ply)#
MSTP Configuration Mode The MSTP Configuration mode command spanning-tree mst configuration is used to enter the MSTP configuration mode. <SwitchName>(config-mst)#
DHCP Pool Configuration Mode The DHCP Pool Configuration command ip dhcp pool is used to enter the DHCP Pool configuration mode. <SwitchName>(dhcp-config)#