cisco router の初期化 +++++++++++++++++++++++++++++++++++++ ■ コンソールケーブルをPCと繋ぎ TERA TARM のシリアル   ポートを立ち上げる。ルータの電源ON。すると System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 1024 Kbytes of main memory ■ 等と出ますので、すかさずBreak信号を送り下記の値を入力。   (TERA TERMの場合は、ALT+B) Abort at 0x10EA81C (PC) | Abort at 0x10EA81C (PC) rommon 1>confreg 0x2142 | >o/r 0x2142 rommon 2>reset | >i ・・・・・再起動・・・・・ System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 1024 Kbytes of main memory F3: 3831620+95964+196092 at 0x3000060 ・・・・・ 中略・・・・・ At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Would you like to enter the initial configuration dialog? [yes]:no ■ no を入力 Press RETURN to get started! %LINK-3-UPDOWN: Interface Ethernet0, changed state to up %LINK-3-UPDOWN: Interface Ethernet1, changed state to up %LINK-3-UPDOWN: Interface Serial0, changed state to down %LINK-3-UPDOWN: Interface Serial1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down %SYS-5-RESTART: System restarted -- Cisco Internetwork Operating System Software IOS (tm) 3000 Software (IGS-I-L), Version 11.1(22), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1998 by cisco Systems, Inc. Compiled Mon 28-Sep-98 17:20 by richv %LINK-5-CHANGED: Interface Ethernet0, changed state to administratively down %LINK-5-CHANGED: Interface Ethernet1, changed state to administratively down %LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINK-5-CHANGED: Interface Serial1, changed state to administratively down Router> ■ 下記の様に入力する。 Router>en Router#write erase [OK] Router# ■ 後は、レジスタを元に戻します。電源を入れなおして、(OFF,ON) System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 1024 Kbytes of main memory ■ 等と出ますので、再度Break信号を送り下記の値を入力。   (TERA TERMの場合は、ALT+B) Abort at 0x10EA81C (PC) | Abort at 0x10EA81C (PC) rommon 1>confreg 0x2102 | >o/r 0x2102 rommon 2>reset | >i ・・・・・再起動・・・・・ System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 1024 Kbytes of main memory F3: 3831620+95964+196092 at 0x3000060 ・・・・・中略・・・・・ At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Would you like to enter the initial configuration dialog? [yes]: ■ これで立ち上がると完全に初期状態になりますので電源OFFにて終了です。 また続きに初期設定する場合は Would you like to enter the initial configuration dialog? [yes]:yes ■ yes 又は Enter にて以下諸設定してください。 cisco router startup +++++++++++++++++++++++++++++++++++++ Would you like to enter the initial configuration dialog? [yes]:■Enter First, would you like to see the current interface summary? [yes]:■Enter Any interface listed with OK? value "NO" does not have a valid configuration Interface IP-Address OK? Method Status Protocol Ethernet0 unassigned NO unset up down Ethernet1 unassigned NO unset up down Serial0 unassigned NO unset down down Serial1 unassigned NO unset down down Configuring global parameters: Hostname:■ルータ名(例:Router) Enter enable secret:■enableユーザ(特権モード)になるパスワード(例:*****) The enable password is used when there is no enable secret and when using older software and some boot images. Enter enable password:■telnetでのloginパスワード(例:***) Enter virtual terminal password:■telnetでのloginパスワード(再) Configure SNMP Network Management? [yes]:■Enter Community string [public]:■Enter Configure Vines? [no]:■Enter Configure LAT? [no]:■Enter Configure AppleTalk? [no]:■Enter Configure DECnet? [no]:■Enter Configure IP? [yes]:■Enter Configure IGRP routing? [yes]:■no (IGRPを使用しない場合) Configure RIP routing? [no]:■Enter (RIPを使用しない場合) Configure CLNS? [no]:■Enter Configure bridging? [no]:■Enter Configure IPX? [no]:■Enter Configure XNS? [no]:■Enter Configure Apollo? [no]:■Enter Configuring interface parameters: Configuring interface Ethernet0: Is this interface in use? [yes]:no Configuring interface Ethernet1: Is this interface in use? [yes]:no Configuring interface Serial0: Is this interface in use? [yes]:no Configuring interface Serial1: Is this interface in use? [yes]:no ■ シリアルポート・イーサネットを使用する場合は ip address , mask を上記にて設定する。(後で設定可能) The following configuration command script was created: →設定したコンフィグ内容が表示される。 Use this configuration? [yes/no]: yes →設定が running-config として保存される。 Router> Router>en password:***** Router# ■ 設定項目の保存 Router# copy run sta cisco switch の初期化 +++++++++++++++++++++++++++++++++++++ http://www.cisco.com/japanese/warp/public/3/jp/service/tac/473/156-j.shtml (catalyst2900) ------------------------------------------------------- ■ コンソールケーブルをPCと繋ぎ TERA TARM のシリアル   ポートを立ち上げる switch の電源ON。すると Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"...######### #################################################### ■ 等と出ますので、すかさずBreak信号を送りROM 画面を出す。   (TERA TERMの場合は、ALT+B) switch: switch: flash_init ----->と入力 Enter Initializing Flash... flashfs[0]: 143 files, 4 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672 flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck took 86 seconds ....done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4 switch: !--- This output is from a 2900XL switch. Output from a !--- 3500XL, 3550 or 2950 will vary slightly. switch: switch: load_helper ----->と入力 Enter switch: dir flash: ----->と入力 Enter Directory of flash:/ 2 -rwx 1803357 c3500xl-c3h2s-mz.120-5.WC7.bin !--- This is the current version of software. 4 -rwx 1131 config.text !--- This is the configuration file. 5 -rwx 109 info 6 -rwx 389 env_vars 7 drwx 640 html 18 -rwx 109 info.ver 403968 bytes available (3208704 bytes used) switch: switch: rename flash:config.text flash:config.old ----->と入力 Enter switch: boot ----->と入力 Enter Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"...############################### ################################################################################ ###################################################################### File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed and installed, entry po int: 0x3000 executing... !--- Output suppressed. !--- This output is from a 3500XL switch. Output from a 2900XL, 2950 or 3550 !--- will vary slightly. ・・・・・中略・・・・・ Continue with the configuration dialog? [yes/no]: ■ これで初期状態になりますので電源OFFにて終了です。 また続きに初期及びVLAN等設定する場合は以下の様に 特権モードのパスワードを設定後、諸設定してください。 Continue with the configuration dialog? [yes/no]: N Switch> Switch> en Switch# Switch# rename flash:config.text.old flash:config.text Switch# copy flash:config.text system:running-config Source filename [config.text]? ■Enter Destination filename [running-config]? ■Enter Switch# Switch# conf t Switch(config)# enable secret ****** (パスワード) Switch(config)# exit Switch# copy run sta (catalyst5000) ------------------------------------------------------- ■ Break信号を送ってもレジスタが止まらないのでそのまま起動。 System Power On Diagnostics DRAM Size ....................64 MB Testing DRAM..................Passed NVRAM Size ...................512 KB Level2 Cache .................Present This may take up to 2 minutes....please wait Power supply 1 enabled Power supply 2 enabled Enter password: -----> Enter #####> #####> en ----->と入力 Enter #####> (enable) ----->と特権になるが、Enter password:からここまでを10秒以内             に行わねばならない。              P/S ciscoのページには Enter password: enter #####> #####> en +enter #####> (enable) set password +enter Enter old password: enter Enter new password: enter Retype new password: enter Password changed. Console> (enable) set enablepass +enter Enter old password: enter Enter new password: enter Retype new password: enter Password changed. とここまでを30秒以内に....とあるが、なぜか上記だけで              okeyのようだ。 続いて........ #####> (enable) clear config all ----->と入力 Enter This command will clear all configuration in NVRAM. This command will cause ifIndex to be reassigned on the next system startup. Do you want to continue (y/n) [n]? y ----->と入力 Enter ........... .......... ................................ 2002 Aug 03 15:16:19 %MLS-5-MCAST_STATUS:IP Multicast Multilayer Switching is disabled System configuration cleared. Use 'session' command to clear ATM or Router specific configurations. Console> (enable) と初期化されている。 Console> (enable) set password ----->と入力 Enter Enter new password:******* ----->とtelnet passwordを入力 Enter Retype new password:******* ----->と確認入力 Enter Console> (enable) Console> (enable) set enablepass ----->と入力 Enter Enter new password:***** ----->と特権passwordを入力 Enter Retype new password:***** ----->と確認入力 Enter Console> (enable) exit ----->と入力 Enter Enter password: で完了である。