Configure a Route Policy

Configure a route policy so that all protocols use them for In, Out, and Redistribute purposes.

Before you begin

To perform this procedure on a non-default VRF, you must first change the VRF instance. For information about how to use EDM for a non-default VRF, see Select and Launch a VRF Context View. All parameters might not be available in non-default VRFs.

Procedure

  1. In the navigation pane, expand: Configuration > IP.
  2. Select Policy.
  3. Select the Route Policy tab.
  4. Select Insert.
  5. Enter the appropriate information for your configuration in the Insert Route Policy dialog box.
  6. Select Insert.

Route Policy Field Descriptions

Use the data in the following table to use the Route Policy tab.

Name

Description

Id

Specifies the ID of an entry in the Prefix list table.

SequenceNumber

Specifies a policy within a route policy group.

Name

Specifies the name of the policy. This command changes the name field for all sequence numbers under the given policy.

Enable

Indicates whether this policy sequence number is enabled or disabled. If disabled, the policy sequence number is ignored. The default is disabled.

Mode

Specifies the action to take when a policy is selected for a specific route. Select permit (allow the route) or deny (ignore the route). The default is permit.

MatchProtocol

Selects the appropriate protocol. If configured, matches the protocol through which the route is learned. This field is used only for RIP Announce purposes. The default is to enable all match protocols.

MatchNetwork

Specifies if the system matches the destination network against the contents of the specified prefix list.

MatchIpRouteSource

Specifies if the system matches the next-hop IP address for RIP routes and advertising router IDs for OSPF routes against the contents of the specified prefix list. This option is ignored for all other route types.

Select the ellipsis and choose from the list in the Match Route Source dialog box. You can select up to four entries. To clear an entry, use the ALT key.

You can also change this field in the Route Policy tab of the Policy dialog box.

MatchIpRouteDest

Specifies if the system matches the next-hop IP address for RIP routes and advertising router IDs for OSPF routes against the contents of the specified prefix list. This option is ignored for all other route types.

MatchNextHop

Specifies if the system matches the next-hop IP address of the route against the contents of the specified prefix list. This field applies only to nonlocal routes.

Select the ellipsis and choose from the list in the Match Next Hop dialog box. You can select up to four entries. To clear an entry, use the ALT key.

MatchInterface

Specifies if the system matches the IP address of the interface by which the RIP route was learned against the contents of the specified prefix list. This field is used only for RIP routes and ignored for all other type of route.

Select the ellipsis and choose from the list in the Match Interface dialog box. You can select up to four entries. To clear an entry, use the ALT key.

MatchRouteType

Configures a specific route type to match (applies only to OSPF routes).

Externaltype1 and Externaltype2 specify the OSPF routes of the specified type only. OSPF internal refers to intra- and inter-area routes. The default is any.

MatchMetric

Specifies if the system matches the metric of the incoming advertisement or existing route against the specified value (1 to 65535). If 0, this field is ignored. The default is 0.

MatchMetricTypeIsis

Specifies the match metric type field in the incoming ISIS routes in accept policy.

IpRoutePolicyMatchIpMcastGroup

Specifies the system matches the IP multicast destination group for the routed multicast policy.

IpRoutePolicyMatchIpMcastSource

Specifies the system matches the IP multicast source address for the routed multicast policy.

MatchAsPath

Configures if the system matches the BGP autonomous system path. Applicable to BGP only. This overrides the BGP neighbor filter list information.

MatchCommunity

Filters incoming and outgoing updates based on a Community List. Applicable to BGP only. The default is disable.

MatchCommunityExact

Indicates if the match must be exact (that is, all of the communities specified in the path must match). Applicable to BGP only. The default is disabled.

MatchTag

Specifies a list of tags used during the match criteria process. Applicable to BGP only. It contains one or more tag values.

MatchVrf

Identifies the source VRFs that leaks routes to the local VRF (applies only to RIP routes).

MatchLocalPref

Specifies the local preference value to be matched.

NssaPbit

