Using CLI Flashcards
Cabling the console connection
Consist of three main components
- Physical console port on the switch
- Physical serial port on the PC
- Cable that works with console and serial ports
Different forms of connection
SW1 - Host
- RJ45 Console on SW1
- Rollover cable
- Serial port on Host
SW2 - Host
- RJ45 Console on SW2
- Rollover cable
- USB Converter, USB Cable
- USB Port on Host
SW3 - Host
- USB Console on SW3
- USB Cable
- USB Port on Host
Console port settings
- 9600bits/s
- No hardware flow control
- 8 bit ASCII
- No parity bits
- 1 stop bit
Accessing CLI with Telnet
Telnet allows user to connect to another device’s CLI, Traffic flows over the same IP network that the network the devices are working on
Telnet uses the concept of a telnet client and a telnet server. A telnet client, accepts keyboard input from user and send those commands to the Telnet server. Telnet server accepts the text, interprets the text as a command and replies back
Issue with Telnet
Poses a security risk in production network, sends all data as clear text data
Pros of SSH
SSH is a more secure version of Telnet, encrypts the contents of all messages, including the passwords, avoiding the possibility of someone capturing packets in the network and stealing the password
Three CLI access mode
EXEC mode - Allows the user to look around but not break anything
Enable mode - Moves the user from user mode to enable mode, allow powerful commands to be executed
Both mode above does not disrupt switch operations or config
Global Config mode - Commands that tell the switch the details of what to do and how to do it
Reload command
reload
Tells the switch to reinitialize or reboot IOS
Show running-config
Lists the current config in the switch
Enable secret love
Defines the password that all users must use to reach enable mode
line console 0
A command that identifies the console, “basically the next few commands apply to the console only”
login
Commands tells IOS to perform simple password checking
password
Defines the password the console user must type when prompted
Help features
? - All commands
command ? - describe all the first parameter option for the command
Help features are mode specific
debug and show commands
show, find the current status and list the information in messages sent to the user