[an error occurred while processing this directive][an error occurred while processing this directive]

Maintain a Single Configuration File for Both Routing Engines

Purpose

For routers that support multiple Routing Engines, you can specify re0 and re1 as group names to ensure that the correct IP addresses are used for each Routing Engine and to maintain a single configuration file for both Routing Engines. It is important that the names of the Routing Engines correspond to a slot position because the names re0 and re1 are special group names that you must use for the Routing Engines to recognize which configuration statement to use. Routing Engine 0 must be in slot position 0 and must be named re0, and Routing Engine 1 must be in slot position 1 and must be named re1.

To maintain a single configuration file for both Routing Engines, follow these steps:

  1. Configure the New Group
  2. Apply the New Group

Configure the New Group

Purpose

Each re0 or re1 group typically contains, at a minimum, the configuration for the hostname and the management interface (fxp0). If each Routing Engine uses a different management interface, the group must also contain the configuration for the backup router and static routes.

Action

To configure the re0 and re1 groups, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
    [edit] user@host# edit groups
  2. Configure the group:
    [edit groups]user@host# set group-name

    For example:

    [edit groups] user@host# set re0
  3. To configure the management interface, go to the following hierarchy level:
    [edit groups]user@host# edit groups re0
  4. Include the following statement:
    [edit groups re0]user@host# set interfaces interface-name unit unit family inet address address

    For example:

    [edit groups re0]user@host# set interfaces fxp0 unit 0 family inet address 1.1.1.1/24
  5. To configure the hostname, go to the following hierarchy level:
    [edit groups re0]user@host# edit groups re0 system
  6. Include the following statement:
    [edit groups re0 system]user@host# set host-name hostname

    For example:

    [edit groups re0 system]user@host# set host-name foo-re0
  7. Verify the configuration:
    [edit groups re0]user@host# show re0 { system { host-name foo-re0;} interfaces { fxp0 { unit 0 { family inet { address 1.1.1.1/24;}}}}}
  8. Commit the configuration:
    user@host# commit
  9. Repeat Step 1 through Step 8 for the re1 group.

Meaning

The sample output in Step 7 shows that the re0 group contains the minimum configuration for a group, the hostname, and the management interface (fxp0). If each Routing Engine uses a different management interface, the group must also contain the configuration for the backup router and static routes.


Apply the New Group

Action

To apply the re0 group to maintain a single configuration file for both Routing Engines, follow these steps:

  1. In configuration mode, go to the top hierarchy level and include the following statement:
    user@host# [edit]
    user@host# set apply-groups group-name

    For example:

    user@host# [edit]
    user@host# set apply-groups re0
  2. Verify the configuration:
    user@host# show
    groups { re0 { system { host-name foo-re0;} interfaces { fxp0 { unit 0 { family inet { address 1.1.1.1/24; }}}}} re1 { system { host-name foo-re1;} interfaces { fxp0 { unit 0 { family inet { address 1.1.1.2/24; }}}}}}apply-groups [ re0 re1 ];
  3. Commit the configuration:
    user@host# commit

Meaning

The sample output shows that each group, re0 and re1, has its own IP address that is used for each Routing Engine to maintain a single configuration file.


Published: 2010-01-25

[an error occurred while processing this directive]