Chapter 6 - Basic Switch Management Flashcards
line console 0
Changes the context to console configuration mode
line 0 15 vty
vty config mode for range defined in command
login
Console and vty config mode - Tell IOS to prompt for password
password [pass-value]
Console and vty config mode - lists passwords required if the login command (with no other parameters) is configured
virtual teletype
login local
Console and vty config mode. Tells IOS to prompt for username and password, to be checked against locally configured username global config commands on this switch or router
username [name] secret [pass-value]
Global command. Defines on of possibly multiple usernames and associated passwords. Used when the “login local” command has been used.
crypto key generate rsa [modulus 360…2048]
Global command. Creates and stores (in a hidden location in flash memory) the keys required by SSH
transport input [telnet | ssh | all | none]
vty line config mode. Defines whether telnet/ssh access is allowed into the switch. Both can be configured on one line
interface vlan [number]
Changes the context to VLAN interface mode.
ip address [ip-address subnet-mask]
VLAN interface mode. Statically configures the switches IP address and mask.
ip address dhcp
VLAN interface mode. Configures the switch as a DHCP client to discover its IPv4 address, mask, and default gateway.
ip default gateway [address]
Global command. Configures the switch’s default gateway IPv4 address. Not required if the switch uses DHCP
ip name-server [server 1] [server 2]
Global command. Configures the IPv4 address of DNS servers, so any commands when logged in to the switch will use the DNS for name resolution.
hostname [name]
Global command. Sets the switch’s hostname.
enable secret [pass-value]
Global command. Sets the switch password for access to “enable” mode
history size [length]
line config mode. Defines the number of commands held in the history buffer
logging synchronous
Console or vty mode. Tells IOS to send log messages to the user at natural break points between commands.
[no] logging console
Global command that disables or enables the display of log messages to the console
exec-timeout [minutes] [seconds]
Console or vty mode. Sets the inactivity timeout
show running-config
Lists the currently used config
show running-config | begin line vty
Pipes (sends) the command output to the “begin” command, which only lists output beginning with the first line that contains the text “line vty”
show dhcp lease
Lists any info the switch acquires as a DHCP client.
show crypto key mypubkey rsa
Lists the public and shared key created for use with SSH using the “crypto key generate rsa” global config command
show ip ssh
Lists status info for the SSH server, including the SSH version
show interfaces vlan [number]
Lists the interface status, the switch’s IPv4 address and mask
show ip default-gateway
Lists the switch’s setting for its IPv4 default gateway
terminal history size [x]
Changes the length of the history buffer for the current user only, only for the current login to the switch