Welcome to weblogs.com.pk Sign in | Join | Help

How to recover password on Juniper Router's

In the real world, you always have a chance to lose a password. Recovring root password can be done by booting Juniper router under a specific mode: Single-User-Mode

 

·        From console, interrupt the boot routine:

 

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

prompt.

        Booting [kernel] in 9 seconds...

        < Press the space bar at this point >

 

·        Enter into single-user mode:

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

        ok boot -s

 

·        Enter the shell:

 

·        Mount the virtual file systems (for JUNOS 5.4 and above, it is not

necessary to mount the jbase package, however the other packages still need to be mounted):

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

(with ^D)

        # cd /packages

        # ./mount.jbase

        Mounted jbase package on /dev/vn1...

        # ./mount.jkernel

        Mounted jkernel package on /dev/vn2...

        # ./mount.jroute

        Mounted jroute package on /dev/vn3...

 

·        Enter recovery mode:

        # /usr/libexec/ui/recovery-mode

 

·        Enter configuration mode and either delete or change the root

authentication password:

 

        root> configure

        Entering configuration mode

        [edit]

        root# delete system root-authentication

·        Commit the changes, and exit configuration mode

        [edit]

        root # commit

        commit complete

        [edit]

        root@router# exit

        Exiting configuration mode

        root@router> exit


Exit recovery mode and enter "y" when prompted to reboot the system:

        Reboot the system? [y/n] y

        Terminated

The system now reboots and changes made to root authentication are activated.

Retrieved from "http://juniper.cluepon.net/index.php/Password_recovery"

 

Published Wednesday, June 18, 2008 12:03 PM by jahil
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Thursday, June 19, 2008 12:17 AM by Derek

# re: How to recover password on Juniper Router's

Thursday, April 16, 2009 4:09 AM by Data recovery service experts

# Data recovery service experts

Recovery starts with knowing which solution you need to reclaim the lost data. File recovery is the most common one but advanced users often rely a a partition product if the circumstance allows it. Service is for a failing hard drive.

Leave a Comment

(required) 
required 
(required)