Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw0
sw0(config)#clock set 8:33:26 17 Feb 2012
^
% Invalid input detected at '^' marker.
sw0(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
sw0#clock set 8:33:26 17 Feb 2012
sw0#config t
Enter configuration commands, one per line. End with CNTL/Z.
sw0(config)#enable secret yanjin
sw0(config)#line console 0
sw0(config-line)#password yanjin
sw0(config-line)#login
sw0(config-line)#line vty 0 15
sw0(config-line)#password yanjin
sw0(config-line)#login
sw0(config-line)#line console 0
sw0(config-line)#logging s
sw0(config-line)#logging synchronous
sw0(config-line)#exec-timeout 0 0
sw0(config-line)#exit
sw0(config)#banner motd #
Enter TEXT message. End with the character '#'.
This is sw0
#
sw0(config)#service ?
password-encryption Encrypt system passwords
timestamps Timestamp
debug/log messages
sw0(config)#service pa
sw0(config)#service password-encryption
sw0(config)#