CLI command modes
The CLI groups commands into modes according to the command function and the prompt that each mode displays.
Each of the command modes supports specific commands. The commands in one mode are not available until you switch to that particular mode, with the exception of the User EXEC mode commands. You can execute the User EXEC mode commands in the Privileged EXEC mode.
The command prompt changes in each command mode to help you identify the current mode. The following table describes the command modes and the prompts visible in that mode.
| Command Mode | Prompt | Mode Description |
|---|---|---|
| User EXEC | Switch> |
Contains a limited set of commands to view basic system information. |
| Privileged EXEC | Switch# |
Allows you to issue any EXEC command, enter the VLAN mode, or enter the Global Configuration mode. |
| Global Config | Switch (Config)# |
Groups general setup commands and permits you to make modifications to the running configuration. |
| VLAN Config, also referred to as VLAN Database | Switch (Vlan)# |
Groups all the VLAN commands. |
| Interface Config |
M4250 series switch:
M4350 series switch:
|
Manages the operation of an interface and provides access to the router interface configuration commands. Use this mode to set up a physical port for a specific logical connection operation. |
Switch (Interface loopback-id)# |
||
|
M4250 series switch:
M4350 series switch:
|
Use this mode to manage the operation of a range of interfaces. For example the prompt may display as follows: M4250 series switch:
M4350 series switch:
|
|
Switch (Interface lag lag-intf-num)# |
Enters LAG Interface configuration mode for the specified LAG. | |
Switch (Interface vlan vlan-id)# |
Enters VLAN routing interface configuration mode for the specified VLAN ID. | |
| Line Console | Switch (Config-line)# |
Contains commands to configure console settings, SSH settings, and outbound Telnet settings, and configure log-in and authentication settings for these types of connections. |
| Line SSH | Switch (Config-ssh)# |
Contains commands to configure SSH login/enable authentication. |
| Line Telnet | Switch (Config-telnet)# |
Contains commands to configure Telnet login/enable authentication. |
| AAA IAS User Config | Switch (Config-IAS-User)# |
Allows password configuration for a user in the IAS database. |
| Mail Server Config | Switch (Mail-Server)# |
Allows configuration of the email server. |
| Policy Map Config | Switch (Config-policy-map)# |
Contains the QoS Policy-Map configuration commands. |
| Policy Class Config | Switch (Config-policy-classmap)# |
Consists of class creation, deletion, and matching commands. The class match commands specify Layer 2, Layer 3, and general match criteria. |
| Class Map Config | Switch (Config-class-map)# |
Contains the QoS class map configuration commands for IPv4. |
| IPv6 Class-Map Config | Switch (Config-class-map)# |
Contains the QoS class map configuration commands for IPv6. |
| Router OSPF Config |
Note: This mode is supported for an M4350 series switch only.
|
Contains the OSPF configuration commands. |
| Router OSPFv3 Config |
Note: This mode is supported for an M4350 series switch only.
|
Contains the OSPFv3 configuration commands. |
| Router RIP Config | Switch (Config-router)# |
Contains the RIP configuration commands. |
| Route Map Config | Switch (Config-route-map)# |
Contains the route map configuration commands. |
| RADIUS Dynamic Authorization Config | Switch (Config-radius-da) |
Contains the Radius Dynamic Authorization commands. |
| MAC Access-list Config | Switch (Config-mac-access-list)# |
Lets you create a MAC access list and enter the mode containing MAC access list configuration commands. |
| IPv4 Access-list Config | Switch (Config-ipv4-acl)# |
Lets you create an IPv4 named or extended access list and enter the mode containing IPv4 access list configuration commands. |
| IPv6 Access-list Config | Switch (Config-ipv6-acl)# |
Lets you create an IPv6 named or extended access list and enter the mode containing IPv6 access list configuration commands. |
| Time-Range Config | Switch (Config-time-range)# |
Contains commands to configure time ranges for ACLs. |
| Management Access-list Config | Switch (Config-macal)# |
Lets you create a management access list and enter the mode containing management access list configuration commands. |
| TACACS Config | Switch (Tacacs)# |
Contains commands to configure properties for the TACACS servers. |
| DHCP Pool Config | Switch (Config-dhcp-pool)# |
Contains the DHCP server IP address pool configuration commands. |
| DHCPv6 Pool Config | Switch (Config-dhcp6s-pool)# |
Contains the DHCPv6 server IPv6 address pool configuration commands. |
| DHCP Class Config | Switch (Config-dhcp-pool)# |
Contains the DHCP server IP address class configuration commands. |
| DHCP Pool Class Config | Switch (Config-dhcp-pool-class) |
Contains the DHCP server IP address pool class configuration commands. |
| Stack Global Config Mode |
Note: This mode is supported for an M4350 series switch only.
|
Allows you to access the Stack Global Config Mode. |
| ARP Access-List Config Mode | Switch (Config-arp-access-list)# |
Contains commands to add ARP ACL rules in an ARP Access List. |
| VLAN Config | Switch (vlan vlan-id)# |
Contains commands to configure private VLAN settings on a VLAN and to configure the RSPAN mode. |
| ERSPAN Source Session Config | Switch (Config-erspan-src)# |
Configure the source interface for ERSPAN and access the ERSPAN Source Session Configuration mode. |
| ERSPAN Source Session Destination Config | Switch (Config-erspan-src-dst)# |
Configure the ERSPAN source and destination IPv4 addresses, session ID, and various characteristics of the packets in the ERSPAN traffic. |
| ERSPAN Destination Session Config | Switch (Config-erspan-dst)# |
Configure the destination interface for ERSPAN and access ERSPAN Destination Session Configuration mode. |
| ERSPAN Destination Session Source Config | Switch (Config-erspan-dst-src)# |
Configure the ERSPAN destination and source IPv4 addresses, session ID, and various characteristics of the packets in the ERSPAN traffic. |
| Track Config | Switch (Config-track) |
Configure settings to track the state of an IP Service Level Agreement (SLA) operation. |
| IP SLA Config | Switch (Config-ip-sla) |
Configure an IP SLA operation. |
| IP SLA ICMP Echo Config | Switch (Config-ip-sla-echo) |
Configure an IP SLA ICMP echo operation. |
| Captive Portal Config | Switch (Config-CP) |
Contains the global captive portal configuration commands. |
| Captive Portal Instance Config | Switch (Config-CP cp-id) |
Contains the captive portal instance configuration commands. |
| VRRP Config Mode |
Note: This mode is supported for an M4350 series switch only.
|
Contains the VRRP or VRRPv3 address family configuration commands. |