How to recovery Password On Cisco Switch

0

Posted by Cah Solo | Posted in

OK friend i want to solve problem to recovery password on cisco Switch this special for my friend ...
First, i uses cisco catalyst 2950 & 2960 but this problem solve can uses for cisco catalyst 35xx

OK go to lab. Look your switch any 2 button in switch : Power and Mode.After that turn on your switch when switch start-up press Mode button until

The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

flash_init
load_helper
boot

after that

Switch:

write command : Switch: load_helper

after that you can look it like this in your monitor.

Load_helper — Load and initialize a helper image

and write command again to initial flash : Switch: flash_init

after that you can look it like this in your monitor

Initializing Flash…
flashfs[0]: 18 files, 2 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 3966464
flashfs[0]: Bytes available: 3774976
flashfs[0]: flashfs fsck took 7 seconds.
…done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4

after your initial flash, write command : switch: dir
this command for looking directory on switch.

You can looking like this in directory

switch: dir

List of filesystems currently registered:

flash[0]: (read-write)
xmodem[1]: (read-only)
null[2]: (read-write)
bs[3]: (read-only)

ok we can go to flash directory
write command : switch: dir flash:
Directory of flash:/

2 -rwx 2664051 c2950-i6q4l2-mz.121-11.EA1.bin
3 -rwx 269 env_vars
4 -rwx 2296 vlan.dat
5 -rwx 3441 config.text
6 -rwx 5 private-config.text
7 drwx 704 html
19 -rwx 109 info
20 -rwx 109 info.ver

3774976 bytes available (3966464 bytes used)

before i want continued this topic i can explain a little file on flash directory.

1. c2950-i6q4l2-mz.121-11.EA1.bin --> this IOS file
2. vlan.dat --> this configuration VLAN on your switch
3. config.text --> This file for configuration Switch

OK I want continued this topic. We can manipulate Switch configuration .

first : Rename Switch Configuration

switch: rename flash: config.text flash: config.text.lama

Before you continued configuration please cek again files on flash Directory.

switch: dir flash:
Directory of flash:/

2 -rwx 2664051 c2950-i6q4l2-mz.121-11.EA1.bin
3 -rwx 269 env_vars
4 -rwx 2296 vlan.dat
5 -rwx 3441 config.text.lama
6 -rwx 5 private-config.text
7 drwx 704 html
19 -rwx 109 info
20 -rwx 109 info.ver

3774976 bytes available (3966464 bytes used)
switch:

after you cek flash directory we can go to start up again

switch: boot

after we enter command boot you can look :

ile “flash:/c2950-i6q4l2-mz.121-11.EA1.bin” uncompressed and installed, entry point: 0×80010000
executing…

Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software – Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco Internetwork Operating System Software
IOS ™ C2950 Software (C2950-I6Q4L2-M), Version 12.1(11)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Wed 28-Aug-02 10:25 by antonino
Image text-base: 0×80010000, data-base: 0×80528000

Initializing flashfs…
flashfs[1]: 18 files, 2 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 3966464
flashfs[1]: Bytes available: 3774976
flashfs[1]: flashfs fsck took 7 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed

POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950-24 (RC32300) processor (revision G0) with 20402K bytes of memory.
Processor board ID FOC0652Y1DH
Last reset from system-reset
Running Standard Image
24 FastEthernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0B:BE:DE:C2:40
Motherboard assembly number: 73-5781-11
Power supply part number: 34-0965-01
Motherboard serial number: FOC06520A0V
Power supply serial number: PHI06470GKF
Model revision number: G0
Motherboard revision number: A0
Model number: WS-C2950-24
System serial number: FOC0652Y1DH

— System Configuration Dialog —

Would you like to enter the initial configuration dialog? [yes/no]:

don't forget typing no for bypass initial configuration

after that please enter this command to looking flash directory and rename config.text.lama and re change config.text to config.text.lama

Switch>en
Switch#dir
Directory of flash:/

2 -rwx 2664051 Mar 01 1993 00:03:22 c2950-i6q4l2-mz.121-11.EA1.bin
3 -rwx 269 Jan 01 1970 00:01:24 env_vars
4 -rwx 2296 Mar 28 1993 22:10:35 vlan.dat
5 -rwx 3441 Mar 08 1993 22:54:27 config.text.lama
6 -rwx 5 Mar 08 1993 22:54:27 private-config.text
7 drwx 704 Mar 01 1993 00:03:59 html
19 -rwx 109 Mar 01 1993 00:04:01 info
20 -rwx 109 Mar 01 1993 00:04:01 info.ver

7741440 bytes total (3774976 bytes free)

