In This Section: |
This chapter describes routing options that apply to all dynamic routing protocols.
In the Advanced Routing > Routing Options page of the Portal, clicking these buttons has this effect:
routed
routing daemon on the Gaia appliance or computer.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. |
set max-path-splits <1—8>
For example: set max-path-splits 2
save config
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.
set kernel-routes on
save config
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.
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.
To set route rank in the Gaia Portal:
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 |
---|---|
|
The protocol rank value. |
|
The default rank value for BGP is 170. |
|
The default rank value for RIP is 100. |
|
The default rank value for OSPF is 10. |
|
The default rank value for OSPF ASE routes is 150. |
|
The default rank value for IPv6 OSPF (OSPFv3) is 10 |
|
The default rank value for IPv6 OSPF (OSPFv3) ASE routes is 150 |
In a clustering environment, Wait for Clustering has this effect:
Gaia Portal |
Gaia Clish |
The routed routing daemon |
||
---|---|---|---|---|
Selected |
|
For ClusterXL clusters, use this setting.
|
||
Cleared |
|
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 Turn on this option with ClusterXL. |
To set the Wait for Clustering routing option in the Gaia Portal:
To turn on Wait for Clustering:
set router-options wait-for-clustering on
save config
To turn off Wait for Clustering:
set router-options wait-for-clustering off
save config
To show the state of the Wait for Clustering option:
Run: show router-options
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:
To turn on Auto Restore of Interface Routes - Gaia Clish:
set router-options Auto-restore-iface-routes on
save config
To turn off Auto Restore of Interface Routes - Gaia Clish:
set router-options Auto-restore-iface-routes off
save config
To show the state of the Auto Restore of Interface Routes option - Gaia Clish:
Run: show router-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.
To enable Trace options:
Note - When the trace file reaches the specified size, it is renamed to routed.log.0
, then routed.log
.1
, routed.log.2
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:
The log messages show.
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 |
---|---|
|
Maximal number of log files - a number between |
|
Maximal size of the log file, in MB - a number between |
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:
set trace global {adv | all | cluster | general | normal | parse | policy | route | state | task | timer} {on | off}
set trace kernel {all | cluster | iflist | interface | general | normal | packets | policy | remnants | request | route | routes | state | task | timer} {on | off}
set trace ospf {ack | all| cluster | dd | dr | general | hello | lsa | normal | packets | policy | request | route | spf | state | task | timer | trap | update} {on | off}
set trace ospf3 {ack | all | cluster | dd | dr | general | hello | lsa | normal | packets | policy | request | route | spf | state | task | timer | trap | update} {on | off}
set trace bgp {all | cluster | general | keepalive | normal | open | packets | policy | route | state | task | timer | update} {on | off}
set trace cluster all {on | off}
set trace pim {all | assert | bootstrap | cluster | crp | general | graft | hello | join | normal | mfc | mrt | packets | policy| refresh | register | route | rp | state | task | timer | trap} {on | off}
set trace igmp {all | cluster | general | group | leave | mtrace | normal | packets | policy | query | report | request | route | state | task | timer} {on | off}
set trace bootp {all | cluster | general | normal | packets | policy | request | response | route | state | task | timer} {on | off}
set trace icmp {all | cluster | error | general | info | normal | packets | policy | route | router-discovery | state | task | timer} {on | off}
set trace router-discovery {all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace router-discovery6 {all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace iphelper {all | cluster | general | normal | packets | policy | route | state | task | timer} {on | off}
set trace vrrp {advertise | all | cluster | general | normal | policy | route | state | task | timer} {on | off}
set trace vrrp6 {advertise | all | cluster | general | normal | policy | route | state | task | timer}{on | off}
set trace pbr {all | general | normal | policy | route | rule | state | table | task | timer | cluster} {on | off}
set trace mfc {all | alerts | cache | cluster | general | interface | mcastdist | normal | packets | policy | resolve | route | state | task | timer | wrongif} {on | off}
set trace rip {all | general | normal | packets | policy |route | state | task | timer | cluster} {on | off}
Notes:
This section shows descriptions of all trace options.
These event options are common among all protocol option tables:
Trace option |
Description |
---|---|
|
Trace all the routing events in this category. |
|
Trace the cluster-specific events. |
|
Trace the events related to normal and route options. |
|
Trace all the normal protocol occurrences. Abnormal protocol occurrences are always traced. |
|
Trace the application of protocol- and user-specified policy to imported and exported routes. |
|
Trace the routing table changes. |
|
Trace the state machine transitions in the protocols. |
|
Trace the system interface and processing events. |
|
Trace the timer usage events. |
For options that are unique to each protocol, see relevant protocol sections below.
These event options are specific to Global options table:
Trace option |
Description |
---|---|
|
Trace the allocation of and freeing of policy blocks. |
|
Trace the lexical analyzer and parser events. |
These event options are specific to Kernel options table:
Trace option |
Description |
---|---|
|
Trace |
|
Trace interface status kernel messages. |
|
Trace kernel packets. |
|
Trace kernel routes at the time when the routing daemon starts. |
|
Trace add, delete, or change route requests in the kernel forwarding table. |
|
Trace routes that are exchanged with the kernel, including add, delete, or change messages and add, delete, or change messages received from other processes. |
These event options are specific to OSPFv2 for IPv4 options table:
Trace option |
Description |
---|---|
|
Trace link-state acknowledgment packets. |
|
Trace database description packets. |
|
Trace designated router packets. |
|
Trace hello packets. |
|
Trace link-state advertisement packets. |
|
Trace all OSPF packets. |
|
Trace link-state request packets. |
|
Trace shortest-path-first (SPF) calculation events. |
|
Traces OSPF trap packets. |
|
Trace link-state updates packets. |
These event options are specific to OSPFv3 for IPv6 options table (available in R77.30):
Trace option |
Description |
---|---|
|
Trace link-state acknowledgment packets. |
|
Trace database description packets. |
|
Trace designated router packets. |
|
Trace hello packets. |
|
Trace link-state advertisement packets. |
|
Trace all OSPF packets. |
|
Trace link-state request packets. |
|
Trace shortest-path-first (SPF) calculation events. |
|
Traces OSPF trap packets. |
|
Trace link-state updates packets. |
These event options are specific to BGP options table:
Trace option |
Description |
---|---|
|
Trace all the BGP keepalive messages to this peer. These messages are used to verify peer reachability. |
|
Trace all the BGP open messages to this peer. These messages are used to establish a peer connection. |
|
Trace all the BGP events. |
|
Trace all the BGP update messages to this peer. These messages are used to pass network reachability information. |
There are no event options that are specific to Cluster options table.
Use options that are common for all protocols. See Common Trace options.
These event options are specific to PIM options table and apply to Dense-Mode and Sparse-Mode implementations:
Trace option |
Description |
|
Trace PIM assert messages. |
|
Trace PIM router hello messages. |
|
Trace PIM join/prune messages. |
|
Trace calls to or from the multicast forwarding cache |
|
Trace PIM multicast routing table events. |
|
Trace all PIM packets. |
|
Trace PIM trap messages. |
|
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 |
---|---|
|
Trace bootstrap messages. |
|
Trace candidate-RP-advertisements. |
|
Trace RP-specific events, including RP set-specific and bootstrap-specific events. |
|
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 |
---|---|
|
Trace graft and graft acknowledgment packets. |
These event options are specific to IGMP options table:
Trace option |
Description |
---|---|
|
Trace multicast group add, delete, refresh and accelerated leave events. |
|
Trace IGMP "leave group" messages. |
|
Trace IGMP multicast traceroute events. |
|
Trace IGMP membership query packets (both general and group-specific). |
|
Trace IGMP membership report packets (both IGMPv1 and IGMPv2). |
|
Trace IGMP multicast traceroute request packets. |
|
Trace all IGMP packets. |
These event options are specific to Bootp / DHCP Relay for IPv4 options table:
Trace option |
Description |
---|---|
|
Trace all sent and received Bootp / DHCP Relay packets. |
|
Trace all Bootp / DHCP Relay requests. |
|
Trace all Bootp / DHCP Relay responses. |
These event options are specific to ICMP options table:
Trace option |
Description |
---|---|
|
Trace ICMP error packets:
|
|
Trace ICMP informational packets:
|
|
Trace ICMP router discovery packets. |
|
Trace all ICMP packets. |
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.
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.
These event options are specific to IP Broadcast Helper options table:
Trace option |
Description |
---|---|
|
Trace all IP Broadcast Helper packets. |
This event option is specific to VRRPv2 for IPv4 options table:
Trace option |
Description |
---|---|
|
Trace all VRRP packets. |
This event option is specific to VRRPv3 for IPv6 options table (available in R77.30):
Trace option |
Description |
---|---|
|
Trace all VRRP packets. |
These event options are specific to Policy Based Routing (PBR) options table:
Trace option |
Description |
---|---|
|
Trace all the PBR rules. |
|
Trace all the PBR tables. |
These event options are specific to Multicast Forwarding Cache (MFC) options table:
Trace option |
Description |
---|---|
|
Trace multicast protocol alert callback events. |
|
Trace cache maintenance log details:
|
|
Trace log changes requested by external
|
|
Trace generic kernel multicast distribution and PIM register encapsulation and decapsulation entries. |
|
Trace all MFC packets. |
|
Trace normal kernel and PIM register external resolve requests. |
|
Trace kernel multicast incoming physical interface and PIM register violation notifications. |
This event option is specific to RIP for IPv4 options table:
Trace option |
Description |
---|---|
|
Trace all RIP packets. |