Você está na página 1de 4

TEN3M1

Prompts and Commands

02/02/2014

Prompts
User EXEC mode

Switch>

Privileged EXEC

Switch#
mode
Switch(config)#
configuration mode
Switch(config-if)#
configuration mode
Switch(config-vlan)#
Switch(config-line)#

Move between modes


Switch> enable
user EXEC mode privileged EXEC mode
Switch# disable
privileged EXEC mode user EXEC mode
Switch# configure terminal
privileged EXEC mode global configuration mode
Switch(config)# interface ..
Switch(config)# line ..
Switch(config)# vlan ..
global configuration mode specific EXEC mode
Switch(config-if)# exit
Switch(config-line)# exit
Switch(config-vlan)# exit
specific configuration mode global configuration mode
Switch(config)# end (Ctrl-Z)
global configuration mode privileged EXEC mode
specific configuration mode privileged EXEC mode

Global

Specific

TEN3M1

Prompts and Commands

02/02/2014

Error Messages
% Incomplete command.
Keywords or arguments missing.
% Ambiguous command: s
Not enough characters entered to recognize the command.
% Invalid input detected at ^ marker.
Marker indicates wrong keyword or argument.

Keyboard Shortcuts
Up or Down Arrow
Allow the user to scroll through former commands.
Tab
Complete the remainder of a partially typed command or keyword.
Ctrl-A
Move to the beginning of the line.
Ctrl-E
Move to the end of the line.
Ctrl-R
Redisplay a line.
Ctrl-Z
Exit the configuration mode and returns to user EXEC.
Ctrl-C
Exit the configuration mode or aborts the current command.
Ctrl-Shift-6
Interrupt an IOS process such as ping or traceroute.

Show Command
Switch# show
Display information about the configuration, operation, status, etc.
Switch# show startup-config
Display the saved configuration located in VRAM.
Switch# show running-config
Display the contents of the currently running configuration file.
--More-Press Spacebar to view the next portion ore Enter to view the next line

Configure IOS Hostname

TEN3M1

Prompts and Commands

02/02/2014

Switch# hostname name


Configure the hostname.
Switch# no hostname
Remove the hostname.

Configure Passwords
Switch(config)# enable secret class
Secure privileged EXEC access with an encrypted password class.
Switch(config)# line console 0
Switch(config-line)# password cisco
Switch(config-line)# login
Create a password cisco for a console line. Enforce authentication upon login.
Switch(config)# line vty 0 15
Switch(config-line)# password cisco
Switch(config-line)# login
Create a password cisco for all 16 telnet lines (number depends on switch).
Enforce authentication upon login.
Switch(config)# service password-encryption
Apply encryption to all unencrypted passwords in the configuration file.
Switch(config)# banner motd # message #
Create a message of the day banner (displayed to all connected terminals).

Save or Delete Configuration


Switch# copy running-config startup-config
Save the temporary running configuration to startup configuration file.
Switch# reload
Restore device to its previous configuration.
Switch# delete vlan.dat
Clear the file containing VTP updates.
Switch# erase startup-config
Clear the startup configuration.

Configure Switch Virtual Interface


Switch(config)# interface vlan 1

TEN3M1

Prompts and Commands

Enter interface configuration mode.


Switch(config)# ip address 192.168.10.2 255.255.255.0
Configures the IP address and subnet mask for the switch.
Switch(config)# no shutdown
Enable the interface to an active state.
Switch# show ip interface brief
Verify condition of the switch interfaces.

02/02/2014

Você também pode gostar