0% found this document useful (0 votes)
56 views

Basic Config Commands: Moving Between Modes

This document provides basic configuration commands for routers and switches, including commands to configure the hostname, passwords, banners, interfaces, aliases, and saving, deleting, and verifying the configuration. It describes commands for moving between different configuration modes, setting passwords, encrypting passwords, disabling domain name lookups, configuring local logins, and more.

Uploaded by

ealfora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Basic Config Commands: Moving Between Modes

This document provides basic configuration commands for routers and switches, including commands to configure the hostname, passwords, banners, interfaces, aliases, and saving, deleting, and verifying the configuration. It describes commands for moving between different configuration modes, setting passwords, encrypting passwords, disabling domain name lookups, configuring local logins, and more.

Uploaded by

ealfora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like