juniper交换机密码重置

更新时间:2023-10-06 22:22:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

EX Switch root password recovery Knowledge Base ID: KB10503

Version: Published: Updated:

3.0

07 Oct 2008 07 Oct 2008 Switch Products

Categories:

EX3200 EX4200 JUNOS-EX

SYNOPSIS:

EX Switch root password recovery method during Beta period.

The procedure requires a few extra commands but will be simplified to a single command in loader mode in a later release.

PROBLEM:

EX Switch root password recovery. SOLUTION:

To recover the password on the EX Switch you must be connected via the console, reboot and then access Loader mode. The steps for completing this process are listed below along with the actual boot output.

Password Recovery Steps:

1. Access EX Switch via the console port. 2. Reboot the EX Switch

3. When prompted to enter Loader mode hit the bar and you will be sitting at the

\

loader> boot -s

4. When prompted with, \Enter full pathname of shell or 'recovery' for root password recovery

or RETURN for /bin/sh:\following:

# fsck -y

5. Once fsck completes you will be at the hash prompt again. Enter the following:

# mount -a

# rm /config/juniper* # exit

6. After the system is mounted you will be prompted with the root login prompt. Enter the

\

NOTE: A password is not required for root login during initial setup. Sample Boot Process:

Loading /boot/defaults/loader.conf

/kernel data=0xb4ac4c+0x5c744 syms=[0x4+0x83830+0x4+0x872e3]

Hit [Enter] to boot immediately, or space bar for command prompt. <<<<< HIT SPACE BAR >>>>>

Type '?' for a list of commands, 'help' for more detailed help. loader> boot -s

Kernel entry at 0xa0000100 ... GDB: debug ports: uart GDB: current port: uart

KDB: debugger backends: ddb gdb KDB: current backend: ddb

Copyright (c) 1996-2007, Juniper Networks, Inc. All rights reserved.

Copyright (c) 1992-2006 The FreeBSD Project.

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. JUNOS 9.1I20071129_2226_marcelm #1: 2007-11-29 22:27:50 UTC

marcelm@apg-bbuild01.juniper.net:/b/marcelm/junos/9.1a/obj-powerpc/sys/compile/JUNIPER-EX

WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant Timecounter \frequency 50000000 Hz quality 0

cpu0: Freescale e500v2 core revision 2.1 cpu0: HID0 80004080 real memory = 515899392 (492 MB) avail memory = 504369152 (481 MB) ETHERNET SOCKET BRIDGE initialising nexus0:

ocpbus0: on nexus0

openpic0: iomem 0xfef40000-0xfef600b3 on ocpbus0 uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: console (115207,n,8,1)

uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0

lbc0: iomem 0xfef05000-0xfef05fff,0xff000000-0xffffffff irq 22 on ocpbus0

cfi0: iomem 0xff800000-0xffffffff on lbc0 syspld0 iomem 0xff000000-0xff00ffff on lbc0

tsec0: iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 tsec0: hardware MAC address 00:19:e2:50:0b:7f miibus0: on tsec0

e1000phy0: on miibus0

e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto pcib0: iomem 0xfef08000-0xfef08fff,0xe0000000-0xefffffff on ocpbus0 pci0: on pcib0

pci0: at device 18.0 (no driver attached)

ehci0: mem 0xe0001000-0xe00010ff irq 22 at device 18.2 on pci0

usb0: EHCI version 0.95

usb0: on ehci0 usb0: USB revision 2.0

uhub0: Philips EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered

umass0: STMicroelectronics STORM II High Speed Mode, rev 2.00/2.00, addr 2 mpfe0: mem

0xe0002000-0xe0002fff,0xe4000000-0xe7ffffff irq 18 at device 19.0 on pci0 mpfe1: mem

0xe8000000-0xe8000fff,0xec000000-0xefffffff irq 19 at device 20.0 on pci0

i2c0: iomem 0xfef03000-0xfef03014 irq 59 on ocpbus0 i2c1: iomem 0xfef03100-0xfef03114 irq 59 on ocpbus0

