Skip to content

Commit

Permalink
Add more commands to cli cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
laaraujo committed May 11, 2024
1 parent 1442dbc commit 3a55dbf
Showing 1 changed file with 34 additions and 27 deletions.
61 changes: 34 additions & 27 deletions cheat_sheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,45 @@
| --- | --- |
| > | User EXEC mode |
| # | Privileged EXEC mode |
| (config)# | Global configuration mode |
| (config-if)# | Interface configuration mode |
| (config) | Global configuration mode |
| (config-if) | Interface configuration mode |

## Passwords

| Mode | Command | Description |
| --- | --- | --- |
| (config)# | `enable password <password>` | Set plain text password to <password> |
| (config)# | `service password-encryption` | Use Cisco's Type 7 encoding |
| (config)# | `enable secret <password>` | Set MD5 hashed password to <password> and disable old passwords |
| (config) | `enable password <password>` | Set plain text password to <password> |
| (config) | `service password-encryption` | Use Cisco's Type 7 encoding |
| (config) | `enable secret <password>` | Set MD5 hashed password to <password> and disable old passwords |

## Basics

| Mode | Command | Description |
| --- | --- | --- |
| > | `enable` | Change to Privileged EXEC mode |
| | `exit` | Exit current mode |
| | `no <command>` | Disable a feature/function or reverse the action of <command> |
| # | `configure terminal` | Enter Privilleged EXEC mode |
| # | `show running-config` | Show current config |
| # | `show startup-config` | Show startup config |
| # | `write` | Save running-config as startup-config |
| # | `write memory` | Save running-config as startup-config |
| # | `copy running-config startup-config` | Save running-config as startup-config |
| # | `ping <ip_address>` | Ping <ip_address> |
| # | `show mac address-table` | Show the MAC address table |
| # | `show arp` | View the ARP table and show all ARP entries |
| # | `show ip interface brief` | Show interfaces status and configured IP addresses |
| (config)# | `shutdown` | Disable interface |
| (config)# | `clear mac address-table` | Manually clear the MAC address table |
| (config)# | `clear mac address-table dynamic <interface>` | Clear MAC address table entry for <interface> interface |
| (config)# | `do <command>` | Run <command> in Privileged EXEC mode |
| (config)# | `interface <interface_name>` | Enter <interface_name> config mode |
| (config)# | `interface range <interface_start> <interface_stop>` | Enter interface config mode for all interfaces (including) <interface_start> through <interface_stop> |
| (config)# | `ip address <ip_address> <subnet_mask>` | Configure interface IP address |
| Mode | Command | Description |
| --- | --- | --- |
| > | `enable` | Change to Privileged EXEC mode |
| | `exit` | Exit current mode |
| | `<text>?` | Show possible commands for the current mode starting with <text> |
| | `<command> ?` | Show possible options to complete the <partial_command> command with |
| | `no <command>` | Disable a feature/function or reverse the action of <command> |
| | `do <command>` | Run <command> in Privileged EXEC mode |
| # | `configure terminal` | Enter Privilleged EXEC mode |
| # | `show running-config` | Show current config |
| # | `show startup-config` | Show startup config |
| # | `write` | Save running-config as startup-config |
| # | `write memory` | Save running-config as startup-config |
| # | `copy running-config startup-config` | Save running-config as startup-config |
| # | `ping <ip_address>` | Ping <ip_address> |
| # | `show mac address-table` | Show the MAC address table |
| # | `show arp` | View the ARP table and show all ARP entries |
| # | `show ip interface brief` | Show interfaces status and configured IP addresses |
| # | `show interfaces status` | Show L2 nad L3 info about the interfaces and their status |
| # | `show interfaces <interface>` | Show all available info about <interface> interface |
| (config) | `shutdown` | Disable interface |
| (config) | `clear mac address-table` | Manually clear the MAC address table |
| (config) | `clear mac address-table dynamic <interface>` | Clear MAC address table entry for <interface> interface |
| (config) | `interface <interface_name>` | Enter <interface_name> config mode |
| (config) | `interface range <interface_start> - <interface_stop>` | Enter interface config mode for all interfaces (including) <interface_start> through <interface_stop> |
| (config-if) | `ip address <ip_address> <subnet_mask>` | Configure interface IP address |
| (config-if) | `speed <speed>` | Manually configure interface/s speed |
| (config-if) | `duplex <duplex>` | Manually configure interface/s duplex |
| (config-if) | `description <text description>` | Set the description field for the interface to <text description> |

0 comments on commit 3a55dbf

Please sign in to comment.