Switch#rename flash:config.text.lama flash:config.text
Destination filename [config.text]?

this command for re change config.text to config.text.lama

Switch# copy flash: config.text system: running-config
Source filename [config.text]?
Destination filename [running-config]?

don't forget press enter for reload your configuration

and your switch configuration has back again

Switchdudul#
after that don't forget to replace your enable secret

Switchdudul# configure terminal
Switchdudul (config)# enable secret khayangan
Switchdudul (config)# exit
Switchdudul# write memory
Building configuration…
[OK]

OK your Switch has back again. I hope this article can help you

cheers

"Belajarlah dari Masa lalu "

How to Setup mikrotik to bandwidth management on ADSL network

0

Posted by Cah Solo | Posted in

First i want to make my design network

LAN —> Mikrotik RouterOS —> ADSL Modem —> INTERNET

For the LAN, we use a class C, with the network 192.168.0.0/24. For RouterOS, we need two ethernet cards. One (ether1 - 192.168.1.2/24) for connection to an ADSL modem and one more (ether2 - 192.168.0.1/24) for connection to the LAN. For ADSL Modem, our IP set 192.168.1.1/24.

Before typing anything, make sure you have been at the root menu by typing "/"
Set IP for each ethernet card ²
ip address add address = 192.168.1.2/24 interface = ether1
ip address add address = 192.168.0.1/24 interface = ether2
To display the results of the above command type the following command:
ip address print

Then do the testing by trying ping to the gateway or to a computer on the LAN. If the result is successful, then you are correct IP configuration
ping 192.168.1.1
ping 192.168.0.10
Adding Routing
ip route add gateway = 192.168.1.1

Setup DNS

ip dns set primary-dns = 202.134.1.10 allow-remote-requests = yes
ip dns set secondary-dns = 202.134.0.155 allow-remote-requests = yes
Please adjust your DNS provider.

After that try to do ping to yahoo.com for example:
ping yahoo.com

If the result is successful, then the DNS settings are correct
Source NAT (Network Address Translation) / Masquerading
For all existing computers on the LAN can connect to the internet as well, then you need to add NAT (Masquerade) on Mikrotik.
ip firewall nat add chain = srcnat action = masquerade out-interface = ether1
Now try to ping yahoo.com from your computer on the LAN
ping yahoo.com

If the result is successful, then the settings are correct masquerade
DHCP (DynamicHost Configuration Protocol)
Due to practical reasons, in my network i use the DHCP Server.because with DHCP if any people want to connect to my network i could't to setup IP again.

Creating an IP Address Pool

ip pool add name = dhcp-pool ranges = 192.168.0.2-192.168.0.254

Add a DHCP Network

ip dhcp-server network add address = 192.168.0.0/24 gateway = 192.168.0.1 dns-server = 202.134.1.10,202.134.0.155

Adding a DHCP Server

ip dhcp-server add name = DHCP_LAN disabled = no interface = ether2 address-pool = dhcp-pool

Now try testing from a client computer, to request the IP Address from a DHCP Server.

Bandwidth Control

For all client computers on the LAN bandwidth not fight each other, it is necessary to a distinguished name is bandwidth management or bandwidth control
The model that I use is to queue trees. To more clearly what it is, please refer to the site Mikrotik
His condition like this:

Speedy connection it said speednya until 384/64 Kbps (Download / Upload), well it was very rare condition is reached. So we must look for its estimated average ². So I take the minimum for downloading can get about 300 Kbps and 50 Kbps upload allocate aq. As for which its maximum, about ² to 380 Kbps download and 60 Kbps upload.

Then, the number of client computers that exist today are 10 pieces. So be prepared to share the bandwidth to 10 client.

² The calculation for each client like this:
Minimal Downloads: 300 / 10 * 1024 = 30720 bps
Max Downloads: 380 / 10 * 1024 = 38912 bps
Minimum uploads: 50 / 10 * 1024 = 5120 bps
Max Upload: 60 / 10 * 1024 = 6144 bps

Next we start the configuration:

Mark all packets came from LAN

ip firewall mangle add src-address = 192.168.0.0/24 action = mark-connection new-connection-mark = Clients-con chain = prerouting
ip firewall mangle add connection-mark = Clients-con action = mark-packet new-packet-mark = Clients chain = prerouting

Adding a rule that will limit the download and upload speeds

queue tree add name = Clients-Download parent = ether2 packet-mark = Clients limit-at = 30720 max-limit = 38 912

queue tree add name = Upload parent = Clients ether1-packet-mark = Clients limit-at = 5120 max-limit = 6144

Now try doing a test download from a few clients.if no any problems you has finis to setup microtik...



"Belajarlah dari Masa lalu "