Chapter 6 - Configuring Basic Switch Management Flashcards
By default, how secure is each CLI access method? (Console, SSH, Telnet)
By default a user is allowed full access when connected into the console without any password requirement. However Telnet and SSH don’t even allow users to login to user mode without a password. SSH also requires a username unlike Telnet.
What is vty?
- Virtual Teletype - Lines that allow you to remotely connect to a device via SSH or Telnet. The command ‘line vty 0 4’ opens up 5 vty lines meaning that 5 users can be connected via Telnet or SSH at a time.
- The lines will be used in order (e.g. if you disable Telnet on line 0 but any other lines have it enabled, you will not be able to login via Telnet as it will attempt to log you in as line 0).
What does ‘Enable Password’ do?
Allows the user to set a password for accessing Enable mode
How do you create a separate user login?
Enter ‘Username <name> secret <password>'. You then need to tell the access method (console or vty) to use this login method instead of shared passwords by entering the 'login local' command.</password></name>
What is AAA and what does it do?
-AAA (Authentication, Authorisation, and Accounting) servers store usernames and passwords for logging into routers/switches.
- Some useful things that an AAA server does is forced password maintenance.
- It also centralises login details so they can be changed for all devices connected to this server at a central location instead of having to login to each device and change the details manually.
What process and protocols does AAA use for authentication?
A username and password is supplied by the user, the switch/router then sends a query to the AAA server to confirm if this is valid (Telnet or SSH). The AAA server then responds advising whether the combination is valid (RADIUS or TACACS+).
How do you tell the device to generate SSH keys?
First you need to define the hostname of the device and apply a domain name. Once you enter ‘crypto key generate rsa’ it will then generate crypto keys using the hostname and domain name for an FQDN.
How do you disable the functionality that causes a device to automatically attempt to resolve a hostname if you mistype a command?
Enter no ip domain-lookup.
What does ‘Enable Secret’ do?
This will overwrite Enable Password and it is also encrypted in MD5 as standard.
How would you disconnect (suspend) a Telnet session you are currently on to return to the original device?
- You would enter ‘ctrl+shit+6’ at the same time and then press ‘x’.
- or type exit
- or logout
How would you see suspended Telnet sessions? How would you then reopen a previously disconnected session?
You would use the ‘show sessions’ command. A * will be listed next to the most recently disconnected session.
You would use the ‘resume’ command to reconnect to a previously disconnected Telnet session. this will just resume the most recently suspended one. You can also use the ‘resume <connection>' to resume a specific connection rather than the most recent.</connection>