Thursday, March 17, 2016

Basic Configuration on CISCO Routers and Switches

Setting up the Hostname of a Switch/Router
================================
Switch>enable
Switch#config t
Switch(config)#hostname S1
S1(config)#

=========================================
Removing the Hostname
=====================
Switch>enable
Switch#config t
S2(config)#no hostname

==============================================
Setting up the passwords

1. Console port Password
Switch>enable
Switch#config t
Switch(config)#line console 0
Switch(config-line)#password conpass
Switch(config-line)#login
Switch(config-line)#exec-timeout 0 60
Switch(config-line)#exit

2. Protecting the Privilege Mode (Enable secret)
Switch>enable
Switch#config t
Switch(config)#enable secret privpass
Switch(config)#exit


=========================================
Setting up an IP address to a switch
============================
Switch>enable
Switch#config t
Switch(config)#interface vlan1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
===================================
Setting up telnet Lines (VTY Lines)
===============================

Switch>enable
Switch#config t
Switch(config)#line vty 0 15
Switch(config-line)#password vtypass
Switch(config-line)#login
Switch(config-line)#exec-timeout 0 60
Switch(config-line)#exit

========================================
Creating Banner Message of the day
================================
Switch>enable
Switch#config t
Switch(config)#banner motd @
Enter TEXT message.  End with the character '@'.
***********************************
CONSULT AN ADMINISTRATOR
**********************************
@


=====================================

Saving your Coniguration
========================

Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch#

===========================================

No comments:

Post a Comment