text
stringlengths
0
6.55k
Figure 4-5 Terminal Settings for Console Access
Accessing the CLI with Telnet and SSH
For many years, terminal emulator applications have supported far more than the ability to communicate over a serial port to a local device (like a switch’s console). Terminal emulators support a variety of TCP/IP applications as well, including Telnet and SSH. Telnet and SSH both allow the user to connect to another d...
|||||||||||||||||||| Technet24
||||||||||||||||||||
Chapter 4: Using the Command-Line Interface 91
a console cable to the console port, the traffic flows over the same IP network that the net-working devices are helping to create.
Telnet uses the concept of a Telnet client (the terminal application) and a Telnet server (the switch in this case). A Telnet client, the device that sits in front of the user, accepts keyboard input and sends those commands to the Telnet server. The Telnet server accepts the text, interprets the text as a command, and...
Cisco Catalyst switches enable a Telnet server by default, but switches need a few more con-figuration settings before you can successfully use Telnet to connect to a switch. Chapter 6, “Configuring Basic Switch Management,” covers switch configuration to support Telnet and SSH in detail.
Using Telnet in a lab today makes sense, but Telnet poses a significant security risk in pro- 4 duction networks. Telnet sends all data (including any username and password for login to
the switch) as clear-text data. SSH gives us a much better option.
Think of SSH as the much more secure Telnet cousin. Outwardly, you still open a terminal emulator, connect to the switch’s IP address, and see the switch CLI, no matter whether you use Telnet or SSH. The differences exist behind the scenes: SSH encrypts the contents of all messages, including the passwords, avoiding th...
User and Enable (Privileged) Modes
All three CLI access methods covered so far (console, Telnet, and SSH) place the user in
an area of the CLI called user EXEC mode. User EXEC mode, sometimes also called user mode, allows the user to look around but not break anything. The “EXEC mode” part of the name refers to the fact that in this mode, when you enter a command, the switch executes the command and then displays messages that describe the ...
NOTE If you have not used the CLI before, you might want to experiment with the CLI from the Sim Lite product, or view the video about CLI basics. You can find these resources on the companion website as mentioned in the Introduction.
Cisco IOS supports a more powerful EXEC mode called enable mode (also known as privi-leged mode or privileged EXEC mode). Enable mode gets its name from the enable com-mand, which moves the user from user mode to enable mode, as shown in Figure 4-6. The other name for this mode, privileged mode, refers to the fact that...
NOTE If the command prompt lists the hostname followed by a >, the user is in user mode; if it is the hostname followed by the #, the user is in enable mode.
||||||||||||||||||||
||||||||||||||||||||
92 CCNA 200-301 Official Cert Guide, Volume 1
Console
Telnet User Mode
SSH
Enable (Command)
Enable Mode (Privileged Mode)
Disable (Command)
Figure 4-6 User and Privileged Modes
Example 4-1 demonstrates the differences between user and enable modes. The example shows the output that you could see in a terminal emulator window, for instance, when con-necting from the console. In this case, the user sits at the user mode prompt (“Certskills1>”) and tries the reload command. The reload command te...
Example 4-1 Example of Privileged Mode Commands Being Rejected in User Mode
Press RETURN to get started.
User Access Verification
Password:
Certskills1>
Certskills1> reload
Translating "reload"
% Unknown command or computer name, or unable to find computer address
Certskills1> enable
Password:
Certskills1#
Certskills1# reload
Proceed with reload? [confirm] y