3
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>

Basic Config Commands

Embed Size (px)

DESCRIPTION

Basic Config Commands

Citation preview

Page 1: Basic Config Commands

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

Page 2: Basic Config Commands

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