Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring a Backup Router

    The backup router allows the routing device to install a route to the management network, before the routing protocol process (rpd) is up and running. This allows the device to establish a Layer 3 connection quickly, thus keeping management unavailability to a minimum.

    When a routing device is booting, the routing protocol process is not running. Therefore, the router or switch has no routes. To ensure that the router or switch is reachable for management purposes while it boots or if the routing protocol process fails to start properly, configure a backup router, which is a router that is directly connected to the local router or switch (that is, on the same subnet) through its private management interface (for example, fxp0 or me0).

    To achieve network reachability while loading, configuring, and recovering the router or switch, but without installing a default route in the forwarding table, include the destination option, specifying an address that is reachable through the backup router. Specify the address in the format network/mask-length.

    Any destinations defined by the backup router are not visible in the routing table. They are only visible in the local forwarding table when the routing protocol process is not running. Therefore, a recommended best practice is to also include the destinations of the backup router configured as static routes with the retain option. The retain option is necessary to allow the static route to remain in the forwarding table when the routing protocol process stops running, because the routing table does not exist if the routing protocol process is not running.

    On systems with dual redundant Routing Engines, the backup Routing Engine's reachability through the private management interface is based only on the functionality of the backup-router configuration. It is not based on whether the routing protocol process is running. The backup router adds the destination prefix upon bootup, whereas configuring a static route requires the routing protocol process to run first before installing the destination prefix. If the routing protocol process is allowed to run on the backup Routing Engine, then a destination can be added in the routing table and the forwarding table by configuring static route with the retain option.

    Due to a system limitation, do not configure the destination address specified in the backup-router as 0.0.0.0/0 or ::/0. The mask has to be a nonzero value.

    Active routes and more specific routes take precedence over destination prefixes defined with the backup-router statement.

    If you have a backup router configuration in which multiple static routes point to a gateway from the management Ethernet interface, you must configure prefixes that are more specific than the static routes or include the retain option at the [edit routing-options static route] hierarchy level.

    For example, if you configure the static route 172.16.0.0/12 from the management Ethernet interface for management purposes, you must specify the backup router configuration as follows:

    backup-router 172.29.201.62 destination [172.16.0.0/13 172.16.128.0/13]

    Configuring a Backup Router Running IPv4

    In the example shown in Figure 1, the backup router is the default gateway of the management network.

    As required, the backup router address is reachable and directly connected to the management interfaces on the two routing devices (fxp0 and me0).

    Figure 1: Backup Router Sample Topology

    Backup Router Sample
Topology

    Optionally, instead of configuring the backup router at the [edit system] hierarchy level, you can use a configuration group, as shown in this procedure. This is a recommended best practice for configuring the backup router, especially if the device has dual Routing Engines. This procedure uses groups called re0 and re1 as an example.

    To configure a backup router running IPv4:

    1. Include the backup-router statement at the [edit system] hierarchy level.
      [edit groups group-name system]backup-router address <destination destination-address>;

      For example:

      [edit groups re0 system]backup-router 192.168.1.254 destination 172.16.1.0/24;
      [edit groups re1 system]backup-router 192.168.1.254 destination 172.16.1.0/24;
    2. (Optional) Configure a static route to the management network.

      Junos OS only uses the backup router during the boot sequence. If you want to configure a backup router for use after startup, you can set up a static route. The static route goes into effect when the routing protocol process is running.

      routing-options {static {route 172.16.1.0/24 {next-hop 192.168.1.254;retain;}}}
    3. If you used one or more configuration groups, apply the configuration groups, substituting the appropriate group names.

      For example:

      [edit]user@host# set apply-groups [re0 re1]
    4. Commit the changes:
      [edit]root@# commit

    Configuring a Backup Router Running IPv6

    To configure a backup router running IPv6:

    1. Include the inet6-backup-router statement at the [edit system] hierarchy level.
      [edit groups group-name system]inet6-backup-router address <destination destination-address>;

      For example:

      [edit groups re0 system]inet6-backup-router 8:3::1 destination abcd::/48;

      [edit groups re1 system]inet6-backup-router 8:3::1 destination abcd::/48;
    2. (Optional) Configure a static route to the management network.

      Junos OS only uses the backup router during the boot sequence. If you want to configure a backup router for use after startup, you can set up a static route. The static route goes into effect when the routing protocol process is running.

      routing-options {rib inet6.0 {static {route abcd::/48 {next-hop 8:3::1;retain;}}}}
    3. If you used one or more configuration groups, apply the configuration groups, substituting the appropriate group names.

      For example:

      [edit]user@host# set apply-groups [re0 re1]
    4. Commit the changes:
      [edit]root@# commit

    Published: 2013-10-28