28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

support site (http://www.juniper.net/support). On M-series and T-series routers, copy<br />

this file to the router’s /var/tmp directory. Then, insert a PC card into the router’s<br />

drive and copy the install media to the PC card:<br />

aviva@router1> start shell<br />

aviva@router1% cd /var/tmp<br />

aviva@router1% su<br />

root@router1% dd if=/dev/zero of=/dev/rad3 count=20<br />

root@router1% dd if=install-media-7.4R1.7-domestic of=/dev/rad3 bs=64k<br />

To create a boot flash card for a J-series router, copy the install media to a Windows<br />

or Unix PC and uncompress it with gzip or WinZip. Connect a PCMCIA adapter or<br />

USBcard reader to the PC and insert a compact flash card into the device. On a Unix<br />

PC, use the following commands to copy the image to the compact flash:<br />

root@RouterJ# dd if=junos-jseries-7.4R1.7-export-cf256. of=/dev/hde<br />

250368+0 records in<br />

250368+0 records out<br />

On a Windows XP or Windows 2000 PC, use either the Norton Ghost utility or the<br />

dd command shown previously.<br />

<strong>Discussion</strong><br />

One of the tasks you can do to prepare for router disaster recovery is to create an<br />

emergency PCMCIA boot media. This is a bootable media that contains an image of<br />

a specific JUNOS software release. When you boot the router from this media, it<br />

installs the complete router from scratch, first doing a full reformat of the hard disk<br />

and flash, then completing a full new install of all the JUNOS software.<br />

Use the PCMCIA boot media in disaster recovery when a router is hosed and you<br />

need to execute a complete reinstall from scratch. To boot from this media, the<br />

PCMCIA must first be inserted into the slot on the Routing Engine. When the router<br />

boots, the first thing it looks for is a PCMCIA in the slot. If it’s not there, it moves on<br />

to the flash drive. If the PCMCIA is there, the router stops and waits for a user with<br />

console access to the router to press Enter to continue. The router does not automatically<br />

execute the reformat and reinstallation; you must tell it to do so. That way, if<br />

someone inserts the PCMCIA in the slot by mistake, the router doesn’t format and<br />

reinstall when you didn’t plan for it to do so.<br />

The J-series router follows the same procedure but uses a compact flash card instead<br />

of a PCMCIA card. This recipe shows the commands to use for a 256-MBcompact<br />

flash. J-series install media are also available for other sizes, including 128, 512, and<br />

1,024 MB.<br />

See Also<br />

Juniper Networks web site (http://www.juniper.net/support)<br />

Creating an Emergency Boot Disk | 53<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!