Print Download PDF Send Feedback

Previous

Next

Routing Options

In This Section:

Routing Options (Apply, Reset and Reload) - Gaia Portal

Equal Cost Path Splitting

Kernel Options - Kernel Routes

Protocol Rank

Advanced Routing Options - Wait for Clustering

Advanced Routing Options - Auto Restore of Interface Routes

Trace Options

This chapter describes routing options that apply to all dynamic routing protocols.

Routing Options (Apply, Reset and Reload) - Gaia Portal

In the Advanced Routing > Routing Options page of the Portal, clicking these buttons has this effect:

Equal Cost Path Splitting

You can configure the maximal number of equal‑cost paths that will be used when there is more than one equal‑cost path to a destination. You can specify a value for the maximal number of equal‑cost paths that will be used when there is more than one equal‑cost path to a destination. Only OSPF routes and Static routes are able to use more than one "next hop"

The "next hop" algorithm that is used for forwarding when there is more than one "next hop" to a destination is Source/destination hash: A hash function is performed on the source and destination IP address of each packet that is forwarded to a multipath destination. This result is used to determine which next hop to use.

Important - Changing this option causes all routes to be reinstalled.

Configuring Equal Cost Path Splitting - Gaia Portal

  1. In the tree view, click Advanced Routing > Routing Options.
  2. In the Equal Cost Multipath section, select the Maximum Paths.
  3. Click Apply.

Configuring Equal Cost Path Splitting - Gaia Clish (max-path-splits)

  1. Run: set max-path-splits <1—8>

    For example: set max-path-splits 2

  2. Run: save config

Kernel Options - Kernel Routes

Route Injection Mechanism (RIM) enables a Security Gateway to use dynamic routing protocols to propagate the encryption domain of a VPN peer Security Gateway to the internal network and then initiate back connections. When a VPN tunnel is created, RIM updates the local routing table of the Security Gateway to include the encryption domain of the VPN peer.

In Gaia, the Route Injection Mechanism adds routes directly to the kernel. For the routes to remain in the Kernel, you must configure this option.

For more about configuring RIM, see the R77 Site to Site VPN Administration Guide.

Configuring Kernel Routes - Gaia Portal

  1. In the tree view, click Advanced Routing > Routing Options.
  2. In the Kernel Options area, select the Kernel Routes option.
  3. Click Apply.

Configuring Kernel Routes - Gaia Clish (kernel-routes)

  1. Run: set kernel-routes on
  2. Run: save config

Protocol Rank

Rank is used by the routing system when there are routes from different protocols to the same destination. For each route, the route from the protocol with lowest rank number is used.

The protocol rank is the value that the routing daemon uses to order routes from different protocols to the same destination. It is an arbitrarily assigned value used to determine the order of routes to the same destination. Each route has only one rank associated with it, even though rank can be set at many places in the configuration. The route derives its rank from the most specific route match among all configurations.

The active route is the route installed into the kernel forwarding table by the routing daemon. In the case where the same route is contributed by more than one protocol, the one with the lowest rank becomes the active route.

Rank cannot be used to control the selection of routes within a dynamic interior gateway protocol (IGP); this is accomplished automatically by the protocol and is based on the protocol metric. Instead, rank is used to select routes from the same external gateway protocol (EGP) learned from different peers or autonomous systems.

Some protocols - BGP and aggregates - allow for routes with the same rank. To choose the active route in these cases, a separate tie breaker is used. This tie breaker is called LocalPref for BGP and weight for aggregates.

Default Ranks

A default rank is assigned to each protocol. Rank values range from 0 to 255, with the lowest number indicating the most preferred route.

The default rank values are:

Preference of

Default

Interface routes

0

Static routes

60

OSPF routes

10

RIP routes

100

BGP routes

170

OSPF AS external routes

150

IPv6 OSPF Routes

10

IPv6 OSPF AS external routes

150

Aggregate routes

130

These numbers do not generally need to be changed from their defaults. Use caution when modifying the default route ranks. Rank affects the route selection process, so unexpected consequences may occur throughout the network. Such a change should be planned carefully and take into account both the protocols being used and the location of the router in the network.

Configuring Protocol Rank - Gaia Portal

To set route rank in the Gaia Portal:

  1. Go to Advanced Routing > Routing Options.
  2. In the Protocol Rank section, enter the route rank for each protocol.
  3. Click Apply.

