<Jeremy's IT Lab> Day4: Introduction of CLI

2025. 3. 16. 18:15CS/CCNA

728x90

Introduction of CLI

CLI:

interface you use to configure Cisco devices

 

connect Cisco device:

->Console port (USB Mini-B, RJ45)

-> Rollover cable (!= cross over)

 

 

User EXEC Mode (limited)

 

Priviledged EXEC Mode 

->cannot change the configuration, but change time or save config files

 

service password-encryption & secret

-> enable service password-encryption

  • current pw encrypted
  • future pw encrypted
  • enable secret NOT be effected

-> disable service password-encryption

  • current pw encrypted
  • future pw decrypted
  • enable secret NOT be effected

//CLI

Router> e? ## displays possible commands begins with [cmd]
Router> password ? ## displays possible options can be entered next
<cr> ## no further option

Router> ## user EXEC mode
Router# ## privileged EXEC mode
Router(config)# ## global configuration mode
----------------------------------------------------------------------------
Router>enable 
## enter privileged EXEC mode

Router#configure terminal
## enter global configuration mode

Router(config)#enable password [password]
## configures a pw

Router(config)#service password-encrytion
## encrpyts enable pw (easy to detected)

Router(config)#enable secret [password]
## configure more secure

Router(config)#run [privileged-exec-level-command]
## execute from gloabl config mode

Router(config)#no [cmd]
## removes

Router(config)#show running-config
## displays current, active config file

Router(config)#show startup-config
## displays the saved config file which will be loaded if devices restarted

Router(config)#write
Router(config)#write memory
Router(config)#copy running-config startup-config
## saves the configuration

 


Acronyms

  • CLI : Command-line interface
  • GUI : Graphical User Interface