Hillstone設備密碼與配置恢復方法_第1頁
Hillstone設備密碼與配置恢復方法_第2頁
Hillstone設備密碼與配置恢復方法_第3頁
Hillstone設備密碼與配置恢復方法_第4頁
免費預覽已結束,剩余1頁可下載查看

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、的時候,1.設備在啟動過程中,在設備加載配置文件過程中( console輸出為 但是還未出現login:提示前),輸入entershell后,等待出現#號即可。HILLSTONE hETWOftKSHi 11Rnn*liftad*r ? 1 1 Apr 八 7rHfJ-1 1? EProduct S/h: G8O202D1110020924 Assenbly nEiiher : C0Upl at form: SG-60D-NW20DR咖:512附日HCOTfl型:512 KBPr«3i ESC to stop autQbaot:0Loading SGOOQ-M- 5, OfL-4F4

2、 B1- .-6 - bin竹竹摩岫打,和#"”#打 W竹桿#沖!時杓#竹獷時打,#州,耕靜忖系祥竹“ M肝”*#7,索時Lead ccwplere_ 11S98704 bytes loadedBoat G£.yrrtier sJ t(2013-08-05 15:36:04 CSTj bui-t-in 5hel1 (ash) a list of bu-ilt口eh南ds.z 茬 Smif invalid 11of ur 1 db ihfru to dFl pt cd B5otne invil id licenses of qog n0gd to be del ©t

3、ied.iixstdll 1 iceriie. (pldtlO1222O6J335) failed:%unlinq: 1 i& is not 1口1 id fur this 5肝電 ver l: ianSeme invflilTiri licpmse of trial plsrtfnrff need to bi* del etedP5owe invaiid ncenses crF Tp5 need to be deleted.5«ne j ftv*l 1 id 17七電力5電與 o+ slh need to be del eted .Som* wval id 1 icnse-

4、i of appdb 門事電d Lq b電 il喳1 世t虺d唯,卜* 喈.+.Load Ips daub本e failedW 1 c O I" FHi I I s t c? n e Net.orksMillstone stoneos 50ft忱arc version 5.0Copyright (c) 20D9-231-1 by Hi_1st one Networks2.進入設備的配置文件目錄與查看配置文件 法心d fl ash/config/ wr_poi nt/etc/rnnty rtrtdblconfigtotal 38-rw-r-r-1 root0-rw-r1 root0-r

5、w-r-r-1 root0-rw-r-r-1 root0-rw-r-r-1 root0-rw-r-r-1 root0-rw-r-r-1 root0-rw-r-一1 root01 root02 2 2 2-22203:5404:1004:14063006:3207:2007:4807:4S0123456 c gggggggQii -1-T1 f f f f f f f f nnnnnnnn- oooooooa cccccccc如果設備存在多份配置文件,如 config.x,x值最大的為當前配置文件,也是我們需要進行修改的配置文件,如此時的當刖配置文件為config.63.通過vi方式編輯該文件,

6、并輸入i進入編輯模式,把 password后面改為hillstone,并按esc退出編輯模式后,輸入:x (或者輸入:wq),然后再敲enter后保存文件成 功。最后輸入reboot重啟防火墻即可。如果想放棄修改則輸入:q!按回車/wr_point/etc/home/config # vi config.6 admin user "hillstone"password WG1pvgEyNZN1M0jgqwjLGDWwAV把上一行的password 密碼改成下一行的hillstone 密碼,就可以把密碼恢復成hillstone 了password hillstone在此過程中

7、發現vi 命令好像被限制了,出現以下現象:/wr_point/ttc/rwt/frrtdblock2/conf15 * vl config.6# Generated by hi 11st one at 2015-03=。)01;12;36* Sita ts 4809 hytaq# Software version 5.0 5G600Q-m 5.Or4P5.7.bin 201i/02/03 11:11:14Version 5.4ip vrouter "trust-vr"«Kltvsbitch 1,vswitchl"e>it?one "tru

8、st” «xi tzon« "untrust1'*xit zone "dmzr" «9dtzone U-trust" 12exitNbh電"12-urrtrust'' 12ewltzone "12-dnii" 12exitrone "PNHub”exitEna hH4uexitinter face vswiti.hi flexitint erfa« ethernetO/O fixitinterfi« ethcrnetO/1 piti nt e

9、r face ethernetO/2exiti nt er face ethernet0/3 憚xi tinterfit* ethernetQ/4 exit aaa-server "local" type local exit admin user "hi 11 stone 'pas 5 war di dbyFq&vr:E3yOdMv'.z+kPLEQy<3 privilege RXW A ML JR G 1|vi: td/ft rtad u£i- input/config .此限制,可以通過如下方法解決達到修改config

10、.6配置文件3.1 首先先備份當前配置文件config.6 ,以防萬一# cp confTg.6 config.6.bak桂 Is -1-明r p 1root-rw-rr1root-rw-r一一一一1root-rw-r-(1root-rw-rr1root-rw-r-r-1root1root-rw-r r-1root-rw-r一一r一一1root-rw-r-r一r9 f 1IrootOOOOOOOOOO4945Mar301:12confi g.O4945Mar301: 30conf-i g. 10Mar302:37config.20Mar302:37confi g. 30Mar302:confi

11、g.40Mar302:17config.50Mar302:57c&nfig.60Mar3Q2B7config.6 »bak271Mar301:30canfig.conf258Mar301:30vsy5corfig.conf3.2 然后將配置文件config.6的內容拷貝到本地/wr_point/etc/mnt/mtdblock2/config # cat config.6如果cat config.6顯示不全,可以使用cat config.6 | more分屏方式來進行輸出/m?_point/etc/imt/mtdblo<k2/config # cat config_ 6

12、 I more -# Generated by hi11stone at 2015-03-03 01:12;38/用 Size is 4S05 byl非J# Software Version 5.0 SG6000-H-5. 0R4?5. 7.bin 2015/02/03 11:11:141J15Version 5. 4 0Iip vrout er "trust -vr"exitivswi tch Vswi t chlexi t 1zone “tvuvt”esi t1-a ”kJ zone untrust Lexi t izone "dn立"exi t i

13、zone 12-lrust* 12exi t isane "lZmtruBt" 12。exi t izone芯"1ZJexi t*-然后將這些信息保存在電腦本地磁盤上,隨意取個名如 config.txt ,打開此config.txt 文件3.3修改管理員密碼打到hillstone密碼一欄,把admin user "hillstone"password WG1pvgEyNZN1M0jgqwjLGDWwAV 把紅色部分修改成hillstone ,則密碼就為 hillstone4 .把修改完的 config.txt 文件寫入 hillstone 設備

14、輸入 cat >> config.test <<EOF,將test.txt中的內容粘貼在下面,輸入EOF結束輸入,這樣就產生了一個config.test文件。/wr.poi nt7etc/mnt/nTtdblock2/conf'ig # cat » config.txt « EOF > > ipsec proposal r,e輸入e口碑束輸入nt/etc/mnt/ffltdbl ock4 /conf i 口 #+j如果cat OEF命令使用錯誤,無法退出cat EOF模式,可以通過 Ctrl+D退出shell模式直接進入StoneOS模式,但是此時由于用戶密碼還沒有修改過來所以也無法直接進入 StoneOS,因此還需要再重啟設備通過entershell進入shell模式5 .檢測 config.test 文件<wrrjci nt/«tc/mt/nrtcfl31 o<k2/confi q # Isconfig.txt vsys_configtconf通過cat config.txt | moreconfig.0con千ig.lconfig.6config.1config.1c

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論