How to enter or exit a command mode
This topic describes the commands that you use to enter, exit, and return from each CLI command mode.
The following table describes how to enter or exit each mode.
| Command Mode | Access Method | Exit or Return to the Previous Mode |
|---|---|---|
| User EXEC | This is the first level of access. | To exit, enter logout. |
| Privileged EXEC | From the User EXEC mode, enter enable. | To exit to the User EXEC mode, enter exit or press Ctrl-Z. |
| Global Config | From the Privileged EXEC mode, enter configure. | To exit to the Privileged EXEC mode, enter exit, or press Ctrl-Z. |
| VLAN Config, also referred to as VLAN Database | From the Privileged EXEC mode, enter vlan database. | To exit to the Privileged EXEC mode, enter exit, or press Ctrl-Z. |
| Interface Config |
M4250 series switch: From the Global Config mode, enter:
M4350 series switch: From the Global Config mode, enter:
|
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
|
M4250 series switch: From the Global Config mode, enter:
M4350 series switch: From the Global Config mode, enter:
|
||
|
From the Global Config mode, enter:
|
||
|
From the Global Config mode, enter:
|
||
|
From the Global Config mode, enter:
|
||
| Line Console | From the Global Config mode, enter line console. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Line SSH | From the Global Config mode, enter line ssh. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Line Telnet | From the Global Config mode, enter line telnet. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| AAA IAS User Config | From the Global Config mode, enter aaa ias-user username name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Mail Server Config | From the Global Config mode, enter mail-server address. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Policy-Map Config | From the Global Config mode, enter policy-map policy-name in | out. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Policy-Class-Map Config | From the Policy Map mode enter class classname. |
To exit to the Policy Map Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Class-Map Config | From the Global Config mode, enter class-map, and specify the optional keyword ipv4 to specify the Layer 3 protocol for this class. See class-map for more information. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| IPv6-Class-Map Config | From the Global Config mode, enter class-map and specify the optional keyword ipv6 to specify the Layer 3 protocol for this class. See class-map for more information. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Router OSPF Config |
From the Global Config mode, enter router ospf.
Note: This mode is supported for an M4350 series switch only.
|
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Router OSPFv3 Config |
From the Global Config mode, enter ipv6 router ospf.
Note: This mode is supported for an M4350 series switch only.
|
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Router RIP Config | From the Global Config mode, enter router rip. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Route Map Config | From the Global Config mode, enter route-map map-tag. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| RADIUS Dynamic Authorization Config | From the Global Config mode, enter aaa server radius dynamic-author. | To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| MAC Access-list Config | From the Global Config mode, enter mac access-list extended name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| IPv4 Access-list Config | From the Global Config mode, enter ip access-list name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Time-Range Config | From the Global Config mode, enter time-range name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| IPv6 Access-list Config | From the Global Config mode, enter ipv6 access-list name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Management Access-list Config | From the Global Config mode, enter management access-list list-name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| TACACS Config | From the Global Config mode, enter tacacs-server host ip-addr, where ip-addr is the IP address of the TACACS server on your network. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| DHCP Pool Config | From the Global Config mode, enter ip dhcp pool pool-name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| DHCPv6 Pool Config | From the Global Config mode, enter ipv6 dhcp pool pool-name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| DHCP Class Config | From the Global Config mode, enter ip dhcp class class-name. |
To exit to the Global Config mode, enter exit. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| DHCP Pool Class Config | From the DHCP Pool Config mode, enter class name. |
To exit to the DHCP Pool Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Stack Global Config Mode |
From the Global Config mode, enter the stack command.
Note: This mode is supported for an M4350 series switch only.
|
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| ARP Access-List Config Mode | From the Global Config mode, enter arp access-list. | To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| VLAN Config | From the Global Config mode, enter vlan vlan-id. |
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| ERSPAN Source Session Config | From the Global Config mode, enter monitor session session-id type erspan-source. |
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| ERSPAN Source Session Destination Config | From the ERSPAN Source Session Configuration Mode, enter destination. | To exit to the ERSPAN Source Session Destination Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| ERSPAN Destination Session Config | From the Global Config mode, enter monitor session session-id type erspan-destination. |
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| ERSPAN Destination Session Source Config | From the ERSPAN Destination Session Configuration Mode, enter source. | To exit to the ERSPAN Destination Session Source Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Track Config | From the Global Config mode, enter track object-number ip sla operation-number. |
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| IP SLA Config | From the Global Config mode, enter ip sla operation-number. |
To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| IP SLA ICMP Echo Config | From IP SLA Config mode, enter icmp-echo destination-ip-address. |
To exit to the IP SLA ICMP Echo Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Captive Portal Config | From Global Config mode, enter captive-portal. | To exit to the Global Config mode, enter the exit command. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| Captive Portal Instance Config | From the Captive Portal Config mode, enter configuration cp-id. |
To exit to the Captive Portal Instance Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |
| VRRP Config Mode |
From the Interface Config mode, enter
Note: This mode is supported for an M4350 series switch only.
|
To exit to the Interface Config mode, enter exit. Then, to exit to the Global Config mode, enter exit again. To return to the Privileged EXEC mode, enter Ctrl-Z. |