idma0: iomem 0xfef21000-0xfef21300 irq 36 on ocpbus0 bme0:Virtual BME driver initializing Timecounters tick every 10.000 msec Loading common multilink module. IPsec: Initialized Security Association Processing. da0 at umass-sim0 bus 0 target 0 lun 0

da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers

da0: 500MB (1024000 512 byte sectors: 64H 32S/T 500C) if_pfe_open: listener socket opened, listening on ... Trying to mount root from ufs:/dev/da0s1a WARNING: / was not properly dismounted Attaching /packages/jbase via /dev/mdctl... Mounted jbase package on /dev/md0... System watchdog timer disabled

Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: <<<<< HIT ENTER >>>>>

NOTE: to go to multi-user operation, exit the single-user shell (with ^D) # fsck -y

** /dev/da0s1a (NO WRITE) ** Last Mounted on / ** Root file system

** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups

1232 files, 38168 used, 6055 free (39 frags, 752 blocks, 0.1% fragmentation) ** /dev/da0s3e (NO WRITE) ** Last Mounted on /config

** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups

9 files, 9 used, 15918 free (22 frags, 1987 blocks, 0.1% fragmentation) ** /dev/da0s1f (NO WRITE) ** Last Mounted on /var

** Phase 1 - Check Blocks and Sizes

INCORRECT BLOCK COUNT I=2332 (232 should be 228) CORRECT? no

INCORRECT BLOCK COUNT I=2333 (32 should be 28) CORRECT? no

** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=6934 OWNER=root MODE=100644 SIZE=44 MTIME=Nov 30 18:12 2007

RECONNECT? no

CLEAR? no

** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no

SUMMARY INFORMATION BAD SALVAGE? no

BLK(S) MISSING IN BIT MAPS SALVAGE? no

95 files, 7696 used, 26516 free (52 frags, 3308 blocks, 0.2% fragmentation) ** /dev/da0s3d

** Last Mounted on /var/tmp

** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups

10 files, 1325 used, 77322 free (34 frags, 9661 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN ***** # mount -a

# rm /config/juniper* # exit

Mounted jcrypto-ex package on /dev/md1... Mounted jdocs-ex package on /dev/md2... Mounted jkernel-ex package on /dev/md3... Mounted jpfe-ex42x package on /dev/md4... Mounted jroute-ex package on /dev/md5... Mounted jswitch-ex package on /dev/md6... Mounted jweb-ex package on /dev/md7...

Executing /packages/mnt/jweb-ex-9.1I20071130_0102_marcelm/mount.post.. Skipping disk checks ...

mount: /tmp: unknown special file or file system WARNING: /config was not properly dismounted WARNING: /var was not properly dismounted

Creating initial configuration...mgd: error: Cannot open configuration file: /config/juniper.conf

mgd: warning: activating factory configuration

/etc/config//junos-defaults.conf: 16: (20) syntax error: applications

/etc/config//junos-defaults.conf: 226: (9) error recovery ignores input until this point: } /etc/config//ex-series-defaults.conf: 25: (20) syntax error: applications

/etc/config//ex-series-defaults.conf: 50: (9) error recovery ignores input until this point: } mgd: commit complete

mgd: ---------------------------------------------------------- mgd: Please login as 'root'. No password is required.

mgd: To start Initial Setup, type 'ezsetup' at the JUNOS prompt. mgd: To start JUNOS CLI, type 'cli' at the JUNOS prompt. mgd: ----------------------------------------------------------

Setting initial options: debugger_on_panic=YES debugger_on_break=YES. Starting optional daemons: . Doing initial network setup: .

Initial interface configuration: additional daemons:.

savecore: could not be determined savecore: no dumps found

Additional routing options: ipsec kld. Doing additional network setup:. Starting final network daemons:.

setting ldconfig path: /usr/lib /opt/lib starting standard daemons: cron. Local package initialization:. starting local daemons:. Fri Nov 30 18:14:29 UTC 2007 NNNNNNN

Amnesiac (ttyu0)

login: root

--- JUNOS 9.1I20071129_2226_marcelm (JUNIPER-EX) #1: 2007-11-29 22:27:50 UTC root@% PURPOSE: Troubleshooting

本文来源:https://www.bwwdw.com/article/5a7d.html

Top