BASIC CONFIG COMMANDS
Moving between modes
>enable
#configure terminal
(config)#
(config)#exit
#exit
>
Configuring the hostname
#configure terminal
(config)#hostname <name>
Configuring passwords
(config)#enable password <password>
(config)# enable secret <password>
(config)#line <type> <number>
(config-line)#password <password>
(config-line)#login
(config-line)#logging synchronous
(config-line)#exec-timeout <minutes> <seconds>
Encrypting passwords
(config)#service password-encryption
Configuring no domain lookup
(config)#no ip domain lookup
Configuring banners
(config)#banner <banner-type> <banner-message>
Configuring local usernames & passwords
(config)# username <name> [privilege <number>] password <password>
(config)# line <type> <number>
(config-line)#login local
Configuring interfaces IPs
(config)#interface <interface-name> x/y
(config-if)#description <description>
(config-if)#ip address <ip-address> <subnet-mask>
(config-if)#no shutdown
Configuring an alias
(config)#ip host <name> <ip>
Saving the configuration
#copy running-config startup-config
Deleting the configuration
Router :
#erase startup-config
#reload
Switch :
#delete flash: [Link]
#erase strartup-config
#reload
Verifying the configuration
#show
#show
#show
#show
#show
#show
#show
#show
#show
#show
#show
version
flash
protocols
controllers
processes
interfaces [interface-id]
ip interface brief
running-config
mac address-table
cdp neighbors [detail]
arp