Sunday, 8 November 2015

VLAN configuration

VLAN


  • By default the switch is set by vlan1
  • Valid number for vlan range is from 2-4094
  • When configure configure the interface, it is in a disable state until you enable it

Create VLAN and assign VLAN name

sw1>config terminal
sw1 (config) # vlan 20
sw1 (config) # name Student
sw1 (config) # no shut
sw1 (config) # exit


Remove VLAN

sw1> conf t
sw1(config) # no vlan 20
sw1(config) #exit


To show or check VLAN

sw1 # show vlan


Assign port on specific VLAN

sw1>conf t
sw1(config) # int fa0/2
sw1(config-if) # switchport mode access
sw1(config-if) # switchport access vlan 20
sw1(config-if) # no shut
sw1(config-if) # exit



Wednesday, 4 February 2015

Basic cisco configuration

Setup a password on Router/Switch privileged mode 

S1 > en
S1# conf t
S1 (config) # enable password password

ex :

S1 > en
S1# conf t
S1 (config) # enable password cisco



   Encrypting Passwords 
the password we create in the privilege mode still can be view in the #show run command


to hide this password use this command 

S1 > en
S1# conf t
S1 (config) # service password-encryption



Create banner motd (message of the day)

to create the banner info use this command 

S1 > en
S1# conf t
S1 (config) # banner motd ^ insert your text here ^

ex

S1 > en
S1# conf t
S1 (config) # banner motd ^

*******************************
*  Unauthrorised access not allowed  *
******************************* ^