我的一亩三分地 我就喜欢!
13fen  设为主页
 收藏本站
 
当前位置: > 一亩三分地:首页 > 网络技术 > 网络综合 > JuniperPasswordRecovery
热门文章排行
热门文章排行 巧妙排除网络连接故障(11-16)
详述光波分复用(WDM)技术(下篇)(12-05)
Vobsub的常见问题(12-05)
无图像、无声音、图像声音不同步问题(12-05)
颠覆WLAN英特尔演示220Mbps无线超宽(12-05)
精采文章排行
精采文章排行
技术专题推荐
网管论坛交流
 

JuniperPasswordRecovery 

作者:   来源:[互连网]   点击:   日期:2006-12-05

After a reboot of the box you will bee presented with something similar to the following, type -s then *enter* when you see this

  screen for JUNOS 4.4 and below:

  boot.config: -D -h

  >> BOOT @ 0x10000: 639/65535 k of memory, serial/dual console

  Boot default: 0:wd(0,a)kernel

  Usage: bios_drive:interface(unit,partition)kernel_name options

  interface wfd or wd

  unit 0, 1, ...

  partition a, c, ...

  kernel_name name of kernel, or ? for list of files in root

  directory

  options -c (userconfig) -s (single user) -v (verbose)

  -D (dual consoles) -h (alternate console) -P (probe

  kbd)

  boot: -s

  Booting 0:wd(0,a)kernel @ 0x100000

  text=0x1b0000 data=0x18000 bss=0x27f1c

  symbols=[+0xe4+0x4+0x1d850+0x4+0x29606]

  total=0x336e5e entry point=0x100000

  -snip bootup stuff-

  Enter pathname of shell or RETURN for sh:

  NOTE: to go to multi-user operation, exit the single-user shell (with

  ^D)

  #

  Or with 5.0 and above you will get this instead, upon bootup. Hit any

  key besides enter before boot up starts and then run boot -s then

  *enter*:

  Console: serial port

  BIOS drive C: is disk0

  BIOS 639kB/129920kB available memory

  FreeBSD/i386 bootstrap loader, Revision 0.8

  (builder@vitra.juniper.net, Tue Jun 5 07:41:35 GMT 2001)

  Loading /boot/defaults/loader.conf

  /kernel text=0x26e61a data=0x2b69c+0x2b4f8

  syms=[0x4+0x33530+0x4+0x39c31]

  Loader Quick Help

  -----------------

  The boot order is PCMCIA or floppy -> Flash -> Disk -> Lan ->

  back to PCMCIA or floppy. Typing reboot from the command prompt will

  cycle through the boot devices. On some models, you can set the next

  boot device using the nextboot command: nextboot compact-flash | disk

  For more information, use the help command: help

  Hit [Enter] to boot immediately, or any other key for command prompt.

  Booting [kernel] in 4 seconds...

  Type ? for a list of commands, help for more detailed help.

  ok boot -s

  Copyright (c) 1996-2001, Juniper Networks, Inc.

  All rights reserved.

  Copyright (c) 1992-2001 The FreeBSD Project.

  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,

  1994

  -snip rest of boot sequence-

  Enter full pathname of shell or RETURN for /bin/sh:

  NOTE: to go to multi-user operation, exit the single-user shell (with

  ^D)

  #

  Like you said, the script will run fsck, mount the appropriate slices,

  and then run mgd and start the cli. You can do this all manually if

  you want or run the script, does not matter. The script is just

  easier to remember if your not familiar with the manual method.

  -Julian

  ""TARRY James"" wrote in message

  news:200110232122.RAA30917@groupstudy.com...

  : Question...

  :

  : I am wondering though about how you get to the boot prompt itself?

  :

  : Your instructions say:

  : 1) obtain console access

  : 2) power off the system and boot it up in single user mode

  : 3) type -s at the boot prompt.

  :

  : So JUNOS runs off of UNIX BSD which is what youll be accessing when

  you

  : boot the router. So you have to use -s (single user mode) and then

  you run

  : the script.

  :

  : I think the script must run the fsck and mount and starts the

  management

  : daemon

  : if my information is correct, but getting to the boot prompt is

  confusing me.

  :

  : So I am assuming that when the Juniper router reboots that

  : it will automatically boot to Multiuser mode unless you specify

  single

  : user mode (which has no password)?

  : The question is then how do you get to the boot prompt so that

  : you can specify the -s option. Does it come up automatically?

  :

  : As you can tell I do not have the luxury to test out this sequence.

  :

  : JT

  :

  :

  : D J E wrote:

  :

  : > Please do the following to recover/reset the root password:

  : >

  : > 1. Obtain console access

  : >

  : > 2. Power off the system and boot it up in single user

  mode.

  : > This is done by typing "-s" at the boot: prompt.

  : >

  : > 3. Next, the system will do its normal boot up process.

  When

  : prompted

  : > for "pathname" enter: /usr/libexec/ui/recovery-mode

  : > This will run a script for password recovery.

  : >

  : > Enter pathname of shell or RETURN for sh:

  : > /usr/libexec/ui/recovery-mode

  : >

  : > 4. The system will finish booting up and put you at a

  "root>"

  : prompt

  : > as such.

  : >

  : > NOTE: the system

  : > Starting CLI ...

  : > root>

  : >

  : > 5. Now you can go into configuration mode and edit or

  delete the

  : > root authentication password.

  : >

  : > root> configure

  : > Entering configuration mode

  : >

  : > [edit]

  : > root# delete system root-authentication

  : >

  : > [edit]

  : > root# commit and-quit

  : > commit complete

  : > Exiting configuration mode

  : >

  : > 6. Finally, reboot system.

  : >

  : > root@congo3> request system reboot

  : > Reboot the system ? [yes,no] (no) yes

  : >

  : > Unfortunately I dont know of a way to do this without rebooting

  the router.


文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:
·网络端口及其详解<三> ·网吧另类文章
·Win2K/WinXP网络显示配置常用命令 ·个人服务器之Win2000 DNS服务器的设
·网络端口及其详解<二> ·网络端口及其详解<一>

   文章评论:(条)
  
 请留名: 匿名评论   点击查看所有评论 网管论坛
 

  责任编辑:一分  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。