Agift From God!!!

I am Just Ordinary boy who wish to be an Expert someday. believe that impossible is nothing !! and The Power Of Dream………

Archive for September, 2007


Line VTY untuk Fuji Sayang :D

Bro Fuji, melanjutkan your question Via SMS. below is the explanation:

Klo mo telnet ke perangakat Cisco, kita mesti men-set password di line VTY, jika nggak maka akan ada notification seperti ini. password required but not set ( dan lo ga akan bisa masuk melalui port 23 ( telnet ).

so all you need is set the IP and VTY password:

interface Vlan1
ip address 192.168.40.21 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.40.1
ip http server

Trus Password VTY nya:
line vty 0 4
password 7 11281856121B050B05
login


catalyst di setting dengan IP 192.168.40.21
255.255.255.0 dengan gateway 192.168.40.1.

Untuk maintain catalyst ini bisa dilakukan secara remote, dimana kita bisa
memanfaatkan fasilitas telnet dengan mengetikan alamat IPnya pada port 23.

Selamat mencoba, ngomong2 klo ada perangkat ngangur dikantor loe, jangan sungkan2 bawa kerumah gw yak :D ………………..

Catalyst Password Recovery ( dedicated to Fuji )

Fuji itu temen
satu angkatan gw dulu waktu jaman di TTC Telkom Slipi, kebanyakan sekarag dah
pada mencar di tempat yg berbeda-beda, ada yang tetap di Telco, ada yang ke
Provider, ada juga yang ke badan pemerintahan. Kapan ya kita bisa kumpul2 lagi..

 

Nah Fuji itu sekarang join Di Taspen ( he he , gw buka semua
ya Ji ). suatu malam dia telp gw, nanya cara Password Recovery di Switch
Catalyst, coz dia sedang berhadapan dengan mahluk bernama Catalyst C2950.

 

( untungnya semua berjalan mulus, padahal config yg lama dah
abiz ketimpa, coz dia ga masukin copy start run untuk balikin konfig lama)
malahan kebalikannya copy run start. Eh ga taunya emang konfig lamanya ga mau
dipake . ya sukur lah……

Biar klo suatu saat lo lupa tinggal liat kesini aja, nih gw Post, kebetulan
dikantor, gw  juga pernah nyoba pake
cisco WS-C2950-24 (RC32300) processor (revision G0) with 20402K bytes of
memory.

Step 1:

Tekan + tahan tombol Mode pada saat Switch dinyalakan (Biasanya di Catalyst
2950 ada tombol mode).

Lalu akan muncul seperti ini:

Code:

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

sampai muncul sebuah prompt:

Code:

switch:

 

 

 

 

Step 2:

setelah itu masukkan perintah load_helper:

switch:load_helper >> ini fungsinya buat meng-initiate command2 yang hidden

Step 3:

masukkan perintah flash_init:

switch: flash_init

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

>> fungsinya adalah untuk inisialisasi flash system image yg ada
pada switch.

Step 4:

Karena yang akan kita modifikasi config.txt ada di flash, maka masukan
perintah

dir
flash:
untuk melihat file2 yang tersimpan di flash.

 

switch: dir flash:

Directory of flash:/

2    -rwx  2664051   <date>               c2950-i6q4l2-mz.121-11.EA1.bin

3    -rwx  269       <date>               env_vars

4    -rwx  2296      <date>               vlan.dat

5    -rwx  3441      <date>               config.text

6    -rwx  5         <date>               private-config.text

7    drwx  704       <date>               html

19   -rwx  109       <date>               info

20   -rwx  109       <date>               info.ver

3774976 bytes available (3966464 bytes used)

Nah kelihatan

kan

tuh file2
apa saja yg disimpan di Flash:

File IOS, data Vlan juga startup config yaitu config.text, file config.text
inilah yang di load pada saat switch booting.

Jadi intinya kita kudu memanipulasi atau mengedit file config.text itu biar
pada saat booting switch tidak meload config.text yang tentunya akan meminta
password yang kita tidak tahu atau lupa :D

Caranya ? here we go for the next
step.

Step 5:

Rename file config.text menjadi config.text.old

 

switch: rename flash:config.text flash:config.text.old

----Cek Hasil-----

switch: dir flash:

Directory of flash:/

2    -rwx  2664051   <date>               c2950-i6q4l2-mz.121-11.EA1.bin

3    -rwx  269       <date>               env_vars

4    -rwx  2296      <date>               vlan.dat

5    -rwx  3441      <date>               config.text.old

6    -rwx  5         <date>               private-config.text

7    drwx  704       <date>               html

19   -rwx  109       <date>               info

20   -rwx  109       <date>               info.ver

3774976 bytes available (3966464 bytes used)

switch:

Step 6:

Restart Switch

 

switch: boot

setelah command boot di execute :

switch: boot

Loading "flash:/c2950-i6q4l2-mz.121-11.EA1.bin"...#########################################################################################################################################################################################################################################################################################

File "flash:/c2950-i6q4l2-mz.121-11.EA1.bin" uncompressed and installed, entry point: 0x80010000

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 (tm) 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: 0x80010000, data-base: 0x80528000

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]:


Selesai deh, tinggal ketik no jadi kayak switch baru, tapi masalahnya gmn
klo kita Cuma mau ganti password aja sedangkan untuk konfigurasi yang exist
tetap akan kita pake ( itu yg kemarin gw tanyaain Ji). Klo jawaban lo konfig
lama tetap mau lo pake, maka proses tidak berhenti di situ.

Lo harus copy start config ke run config, caranya:

 

Switch# copy flash: config.text system: running-config

Source filename [config.text]?

Destination filename [running-config]?

maksud tujuan diatas adalah agar meload configurasi lama kita ke
running-config.

Trus intinya ini: ubah enable secret sesuka loe,

 

Switch#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#enable secret maknyos

Switch(config)#exit

00:

05:18

: %SYS-5-CONFIG_I: Configured from console by consol     

Switch#write

Building configuration...

[OK]

 

Semoga bermanfaat Bro, klo kesulitan juga untuk password recovery di Router,
itu lebih gampang lagi man, tinggal masuk rommon trus ubah register dari
default config-register 0×2102 menjadi confreg 0×2142  > bypass biar
pada saat booting ga ngeload dari NVRAM start up config.

 

Keep the spirit high and stay on the line ………