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 d794c34
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions cheat_sheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,32 @@

## 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 d794c34

Please sign in to comment.