[Prev][Next][Report an Error]

Configuring a Routing Policy in J-Web

All routing protocols use the JUNOS Software routing table to store the routes that they learn and to determine which routes are advertised in the protocol packets. Routing policy allows you to control which routes the routing protocols store in and retrieve from the routing table on the routing device.

To configure routing policies in the J-Web interface:

  1. Select Configure > Routing > Policies.
  2. Click one:

Table 131: Policies Global Configuration Parameters

Field Function Your Action

Prefix List

Specifies a list of IPv4 address prefixes for use in a routing policy statement.

To add a prefix list:

  1. Click Add.
  2. Enter a name for the prefix list.
  3. To add an IP address, click Add.
  4. Enter the IP address and the subnet mask and click OK.
  5. Click OK.

To edit a prefix list, click Edit. Edit the settings and click OK.

To delete a prefix list, select it and click Delete.

BGP Community

Specifies a BGP community.

To add a BGP community:

  1. Click Add.
  2. Enter a name for the community.
  3. To add a community, click Add.
  4. Enter the community ID and click OK.
  5. Click OK.

To edit a BGP community, click Edit. Edit the settings and click OK.

To delete a BGP community, select it and click Delete.

AS Path

Specifies an AS path. This is applicable to BGP only.

To add an AS path:

  1. Click Add.
  2. Enter the AS path name.
  3. Enter the regular expression and click OK.
  4. Click OK.

To edit an AS path, click Edit. Edit the settings and click OK.

To delete an AS path, select it and click Delete.

Table 132: Terms Configuration Parameters

Field Function Your Action

Term Name

Specifies a term name.

Type or select and edit the name.

Source tab

Family

Specifies an address family protocol.

Select a value from the list.

Routing Instance

Specifies a routing instance.

Select a value from the list.

RIB

Specifies the name of a routing table.

Select a value from the list

Preference

Specifies the individual preference value for the route.

Type or select and edit the value.

Metric

Specifies a metric value. You can specify up to four metric values.

Type or select and edit the value.

Interface

Specifies a 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).

To add an interface, select Add > Interface. Select the interface from the list.

To add an address, select Add > Address. Select the address from the list.

To remove an interface, select it and click Remove.

Prefix List

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

Click Add. Select the prefix list from the list and click OK.

To remove a prefix list, select it and click Remove.

Protocol

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

Click Add and select the protocol from the list.

To remove a protocol, select it and click Remove.

Policy

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

Click Add. Select the policy from the list.

To remove a policy, select it and click Remove.

More

Specifies advanced configuration options for policies.

Click More for advanced configuration.

OSPF Area ID

Specifies the area identifier.

Type the IP address.

BGP Origin

Specifies the origin of the AS path information.

Select a value from the list.

Local Preference

Specifies the BGP local preference.

Type a value.

Route

Specifies the type of route.

Select External.

Select the OSPF type from the list.

AS Path

Specifies the name of an AS path regular expression.

Click Add. Select the AS path from the list.

Community

Specifies the name of one or more communities.

Click Add. Select the community from the list.

Destination tab

Family

Specifies an address family protocol.

Select a value from the list.

Routing Instance

Specifies a routing instance.

Select a value from the list.

RIB

Specifies the name of a routing table.

Select a value from the list.

Preference

Specifies the individual preference value for the route.

Type a value.

Metric

Specifies a metric value.

Type a value.

Interface

Specifies a 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).

To add an interface, select Add > Interface. Select the interface from the list.

To add an address, select Add > Address. Select the address from the list.

To delete an interface, select it and click Remove.

Protocol

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

Click Add and select the protocol from the list.

To delete a protocol, select it and click Remove.

Action tab

Action

Specifies the action to take if the conditions match.

Select a value from the list.

Default Action

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

Select a value from the list.

Next

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

Select a value from the list.

Priority

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.

Select a value from the list.

BGP Origin

Specifies the BGP origin attribute.

Select a value from the list.

AS Path Prepend

Affixes an AS number at the beginning of the AS path. The 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 nonconfederation sequence.

Enter a value.

AS Path Expand

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 nonconfederation sequence. This option is typically used in non-IBGP export policies.

Select the type and type a value.

Load Balance Per Packet

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.

Select the check box to enable the option.

Tag

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

Select the action and type a value.

Metric

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

Select the action and type a value.

Route

Specifies whether the route is external.

Select the External check box to enable the option, and select the OSPF type.

Preference

Specifies the preference value.

Select the preference action and type a value.

Local Preference

Specifies the BGP local preference attribute.

Select the action and type a value.

Class of Service

Specifies and applies the class-of-service parameters to routes installed into the routing table.

  • Source class

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

  • Destination class

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

  • Forwarding class

Type the source class.

Type the destination class.

Type the forwarding class.


[Prev][Next][Report an Error]