Configuring Protocol Rank - Gaia Clish (protocol-rank)

Rank is used by the routing system when there are routes from different protocols to the same destination. For each route, the route from the protocol with lowest rank number is used.

Syntax

set protocol-rank protocol
	bgp rank <0—255> | default
	rip rank <0—255> | default
	ospf rank <0—255> | default
	ospfase rank <0—255> | default
	ospf3 rank <1—255> | default
	ospf3ase rank <1—255> | default

Parameter

Description

rank <0—255>

The protocol rank value.

bgp rank default

The default rank value for BGP is 170.

rip rank default

The default rank value for RIP is 100.

ospf rank default

The default rank value for OSPF is 10.

ospfase rank default

The default rank value for OSPF ASE routes is 150.

ospf3 rank default

The default rank value for IPv6 OSPF (OSPFv3) is 10

ospf3ase rank default

The default rank value for IPv6 OSPF (OSPFv3) ASE routes is 150

Advanced Routing Options - Wait for Clustering

In a clustering environment, Wait for Clustering has this effect:

Gaia Portal

Gaia Clish

The routed routing daemon

Selected

on

For ClusterXL clusters, use this setting.

  • Does not start the routing protocols if the cluster state is down.
  • Turns on the routing protocols after the cluster goes up.

Cleared

off

Ignores the state of the cluster. The state of the routing protocols does not depend on the state of the cluster.

This is the default.

Important - Changing the setting of this option restarts the routed routing daemon.
This option is for ClusterXL clusters only.

Turn on this option with ClusterXL.

Configuring Wait for Clustering - Gaia Portal

To set the Wait for Clustering routing option in the Gaia Portal:

  1. Go to Advanced Routing > Routing Options.
  2. In the Router Options area, select Wait for Clustering.
  3. Click Apply.

Configuring Wait for clustering - Gaia Clish (router-options)

To turn on Wait for Clustering:

  1. Run: set router-options wait-for-clustering on
  2. Run: save config

To turn off Wait for Clustering:

  1. Run: set router-options wait-for-clustering off
  2. Run: save config

To show the state of the Wait for Clustering option:

Run: show router-options

Advanced Routing Options - Auto Restore of Interface Routes

An interface route may be automatically deleted in error from the router kernel when it becomes reachable from another interface. The command show route in Clish shows the route, but the Expert mode command ip route does not show the route. A scenario where this can happen is when the same route is learned via OSPF and BGP.

You can avoid losing the interface routes by enabling the Automatic Restoration of Interface Routes option. By default, this option is Off.

Note: If the interface route was deleted and the option was not enabled, bring the interface DOWN and then bring it UP again using Clish, the Portal or, in Expert mode, using ifconfig.

To Automatically Restore Routes - Gaia Portal:

  1. In the Gaia Portal, go to the Advanced Routing > Routing Options page.
  2. In the Advanced Router Options area, select Auto Restore of Iface Routes.
  3. Click Apply.

To turn on Auto Restore of Interface Routes - Gaia Clish:

  1. Run: set router-options Auto-restore-iface-routes on
  2. Run: save config

To turn off Auto Restore of Interface Routes - Gaia Clish:

  1. Run: set router-options Auto-restore-iface-routes off
  2. Run: save config

To show the state of the Auto Restore of Interface Routes option - Gaia Clish:

Run: show router-options

Trace Options

The routing system can optionally log information about errors and events. Logging is configured for each protocol or globally. Logging is not generally turned on during normal operations, as it can decrease performance. Log messages are saved in the /var/log/routed.log.* files.

Configuring Trace Options - Gaia Portal

To enable Trace options:

  1. In the tree view, click Advanced Routing > Routing Options.
  2. Click the Configuration tab.
  3. In the Trace Options section, configure:
    • Maximum Trace File Size - enter a value between 1 to 2047 MB (the default is 1)

      Note - When the trace file reaches the specified size, it is renamed to routed.log.0, then routed.log.1, routed.log.2

    • Number of Trace Files - enter a number between 1 to 4294967295 (the default is 10)
    • Filter Visible Tables Below - select trace options tables - Show All, Global, BGP, Bootp / DHCP Relay, ICMP, IGMP, IP Broadcast Helper, Kernel, MFC, OSPF, Policy Based Routing, PIM, RIP, Router Discovery, VRRP, IPv6 OSPF (in R77.30 only), IPv6 Router Discovery (in R77.30 only), IPv6 VRRP (in R77.30 only)
    • In each trace options table, select options (to select multiple options, hold down Shift and click the options)
    • Click Add.
  4. Click Apply at the top of the page

