28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.30 Managing Redundant Routing Engines<br />

Problem<br />

Your router has two Routing Engines, and you want them both to have the same<br />

configuration.<br />

Solution<br />

Configure a hostname for each Routing Engine and an IP address for each fxp0<br />

interface:<br />

[edit groups]<br />

aviva@router1# set re0 system host-name router1<br />

aviva@router1# set re0 interfaces fxp0 unit 0 family inet address 192.168.15.1/24<br />

aviva@router1# set re1 system host-name router1-a<br />

aviva@router1# set re1 interfaces fxp0 unit 0 family inet address 192.168.15.2/24<br />

[edit]<br />

aviva@router1# set apply-groups [re0 re1]<br />

Commit the same configuration on both Routing Engines:<br />

aviva@router1# commit synchronize<br />

re0:<br />

configuration check succeeds<br />

re1:<br />

configuration check succeeds<br />

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

Most routers, especially those used by network providers, have redundant hardware<br />

components, such as fans, power supplies, and Routing Engines, so that if one of<br />

them fails, a backup component takes over immediately and router operation continues.<br />

You can replace most redundant components without having to power down<br />

the router; this is called hot swapping. For most hardware components, no software<br />

configuration is required. They are simply present in the router, which you can verify<br />

with the show chassis hardware command, and if any problems occur, a message<br />

or alarm is logged by the system logging facility (described in Chapter 5). Redundant<br />

Routing Engines, however, require some configuration.<br />

By default, the Routing Engine in slot 0 is the master (RE0) and is used when the<br />

router boots. The one Routing Engine in slot 1 (RE1) is the backup. You configure<br />

hostnames and addresses for the two Routing Engines using configuration groups (in<br />

the [edit groups] hierarchy level). Specifically, you must use the special configuration<br />

group re0 (for the Routing Engine in slot 0) and re1 (for the Routing Engine in<br />

slot 1) to define properties specific to the individual Routing Engines. Configuring<br />

the re0 and re1 groups lets both Routing Engines use the same configuration file.<br />

Then use the apply-groups statement to propagate the configuration group information<br />

to the main part of the configuration.<br />

66 | Chapter 1: Router Configuration and File Management<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!