Upload
ealfora
View
4
Download
1
Embed Size (px)
DESCRIPTION
Basic Config Commands
Citation preview
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: vlan.dat#erase strartup-config#reload
Verifying the configuration
#show version#show flash#show protocols#show controllers#show processes#show interfaces [interface-id]#show ip interface brief#show running-config#show mac address-table#show cdp neighbors [detail]#show arp