Config Commands Flashcards
Configure device system name
config t
hostname hostname
Set the encrypted enable password
config t
enable secret password
Set an unencrypted enable password
enable password password
Enable password encryption on all clear text passwords within config file
config t
service password-encryption
Assign IP address to a VLAN
config t
int vlan [vlan number]
ip address [ip address] [subnet mask]
Assign default gateway
config t
ip default-gateway [ip address]
Set interface description
config t
int [interface number]
description description
Add and name a vlan
config t
vlan [vlan number]
name [vlan name]
Configure speed
config t
int [interface number]
speed [10, 100, 1000, auto]
Configure duplex setting
config t
int [interface number]
duplex [auto, full, half]
Assign interface to a VLAN
config t
int [interface]
switchport mode access vlan [vlan number]
Enable Port Security
config t
int [interface]
switchport mode access
switchport port-security mac-address sticky
Configure Telenet sessions with password
config t
line vty [first line] [last line]
login
password [password]
Synchronize console messages
logging synchronous
Set timezone and automatically adjust
config t
clock timezone [timezone] [hours offset from gmt]
clock summer-time [timezone] recurring
Set the switch priority for vlan
config t
spanning-tree vlan [vlan number] priority [priority number]
Enable portfast
config t
int [interface number]
spanning-tree portfast