If you want to enable tracing of a specific routing option for all protocols, in the Global options table, select that option. If you want to enable tracing of all routing options for all protocols, in the Global options table, select All.

For an explanation of each trace option, see the Description of Trace Options.

You can see the most recent trace log messages in the /var/log/routed.log log file.

To monitor a Trace options:

  1. In the Monitoring tab of the Advanced Routing > Routing Options view, configure the Number of lines that you want to show at the end (the "tail") of the log file -minimum is 5, maximum is 100.
  2. Click Get Tail.

    The log messages show.

Configuring Trace Options - Gaia Clish

Before you configure the routing trace options, you can configure the log file size and the maximal number of log files.

To configure the log file options:

Run these commands:

set tracefile maxnum {<num> | default}

set tracefile size {<size_MB> | default}

Command parameters:

Parameter

Description

maxnum {<num> | default}

Maximal number of log files - a number between
1 and 4294967295. The default number is 10.

size {<size_MB> | default}

Maximal size of the log file, in MB - a number between
1 and 4095. The default size is 1 MB.

To configure the routing trace options:

Run this command:

set trace {bgp | bootp | cluster | global | icmp | igmp | iphelper | kernel | mfc | ospf | ospf3 | pbr | pim | rip | router-discovery | router-discovery6 | vrrp | vrrp6} <protocol-specific event option> {on | off}

To configure the protocol-specific event options:

Notes:

Description of Trace Options

This section shows descriptions of all trace options.

Common Trace options

These event options are common among all protocol option tables:

Trace option

Description

all

Trace all the routing events in this category.

cluster

Trace the cluster-specific events.

general

Trace the events related to normal and route options.

normal

Trace all the normal protocol occurrences. Abnormal protocol occurrences are always traced.

policy

Trace the application of protocol- and user-specified policy to imported and exported routes.

route

Trace the routing table changes.

state

Trace the state machine transitions in the protocols.

task

Trace the system interface and processing events.

timer

Trace the timer usage events.

For options that are unique to each protocol, see relevant protocol sections below.

Global Trace options

These event options are specific to Global options table:

Trace option

Description

adv

Trace the allocation of and freeing of policy blocks.

parse

Trace the lexical analyzer and parser events.

Kernel Trace Options

These event options are specific to Kernel options table:

Trace option

Description

iflist

Trace iflist, the interface list scan.

interface

Trace interface status kernel messages.

packets

Trace kernel packets.

remnants

Trace kernel routes at the time when the routing daemon starts.

request

Trace add, delete, or change route requests in the kernel forwarding table.

routes

Trace routes that are exchanged with the kernel, including add, delete, or change messages and add, delete, or change messages received from other processes.

OSPFv2 for IPv4 Trace Options

These event options are specific to OSPFv2 for IPv4 options table:

Trace option

Description

ack

Trace link-state acknowledgment packets.

dd

Trace database description packets.

dr

Trace designated router packets.

hello

Trace hello packets.

lsa

Trace link-state advertisement packets.

packets

Trace all OSPF packets.

request

Trace link-state request packets.

spf

Trace shortest-path-first (SPF) calculation events.

trap

Traces OSPF trap packets.

update

Trace link-state updates packets.

OSPFv3 for IPv6 Trace Options

These event options are specific to OSPFv3 for IPv6 options table (available in R77.30):

Trace option

Description

ack

Trace link-state acknowledgment packets.

dd

Trace database description packets.

dr

Trace designated router packets.

hello

Trace hello packets.

lsa

Trace link-state advertisement packets.

packets

Trace all OSPF packets.

request

Trace link-state request packets.

spf

Trace shortest-path-first (SPF) calculation events.

trap

Traces OSPF trap packets.

update

Trace link-state updates packets.

BGP Trace Options

These event options are specific to BGP options table:

Trace option

Description

keepalive

Trace all the BGP keepalive messages to this peer. These messages are used to verify peer reachability.

open

Trace all the BGP open messages to this peer. These messages are used to establish a peer connection.

packets

Trace all the BGP events.

update

Trace all the BGP update messages to this peer. These messages are used to pass network reachability information.

