Route Redistribution

A router can redistribute routes it learned from one routing protocol into another routing protocol.

It is useful for advertising static routes, such as the default route, or aggregate routes.

Route Redistribution is similar to route maps for an export policy (see Route Maps).

Notes:

  • Static routes take precedence over dynamic routes of any kind, native or redistributed.

  • Gaia Embedded does not have CLI commands for route filtering and redistribution. You must configure inbound routing policies and redistribution of routes in WebUI. You can configure route maps and route aggregation using CLI commands. Route map configuration done through the CLI takes precedence over route filtering and redistribution configured in the WebUI. For example, if OSPF uses route maps for inbound filtering, anything configured in the WebUI for inbound route filters for OSPF is ignored. You can still use the WebUI to configure route redistribution into OSPF.

To configure route redistribution:

In the appliance WebUI, go to Device > Advanced Routing > Route Redistribution.

To add a redistributed route

  1. Above the table, click Add redistribution from and select the source protocol.

  2. Configure the applicable settings.

    See the sections below.

  3. Click Apply.

  4. At the bottom of the page, click Apply.

To edit a redistributed route

  1. In the table, select the route and click Edit.

  2. Configure the applicable settings.

    See the sections below.

  3. Click Apply.

  4. At the bottom of the page, click Apply.

Route Redistributions

Redistributes Interface routes.

Parameter

Description

To Protocol

Configures the destination routing protocol.

Interface

Configures the interface from which to distribute the routes.
You can select all, or one of the configured interfaces.

Metric

Configures the cost of the redistributed routes in the destination routing protocol.

Add Redistribution From - Static Route

Redistributes static routes.

Parameter

Description

To Protocol

Configures the destination routing protocol:

  • OSPFv2

  • BGP AS <Peer Group AS>

Static Route

Configures the static route to be redistributed into the destination routing protocol:

  • All IPv4 Routes

  • Default

Metric

Configures the cost of the redistributed routes in the destination routing protocol.

Range:

  • OSPFv2: 1-16777215

  • BGP AS <Peer Group AS>: 1-4294967295

Add Redistribution From - OSPFv2 or OSPV2 External

Redistributes OSPFv2 routes.

Parameter

Description

To Protocol

Configures the destination routing protocol:

  • OSPFv2

  • BGP AS <Peer Group AS>

Route

Configures the routes to redistribute:

  • Select All IPv4 Routes to redistribute all IPv4 routes.

  • Configure the Address Range to redistribute specific routes.

  • There are different mechanisms, by which routes can be matched against the configured subnet:

    • Exact - Matches only routes with prefix and mask length exactly equal to the specified network.

    • Normal - Matches any route contained within the specified network.

    • Refines - Matches only routes that are contained within, but more specific than, the specified network. For example, with a greater mask length.

Action

Configures whether to accept or reject this route.

Metric

Configures the cost of the redistributed routes in the destination routing protocol.

Range:

  • OSPFv2: 1-16777215

  • BGP AS <Peer Group AS>: 1-4294967295

Add Redistribution From - BGP Based on AS -Path

Redistributes BGP routes based on the AS-Path attribute.

Parameter

Description

To Protocol

Configures the destination routing protocol:

  • OSPFv2

  • BGP AS <Peer Group AS>

From BGP AS-Path

Configures the AS_PATH regular expression that contains only digits and these special characters:

  • . - The period character matches any single character.

  • \ - The backslash character matches the character right after the backslash. For pattern recall, match the pattern indicated by the digit following the backslash.

  • ^ - The circumflex character matches the characters or null string at the beginning of the AS path.

  • $ - The dollar character matches the characters or null string at the end of the AS path.

  • ? - The question mark matches zero or one occurrence of the pattern before "?".

  • * - The asterisk character matches zero or more occurrences of the pattern before "*".

  • + - The plus character matches one or more occurrences of the pattern before "+".

  • | - The pipeline (vertical line) character matches one of the patterns on either side of the "|" character.

  • _ - The underscore character matches comma (,), left brace ({), right brace (}), beginning of ASPath (^), end of ASPath ($), or a whitespace (space or tabulation).

  • [ ] - The square brackets match the set of characters or range of characters separated by a hyphen (-) within the brackets.

  • ( ) - The round brackets group one or more patterns into a single pattern.

  • {m n} - Matches at least "m" and at most "n" repetitions of the pattern before "{m,n}". Both "m" and "n" are positive integers, and "m" is less than or equal to "n".

  • {m} - Matches exactly "m" repetitions of the pattern before "{m}". The "m" is a positive integer.

  • {m,} - Matches "m" or more repetitions of the pattern before "{m}". The "m" is a positive integer.

Configures the route origin:

  • Any - A route was learned from any protocol and the path is probably complete.

  • IGP - A route was learned from an interior routing protocol and the path is probably complete.

  • EGP - A route was learned from an exterior routing protocol that does not support AS-PATH, and the path is probably incomplete.

  • Incomplete - The route path information is incomplete.

Route

Configures the routes to redistribute:

  • Select All IPv4 Routes to redistribute all IPv4 routes.

    Select All IPv6 Routes to redistribute all IPv6 routes.

  • Configure the Address Range to redistribute specific routes.

  • There are different mechanisms, by which routes can be matched against the configured subnet:

    • Exact - Matches only routes with prefix and mask length exactly equal to the specified network.

    • Normal - Matches any route contained within the specified network.

    • Refines - Matches only routes that are contained within, but more specific than, the specified network. For example, with a greater mask length.

Action

Configures whether to accept or reject this route.

Metric

  • OSPFv2: 1-16777215

  • BGP AS <Peer Group AS>: 1-4294967295

Add Redistribution From - BGP Based on AS

Redistributes BGP routes based on the AS Number

Parameter

Description

To Protocol

Configures the destination routing protocol:

  • OSPFv2

  • BGP AS <Peer Group AS>

From BGP AS

Configures the AS Number:

  • BGP AS <Peer Group AS>

Route

Configures the routes to redistribute:

  • Select All IPv4 Routes to redistribute all IPv4 routes.

    Select All IPv6 Routes to redistribute all IPv6 routes.

  • Configure the Address Range to redistribute specific routes.

  • There are different mechanisms by which routes can be matched against the configured subnet:

    • Exact - Matches only routes with prefix and mask length exactly equal to the specified network.

    • Normal - Matches any route contained within the specified network.

    • Refines - Matches only routes that are contained within, but more specific than, the specified network. For example, with a greater mask length.

Action

Configures whether to accept or reject this route.

Metric

Configures the cost of the redistributed routes in the destination routing protocol.

Add Redistribution From - Default Origin

Redistributes all IPv4 routes into BGP.

Parameter

Description

To Protocol

Configures the destination routing protocol.

  • BGP AS <Peer Group AS>

Metric

Configures the cost of the redistributed routes in the destination routing protocol.

Range: 1-4294967295