search the web

Friday, March 25, 2016

Recovering Cisco 2500 series Router Password

Recovering Cisco 2500 series Router Password

---------------------------------------------
Switch off the routre
Swich on the router
After 3 seconds press Ctrl+PAUSEBREAK

you will enter into rom monitor mode

>
now write
>o/r 0x2142
2142 is the configuration register number through which the router loads the IOS and the configuration files.
For password recovery we are concerned with two numbers
2102=This is the default and means to load the Configuration file from nvram.
2142=means to bypass the configuration file and load the router without any configuration.

>init
!This will load the router without configuration.

Router>en
Router#copy startup-config running-config
conf t
enable password cisco
line con 0
password cisco
login
exit
line vty 0 4
password cisco
login
exit
configuration-register 2102
exit
copy run star
reload
-------------------------------------
Cisco 2600
-------------------------------------
Switch off the routre
Swich on the router
After 3 seconds press Ctrl+PAUSEBREAK

you will enter into rom monitor mode

romon>
now write
romon>confreg 0x2142
2142 is the configuration register number through which the router loads the IOS and the configuration files.
For password recovery we are concerned with two numbers
2102=This is the default and means to load the Configuration file from nvram.
2142=means to bypass the configuration file and load the router without any configuration.

>reset
!This will load the router without configuration.

Router>en
Router#copy startup-config running-config
conf t
enable password cisco
line con 0
password cisco
login
exit
line vty 0 4
password cisco
login
exit
configuration-register 2102
exit
copy run star
reload

Recovering Switch Password

Recovering Switch Password

-----------------------------------
Power on the switch by holding the mode button

you will see

flash_init
load_helper
boot
Then Write
Switch:flash_init
switch:load_helper
switch:dir flash:
delete a file by the name of config.text
switch:delete flash:config.text
switch:boot
!your switch will load without configurations
copy the configuraton file to the switch
change the passwords and save the configurations.

copy flash:config.text running-config

Tuesday, March 22, 2016

Recovering Cisco Switch IOS

Recovering Cisco Switch IOS


First change the BAUD rate which the bits per second on your console

switch: set BAUD 115200
Reconnect with new BAUD RATE

switch: copy xmodem: flash:c2950-i6q4l2-mz.121-22.EA1.bin [IOS FILE NAME]

Click the transfer menu and click send
select xmodem protcol and browse the file on your machine.


Tuesday, March 15, 2016

Configuring Inter-vlan routing

Configuring Inter-vlan routing


------------------------------------------------------------------
R3
------------------------------------------------------------------
conf t
int e0/0
ip address 192.168.5.1 255.255.255.0
no shut

int e0/0.10
encapsulation dot1q 10
!This command enables the dot1q encapsulation and tells the port that it will handle the data from vlan 10

ip address 192.168.10.1 255.255.255.0
no shut
exit

int e0/0.20
encapsulation dot1q 20
ip address 192.168.20.1 255.255.255.0
no shut
exit

int e0/0.30
encapsulation dot1q 30
ip address 192.168.30.1 255.255.255.0
no shut
exit


Wednesday, March 2, 2016

Initial configuration of Switch

Initial configuration of Switch



!Would you like to setup this switch [yes/no]:no
!Press enter
!We are now in User EXEC Mode
Switch> enable
!By typing enable we will come down to Privilidge mode

Switch#disable
!We exit out of priviledge mode

Switch#logout
!we will logout from this mode

Switch#exit
!takes us one step up

Switch#configure terminal
!it takes us to global configuration

Switch#exit
!it takes us one step up

--------------------------------------------------------------
Configuring Cisco Switch
--------------------------------------------------------------
enable
conf t
!shortcut for configure-termnial
!for shortcuts we must make the command unique
!for example if i write c terminal, now the there may be many words starting with c
!so my command is not unique, it will prompt me with the error ambigous command
!means there are many options for the device for commands

hostname 2ndFL_WC_S1
!this command sets our switch name to 2ndFL_WC_S1

interface vlan 1
!This will take us to the logical interface of Cisco Switch for configurin the IP Address
!Vlan one is only a logical interface for configuring cisco switch remotely

ip address 192.168.4.3 255.255.255.0

no shutdown
!this command makes our interface adminsitratively up
shut
!it will shutdown the interface
exit
exit

!i am now in privilidge mode
show ip interface brief
!This command will show us the details of our interfaces

show mac-address-table
!shows the CAM table of my switch

show post
!shows info about power on self test that was carried out when switch was power on

show version
!it will show us the details about our switch, the model, the ios and other details

show interface fastethernet 0/1
!shows the details about interface fa 0/1 0 is the module number and 1 is the interface !number

conf t
interface fa 0/1
!this command takes us to interface 0/1 now we can apply any configuration on fa 0/1
description CONNECTION TO FINANCE
!we can set any description to the interface
exit
exit

show flash:
!this shows us any files in the flash

dir nvram:
!shows files inside Nvram

conf t
ip default-gateway 192.168.4.1
!this command sets default gateway on your switch
exit

!Lets configure console password

conf t
line console 0
password cisco
login
logging synchronous

!loggin synch commands manages thelogs coming to console


!password cisco will enable cisco as consol password and login command will ask user for !login
exit

enable password cisco
!This sets a password for coming from user mode to privildge mode
enable secret ecisco
!enables the secret MD5 encrypted password

!Configuring LINE VTY for enabling switch to accept telnet for remote adminsitration
line vty 0 15
password cisco
login

!Erasing the startup configuration
erase startup-configuration

reload
!reloads the switch

!Copying running-configuratio to startup configuration
!copy run star

dir system:
!shows what is inside our ram-------shows our running storage area