CLI error messages on a Cisco device often appear cryptic and the exact reason for an error message may not be immediately clear. Click on any of error messages below for details about the message including common causes and resolutions for these messages.
Cisco's Command Line Interface supports shortcuts and features that speed up our ability to perform configuration and administration tasks. Familiarizing ourselves with these shortcuts allows us to perform CLI tasks quickly and efficiently.
In this post we list out some of these shortcuts and features and how to get the most out of them.
Command History (↑ and ↓ keys)
Command History is a useful feature found on most Command Line Interfaces (including Linux terminals, Windows Command Prompts and most network device command line interfaces). It allows a user to scroll through previously typed commands at a CLI prompt. This is particularly useful for the following purposes:
Type in a command only once - access the same command by simply using the ↑ key
When the same command has to be entered multiple times, with different parameters each time, you can speed up the process by accessing the previously typed in command (by using the ↑ and ↓ keys) and changing only the parameters required.
In many network topologies, there may exist multiple paths to the same destination network. When multiple routes with the same Administrative Distance are available for a particular network, a router will install all the routes (with the lowest Administrative Distance) in its routing table.
If multiple routes are installed in a Routing Table for the same destination network, the router must choose one of the routes every time a packet needs to be routed to this destination network. By choosing different routes for different packets, the router can load-balance the traffic destined for the destination network.
Cisco routers offer 2 different mechanisms to perform load-balancing across multiple routes to the same destination network. Click on the links below for details on each mechanism.
Layer 2 interfaces on Cisco devices support 4 trunking administrative modes. These are access, trunk, dynamic auto and dynamic desirable.
The switchport mode access command statically configures an interface in access mode.
The switchport mode trunk command statically configures an interface in trunk mode.
Cisco's proprietary Dynamic Trunking Protocol (DTP) allows a layer 2 interface to dynamically set its trunking configuration when not statically assigned.
Click on the link below to learn more about Cisco Dynamic Trunking Protocol: