Help Center User GuideGetting Started
 
X
User Guide
Getting Started
Contents  

Add a Policy

You are here: Configure > Network > Policies.

Procedure

To add a policy:

  1. Click + > New on the right side of the Policies page.

    The Add Policy page appears.

  2. Complete the configuration according to the guidelines provided in Table 152.
  3. Click OK to save the changes. If you want to discard your changes, click Cancel instead.

    If you click OK, a new policy is added with the provided configuration.

Table 152: Fields on the Policy Page

Field

Description

Policy Name

Enter the policy name.

Terms

Click one of the following:

  • +—Adds the term.

  • Edit—Edits the term.

  • X—Deletes the term,

Add Term

Term Name

Enter the term name.

Source

Family

Select a family protocol address from the list.

Routing Instance

Select a routing instance from the list.

RIB

Select a routing table from the list.

Preference

Enter a preference value for the route.

Metric

Enter the metric value.

You can specify up to four metric values.

Interface

Specifies the name or IP address of one or more routing device interfaces. Do not use this qualifier with protocols that are not interface-specific, such as internal BGP (IBGP).

Procedure

Choose one of the following options:

  1. To add an interface
    1. Click + and select Interface.

      The Available Interfaces page appears.

    2. Select an interface from the list and click OK.

      The selected interface is added.

  2. To add an IP address
    1. Click + and select Address.

      The Add IP Address page appears.

    2. Enter IP address from the list and click OK.

      The selected IP address is added.

  3. To delete an interface or an IP address:
    1. Select an existing interface or address from Interfaces.

    2. Click X.

      The selected interface or IP address is deleted.

Prefix List

Specifies a named list of IP addresses. You can specify an exact match with incoming routes.

Procedure

Choose one of the following options:

  1. To add a prefix list:
    1. Click +.

      The Available Prefix List page appears.

    2. Select a prefix list from the list and click OK.

      The selected prefix list is added.

  2. To delete a prefix list:
    1. Select an existing prefix list.

    2. Click X.

      The selected prefix list is deleted.

Protocol

Specifies the name of the protocol from which the route was learned or to which the route is being advertised.

Procedure

Choose one of the following options:

  1. To add a protocol:
    1. Click +.

      The Available Protocols page appears.

    2. Select a protocol from the list and click OK.

      The selected protocol is added.

  2. To delete a protocol:
    1. Select an existing protocol.

    2. Click X.

      The selected protocol is deleted.

Policy

Specifies the name of a policy to evaluate as a subroutine.

Procedure

Choose one of the following options:

  1. To add a policy:
    1. Click +.

      The Available Policies page appears.

    2. Select a policy from the list and click OK.

      The selected policy is added.

  2. To delete a policy:
    1. Select an existing policy.

    2. Click X.

      The selected policy is deleted.

More

Click More for advanced configuration options for policies.

The More Options page appears.

Click OK to save changes after the configuration is complete.

More Options

OSPF Area ID

Enter the IP address for the area identifier.

BGP Origin

Select a value from the list to specify the origin of the AS path information.

Local Preference

Type a BGP local preference value.

AS Path

Specifies the name of an AS path regular expression.

Procedure

Choose one of the following options:

  1. To add an As path:
    1. Click +.

      The Available AS Paths page appears.

    2. Select an As path from the list and click OK.

      The selected As path is added.

  2. To delete an As path:
    1. Select an existing As path.

    2. Click X.

      The selected As path is deleted.

Route

Enter the following details:

  • External—Select the check box to enable external routing.

  • OSPF Type—Select an OSPF type from the list.

Community

Specifies the name of one or more communities.

Procedure

Choose one of the following options:

  1. To add a community:
    1. Click +.

      The Available Communities page appears.

    2. Select a community from the list and click OK.

      The selected community is added.

  2. To delete a community:
    1. Select an existing community.

    2. Click X.

      The selected community is deleted.

Destination

Family

Select a value for address family protocol from the list.

Routing Instance

Select a routing instance from the list.

RIB

Select a name of a routing table from the list.

Preference

Type a preference value for the route.

Metric

Type a metric value.

Interface

Specifies the name or IP address of one or more routing device interfaces. Do not use this qualifier with protocols that are not interface-specific, such as internal BGP (IBGP).

Procedure

Choose one of the following options:

  1. To add an interface:
    1. Click + and select Interface.

      The Available Interfaces page appears.

    2. Select an interface from the list and click OK.

      The selected interface is added.

  2. To add an IP address:
    1. Click + and select Address.

      The Add IP Address page appears.

    2. Enter IP address from the list and click OK.

      The selected IP address is added.

  3. To delete an interface or an IP address:
    1. Select an existing interface or address from Interfaces.

    2. Click X.

      The selected interface or IP address is deleted.

Protocol

Specifies the name of the protocol from which the route was learned or to which the route is being advertised.

Procedure

Choose one of the following options:

  1. To add a protocol:
    1. Click +.

      The Available Protocols page appears.

    2. Select a protocol from the list and click OK.

      The selected protocol is added.

  2. To delete a protocol:
    1. Select an existing protocol.

    2. Click X.

      The selected protocol is deleted.

Policy

Displays the name of the policy.

Procedure

Choose one of the following options:

  1. To add a policy:
    1. Click +.

      The Available Policies page appears.

    2. Select a policy from the list and click OK.

      The selected policy is added.

  2. To delete a policy:
    1. Select an existing policy.

    2. Click X.

      The selected policy is deleted.

More

Click More for advanced configuration options for policies.

The More Options page appears.

Click OK to save changes after the configuration is complete.

Action

Action

Select an action value from the list.

Default Action

Select a value from the list.

Specifies that any action that is intrinsic to the protocol is overridden. This action is also non terminating so that various policy terms can be evaluated before the policy is terminated.

Next

Select a value from the list.

Specifies the default control action if a match occurs, and there are no further terms in the current routing policy.

Priority

Select a value from the list.

Specifies a priority for prefixes included in an OSPF import policy. Prefixes learned through OSPF are installed in the routing table based on the priority assigned to the prefixes.

BGP Origin

Select a value from the list.

Specifies the BGP origin attribute.

AS Path Prepend

Enter AS path prepend value.

Affixes an AS number at the beginning of the AS path. AS numbers are added after the local AS number has been added to the path. This action adds an AS number to AS sequences only, not to AS sets. If the existing AS path begins with a confederation sequence or set, the affixed AS number is placed within a confederation sequence. Otherwise, the affixed AS number is placed with a non confederation sequence.

AS Path Expand

Enter the following details:

  • Type—Select the type and type a value.

    Extracts the last AS number in the existing AS path and affixes that AS number to the beginning of the AS path n times, where n is a number from 1 through 32. The AS number is added before the local AS number has been added to the path. This action adds AS numbers to AS sequences only, not to AS sets. If the existing AS path begins with a confederation sequence or set, the affixed AS numbers are placed within a confederation sequence. Otherwise, the affixed AS numbers are placed within a non confederation sequence. This option is typically used in non-IBGP export policies.

  • Value—Enter the As path value.

Preference

Enter the following details:

  • Action—Select the preference action and type a value.

  • Value—Enter the preference value.

Local Preference

Enter the following details:

  • Action—Select the preference action and type a value.

  • Value—Enter the preference value.

Load Balance Per Packet

Select the check box to enable this option.

Specifies that all next-hop addresses in the forwarding table must be installed and have the forwarding table perform per-packet load balancing. This policy action allows you to optimize VPLS traffic flows across multiple paths.

Tag

Enter the following details:

  • Action—Select the action and type a value.

    Changes the metric (MED) value by the specified negative or positive offset. This action is useful only in an external BGP (EBGP) export policy.

  • Value—Enter the tag value.

Metric

Enter the following details:

  • Action—Select the action and type a value.

    Specifies the tag value. The tag action sets the 32-bit tag field in OSPF external link-state advertisement (LSA) packets.

  • Value—Enter the metric value.

Route

Enter the following details:

  • External—Select the check box to enable this option.

  • OSPF Type—Select an option from the list.

Class of Service

Enter the following details:

  • Class—Select None from the list.

    Specifies the class-of-service parameters to be applied to routes installed into the routing table.

  • Source Class—Enter the source class.

    Specifies that the value entered here maintains the packet counts for a route passing through your network, based on the source address.

  • Destination Class—Enter the destination class.

    Specifies the value entered here maintains packet counts for a route passing through your network, based on the destination address in the packet.

  • Forwarding Class—Enter the forwarding class.

    Specifies that the value of queue number entered here maintains packet counts for a route passing through your network, based on the internal queue number assigned in the packet.

Related Documentation

Help us to improve. Rate this article.
Feedback Received. Thank You!

Ask questions in TechWiki

Check documentation in TechLibrary

Rating by you:      
X

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:
Email:

Need product assistance? Contact Juniper Support

Submit