Cluster Trace Options

There are no event options that are specific to Cluster options table.
Use options that are common for all protocols. See Common Trace options.

PIM Trace Options

These event options are specific to PIM options table and apply to Dense-Mode and Sparse-Mode implementations:

Trace option

Description

assert

Trace PIM assert messages.

hello

Trace PIM router hello messages.

join

Trace PIM join/prune messages.

mfc

Trace calls to or from the multicast forwarding cache

mrt

Trace PIM multicast routing table events.

packets

Trace all PIM packets.

trap

Trace PIM trap messages.

all

Trace all PIM events and packets.

These event options are specific to PIM options table and apply to Sparse-Mode implementation only:

Trace option

Description

bootstrap

Trace bootstrap messages.

crp

Trace candidate-RP-advertisements.

rp

Trace RP-specific events, including RP set-specific and bootstrap-specific events.

register

Trace register and register-stop packets.

This event option is specific to PIM options table and applies to Dense-Mode implementation only:

Trace option

Description

graft

Trace graft and graft acknowledgment packets.

IGMP Trace Options

These event options are specific to IGMP options table:

Trace option

Description

group

Trace multicast group add, delete, refresh and accelerated leave events.

leave

Trace IGMP "leave group" messages.

mtrace

Trace IGMP multicast traceroute events.

query

Trace IGMP membership query packets (both general and group-specific).

report

Trace IGMP membership report packets (both IGMPv1 and IGMPv2).

request

Trace IGMP multicast traceroute request packets.

packets

Trace all IGMP packets.

Bootp / DHCP Relay Trace Options

These event options are specific to Bootp / DHCP Relay for IPv4 options table:

Trace option

Description

packets

Trace all sent and received Bootp / DHCP Relay packets.

request

Trace all Bootp / DHCP Relay requests.

response

Trace all Bootp / DHCP Relay responses.

ICMP Trace Options

These event options are specific to ICMP options table:

Trace option

Description

error

Trace ICMP error packets:

  • time exceeded
  • parameter problem
  • unreachable
  • source quench

info

Trace ICMP informational packets:

  • mask request/response
  • info request/response
  • echo request/response
  • time stamp request/response

router-discovery

Trace ICMP router discovery packets.

packets

Trace all ICMP packets.

ICMP Router Discovery for IPv4 Trace Options

There are no event options that are specific to ICMP Router Discovery for IPv4 options table.
Use options that are common for all protocols. See Common Trace options.

ICMP Router Discovery for IPv6 Trace Options

There are no event options that are specific to ICMP Router Discovery for IPv6 options table (available in R77.30).
Use options that are common for all protocols. See Common Trace options.

IP Broadcast Helper Trace Options

These event options are specific to IP Broadcast Helper options table:

Trace option

Description

packets

Trace all IP Broadcast Helper packets.

VRRPv2 for IPv4 Trace Options

This event option is specific to VRRPv2 for IPv4 options table:

Trace option

Description

advertise

Trace all VRRP packets.

VRRPv3 for IPv6 Trace Options

This event option is specific to VRRPv3 for IPv6 options table (available in R77.30):

Trace option

Description

advertise

Trace all VRRP packets.

Policy Based Routing Trace Options

These event options are specific to Policy Based Routing (PBR) options table:

Trace option

Description

rule

Trace all the PBR rules.

table

Trace all the PBR tables.

MFC Trace Options

These event options are specific to Multicast Forwarding Cache (MFC) options table:

Trace option

Description

alerts

Trace multicast protocol alert callback events.

cache

Trace cache maintenance log details:

  • addition or deletion of orphan entries (entries with no route to source)
  • addition or deletion of normal entries
  • cache state aging and refresh entries

interface

Trace log changes requested by external routed modules (IGMP and multicast routing protocols) that affect the forwarding dependencies on an interface:

  • addition or deletion of a forwarding interface due to routing changes
  • changing of the parent (reverse path forwarding) interface due to routing changes

mcastdist

Trace generic kernel multicast distribution and PIM register encapsulation and decapsulation entries.

packets

Trace all MFC packets.

resolve

Trace normal kernel and PIM register external resolve requests.

wrongif

Trace kernel multicast incoming physical interface and PIM register violation notifications.

RIP Trace Options

This event option is specific to RIP for IPv4 options table:

Trace option

Description

packets

Trace all RIP packets.