Configures or resets the P bit in specified type 7 link state advertisements (LSA). By default, the Pbit is always configured in case the user configures the Pbit to a disable state for a particular route policy other than all type 7. LSAs associated with that route policy have the Pbit cleared. With this intact, not so stubby area (NSSA) area border router (ABR) does not perform translation of these LSAs to type 5. The default is enable.

SetRoutePreference

Configures a value from 0 to 255. The default value is 0. If the default is configured, the global preference value is used.

When configured to a value greater than zero, specifies the route preference value assigned to the routes that matches the policy. This feature applies to accept policies only.

SetMetricTypeInternal

Identifies the MED value for routes advertised to BGP numbers to the Interior Gateway Protocol (IGP) metric value. The value must be 0 or 1. The default is 0.

SetMetricTypeIsis

Sets the metric type IS-IS.

SetMetric

Configures the system to use the metric value for the route while announcing or redistributing. The default-import-metric is 0. If the default is configured, the original cost of the route is advertised into OSPF; for RIP, the original cost of the route or the default value is used (applies to IS-IS routes also). The default is 0.

SetMetricType

Configures the metric type for the routes to announce into the OSPF routing protocol that matches this policy. Applicable to OSPF protocol only. The default is type 2. This field is applicable only for OSPF announce policies. The default is type2.

SetNextHop

Configures the IP address of the next-hop router. Applicable to BGP only. The default is 0.0.0.0.

SetInjectNetList

Configures the destination network of the route that matches this policy with the contents of the specified prefix list. Select the ellipsis and choose from the list in the Set Inject NetList dialog box.

SetMask

Configures the mask of the route that matches this policy. This applies only to RIP accept policies.

SetAsPath

Indicates the AS path value to use whether the SetAsPathMode field is Tag or Prepend. Applicable to BGP only.

Note:

Prepend is not applicable to an internal BGP (iBGP) peer with outbound route policy.

SetAsPathMode

Configures if the system converts the tag of a route into an AS path. Applicable to BGP protocol only. The mode is either Tag or Prepend tag. The value is applicable only while redistributing routes to BGP The default is prepend.

Note:

Prepend is not applicable to an iBGP peer with outbound route policy.

SetAutomaticTag

Enables the automatic tag feature. Applicable to BGP protocol only. The default is disable.

SetCommunityNumber

Configures the community number for BGP advertisements. This value can be a number (1 to 42949672000) or no-export or no-advertise.

SetCommunityMode

Configures the community mode for the BGP protocol. This value can be either append, none, or unchanged. The default is unchanged.
  • Unchanged—keeps the community attribute in the route path as it is.

  • None—removes the community in the route path additive.

  • Append—adds the community number specified in SetCommunityNumber to the community list attribute.

SetExtCommunity

Configures a BGP community. The values are 0 to 256.

SetExtCommunityMode

Configures the extended-community mode. The value can be append, unchanged, or overwrite. The default value is unchanged.

  • append — creates another community string.

  • unchanged — keeps the community attribute as it is.

  • overwrite — changes the current value.

SetOrigin

Configures the origin for the BGP protocol to IGP, EGP, incomplete, or unchanged. If not configured, the system uses the route origin from the IP routing table (protocol). The default is unchanged.

SetLocalPref

Configures the local preference for the BGP protocol only. The system uses this value during the route decision process for the BGP protocol. The default is 0.

SetOriginEgpAs

Indicates the remote autonomous system number for the BGP protocol. The default is 0.

SetWeight

Configures the weight value for the routing table for the BGP protocol. This field must be used with the match as-path condition. For BGP, this value overrides the weight configured through the NetworkTableEntry, FilterListWeight, or NeighborWeight. The default is 0.

SetTag

Configures the list of tags used during the match criteria process for the BGP protocol. The default is 0.

Ipv6SetNextHop

Specifies the address of the IPv6 next hop router.

SetDataIsid

Configures the data I-SID for SPB routed multicast Policy that associates with the IP multicast groups (sender and receiver). This field should match the route-map.

SetRxOnly

Configures SPB routed multicast policy with permit action that allows only local receivers, not local senders. The default is disabled.

SetTxOnly

Configures a route-map of SPB routed multicast policy with permit action that allows only local senders, not local receivers. The default is disabled.