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