CLI: Cisco IOS

Configure Cisco networking devices in the terminal


Get connected via SSH, Telnet, Serial, Console, AUX and learn to speak the Cisco Internetwork Operating System language!
  • Elevate from User EXEC to Privileged EXEC
    • switch > enable
    • switch#
  • Configure device (global)
    • switch# configure terminal
    • switch (config)#
  • Set password
    • switch (config)# enable secret P@ssw0rd123!
  • Set hostname
    • switch (config)# hostname switch-floor2
    • switch-floor2 (config)#
  • Configure specific line (SSH, Console, etc.)
    • switch (config)# line console
    • switch (config-line)#
  • Configure specific interface (GigabitEthernet0/1, Vlan1, Port-channel1)
    • switch (config)# interface vlan1
    • switch (config-if)#
  • Exit mode
    • switch (config)# end
    • switch#
  • Quit process
    • CTRL + SHIFT + 6

passwords
  • Set priveleged EXEC password
    • switch (config)# enable secret P@ssw0rd123!
    • switch (config)# exit
  • Set user EXEC password
    • switch (config)# line console 0
    • switch (config-line)# password P@ssw0rd123!@
  • Set line password
    • switch (config)# line vty 0 15
    • switch (config-line)# password P@ssw0rd123!@
    • switch (config-line)# login
    • switch (config-line)# end
banner
  • switch (config)# banner login #
  • switch (config)# banner motd #
  • switch (config)# banner exec #
show
  • switch# show ip interface brief
  • switch# show running-config
  • switch# show version
ip address
  • switch(config)# interface vlan1
  • switch (config-if)# ip address 192.168.1.1 255.255.255.0