Routing

This section contains the following topics:

Configuring Static Routes in J-Web

You can use the J-Web interface to configure static routes.

To configure static routes:

  1. Select Configure>Routing > Static Routing. The Static Routing page displays details of the configured routes.
  2. Click one:

    • Add—To configure a route. Enter information into the routing page, as described in Table 78.
    • Edit—To modify an existing route. Enter information into the routing page, as described in Table 78.
    • Delete—To delete an existing route.

Table 78: Static Routing Configuration Summary

Field

Function

Your Action

Default Route 

Default Route

Specifies the default gateway for the switch.

To specify an IPv4 address:

  1. Select IPv4.
  2. Type an IP address—for example, 10.10.10.10.
  3. Enter the subnet mask or address prefix. For example, 24 bits represents 255.255.255.0.

To specify an IPv6 address:

  1. Select IPv6.
  2. Type an IP address—for example, 2001:ab8:85a3::8a2e:370:7334.
  3. Enter the subnet mask or address prefix.
Static Routes 

Nexthop

Specifies the next-hop address or addresses to be used when routing traffic to the static route.

To add an address:

  1. Click Add.
  2. In the IP address dialog, enter the IP address.

    Note: If a route has multiple next-hop addresses, traffic is routed across each address in round-robin fashion.

  3. Click OK.

To delete a next hop address, select it from the list and click Delete.

Configuring a RIP Network in J-Web

You can use the J-Web interface to create RIP networks.

To configure a RIP network:

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

    • Add—Configures a RIP instance. Enter information into the configuration page for RIP, as described in Table 79.
    • Edit—Modifies an existing RIP instance. Enter information into the configuration page for RIP, as described in Table 79.
    • Delete—Deletes an existing RIP instance.
  3. To modify RIP global settings, click Edit. Enter information in the configuration as described in Table 80.
  4. To delete RIP global settings, click Delete. A confirmation message to delete is displayed.

Table 79: RIP Routing Configuration Summary

Field

Function

Your Action

General tab 

Routing instance name

Specifies a name for the routing instance.

Type or select and edit the name.

Preference

Specifies the preference of external routes learned by RIP as compared to those learned from other routing protocols.

Type or select and edit the value.

Metric Out

Specifies the metric value to add to routes transmitted to the neighbor.

Type or select and edit the value.

Update interval

Specifies an update time interval to periodically send out routes learned by RIP to neighbors.

Type or select and edit the value.

Route timeout

Specifies the route timeout interval for RIP.

Type or select and edit the value.

Policies tab

Import Policy

Applies one or more policies to routes being imported into the local routing device from the neighbors.

Click Add to add an import policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an import policy.

Export Policy

Applies a policy to routes being exported to the neighbors.

Click Add to add an export policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an export policy.

Neighbors tab  

RIP-Enabled Interfaces

Selects the interfaces to be associated with the RIP instance.

To enable RIP on an interface, click the check box next to the interface name.

Click Edit if you want to modify an interface’s settings.

Note: Only logical interfaces for RIP are displayed.

Table 80: Edit RIP Global Settings

FieldFunctionYour Action
General tab

Send

Specifies RIP send options.

Select a value.

Receive

Configure RIP receive options.

Select a value.

Route timeout (sec)

Specifies the route timeout interval for RIP.

Type a value.

Update interval (sec)

Specifies the update time interval to periodically send out routes learned by RIP to neighbors.

Type or select and edit the value.

Hold timeout (sec)

Specifies the time period the expired route is retained in the routing table before being removed.

Type or select and edit the value.

Metric in

Specifies the metric to add to incoming routes when advertising into RIP routes that were learned from other protocols.

Type or select and edit the value.

RIB Group

Specifies a routing table group to install RIP routes into multiple routing tables.

Select and edit the name of the routing table group.

Message size

Specifies the number of route entries to be included in every RIP update message.

Type or select and edit the value.

Check Zero

Specifies whether the reserved fields in a RIP packet are zero. Options are:

  • check-zero—Discard version 1 packets that have nonzero values in the reserved fields and version 2 packets that have nonzero values in the fields that must be zero. This default behavior implements the RIP version 1 and version 2 specifications.
  • no-check-zero—Receive RIP version 1 packets with nonzero values in the reserved fields or RIP version 2 packets with nonzero values in the fields that must be zero. This is in spite of the fact that they are being sent in violation of the specifications in RFC 1058 and RFC 2453.

Select a value.

Graceful switchover

Configures graceful switchover for OSPF.

To disable graceful restart, select Disable.

Type or select and edit the estimated time for the restart to finish, in seconds.

Authentication Type

Specifies the type of authentication for RIP route queries received on an interface. Options are:

  • None
  • MD5
  • Simple

Select the authentication type.

Enter the authentication key for MD5.

Policies tab

Import Policy

Applies one or more policies to routes being imported into the local routing device from the neighbors.

Click Add to add an import policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an import policy.

Trace Options tab

File Name

Specifies the name of the file to receive the output of the tracing operation.

Type or select and edit the name.

Number of Files

Specifies the maximum number of trace files.

Type or select and edit the name.

File Size

Specifies the maximum size for each trace file.

Type or select and edit the name.

World Readable

Specifies whether the trace file can be read by any user or not.

Select True to allow any user to read the file.

Select False to disallow all users being able to read the file.

Flags

Specifies the tracing operation to perform.

Select a value from the list.

Configuring an OSPF Network in J-Web

You can use the J-Web interface to create multiarea OSPF networks.

To configure a multiarea OSPF network:

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

    • Add—Adds an OSPF area. Enter information into the configuration page, as described in Table 81.
    • Edit—Modifies an existing OSPF area. Enter information into the configuration page, as described in Table 81.
    • Delete—Deletes an existing OSPF area.
  3. To modify OSPF global settings, click Edit. Enter information as described in Table 82.
  4. To disable OSPF, click Disable.

Table 81: OSPF Routing Configuration Summary

Field

Function

Your Action

General tab

Area Id

Uniquely identifies the area within its AS.

Type a 32-bit numeric identifier for the area. Type an integer or select and edit the value.

If you enter an integer, the value is converted to a 32-bit equivalent. For example, if you enter 3, the value assigned to the area is 0.0.0.3.

Area Ranges

Specifies a range of IP addresses for an area when sending summary link advertisements (within an area).

To add a range:

  1. Click Add.
  2. Type the area range.
  3. Specify the subnet mask.
  4. To override the metric for the IP address range, type a specific metric value.
  5. If you do not want to display the routes that are contained within a summary, select Restrict advertisements of this area range.
  6. If you want a summary of a route to be advertised only when an exact match is made with the configured summary range, select Enforce exact match for advertisement of this area range.
  7. Click OK.

To modify an existing area range, select the area range, click Edit, and edit the value. Click OK.

To delete an area range, select the area range and click Delete.

Area Type

Designates the type of OSPF area.

  • regular—A regular OSPF area, including the backbone area
  • stub—A stub area
  • nssa—A not-so-stubby area (NSSA)

Select the type of OSPF area you are creating from the list.

If you select stub:

  1. Enter the default metric.
  2. To flood summary LSAs into the stub area, select the check box.

If you select nssa:

  1. Specify the metric type.
  2. Enter the default metric.
  3. To flood summary LSAs into the nssa area, select the check box.
  4. To flood Type-7 LSAs into the nssa area, select the check box.
Interfaces tab

Interfaces

Specifies the interfaces to be associated with the OSPF configuration

To associate an interface with the configuration, select the interface from the list, select Associate and click OK.

Note: Only logical interfaces for OSPF is displayed.

To edit an interface’s configuration:

  1. Select the interface from the list and click Edit.
  2. Specify the cost of an OSPF interface.
  3. Specify the traffic engineering metric.
  4. Specify how often the routing device sends hello packets from the interface.
  5. Specify how long the routing device waits to receive a link-state acknowledgment packet before retransmitting link-state advertisements to an interface’s neighbors.
  6. To enable OSPF on the interface, select the check box.
  7. To inform other protocols about neighbor down events, select the check box.
  8. To treat the interface as a secondary interface, select the check box.
  9. To only advertise OSPF, select the check box.
  10. Click OK.
Policies tab

Import Policy

Specifies one or more policies to control which routes learned from an area are used to generate summary link-state advertisements (LSAs) into other areas.

Click Add to add an import policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an import policy.

Export Policy

Specifies one or more policies to control which summary LSAs are flooded into an area.

Click Add to add an export policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an export policy.

Table 82: Edit OSPF Global Settings

FieldFunctionYour Action
General tab

Router Id

Specifies the ID for the routing device.

Type or select and edit the value.

RIB Group

Installs the routes learned from OSPF routing instances into routing tables in the OSPF routing table group.

Select a value.

Internal Route Preference

Specifies the route preference for internal groups.

Type or select and edit the value.

External Route Preference

Specifies the route preference for external groups.

Type or select and edit the value.

Graceful Restart

Configures graceful restart for OSPF.

To configure graceful restart:

  1. Specify the estimated time to send out purged grace LSAs over all the interfaces.
  2. Specified the estimated time to reacquire a full OSPF neighbor from each area.
  3. To disable No Strict LSA Checking, select the check box.
  4. To disable graceful restart helper capability, select the check box. Helper mode is enabled by default.
  5. Click OK.

SPF Options

Configure options for running the shortest-path-first (SPF) algorithm. You can configure a delay for when to run the SPF algorithm after a network topology change is detected, the maximum number of times the SPF algorithm can run in succession, and a hold-down interval after the SPF algorithm runs the maximum number of times.

To configure SPF:

  1. Specify the time interval between the detection of a topology change and when the SPF algorithm runs.
  2. Specify the time interval to hold down, or wait before a subsequent SPF algorithm runs after the SPF algorithm has run the configured maximum number of times in succession.
  3. Specify the maximum number of times the SPF algorithm can run in succession. After the maximum is reached, the hold-down interval begins.
Policies tab

Import Policy

Specifies one or more policies to control which routes learned from an area are used to generate summary link-state advertisements (LSAs) into other areas.

Click Add to add an import policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an import policy.

Export Policy

Specifies one or more policies to control which summary LSAs are flooded into an area.

Click Add to add an export policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an export policy.

Trace Options tab

File Name

Specifies the name of the file to receive the output of the tracing operation.

Type or select and edit the name.

Number of Files

Specifies the maximum number of trace files.

Type or select and edit the name.

File Size

Specifies the maximum size for each trace file.

Type or select and edit the name.

World Readable

Specifies whether the trace file can be read by any user or not.

Select True to allow any user to read the file.

Select False to disallow all users being able to read the file.

Flags

Specifies the tracing operation to perform.

Select a value from the list.

Configuring BGP Sessions in J-Web

You can use the J-Web interface to create BGP peering sessions on a routing device.

Note: To configure BGP sessions, you must have a license for BGP installed on the EX Series switch.

To configure a BGP peering session:

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

    • Add—Adds a BGP group. Enter information into the configuration page, as described in Table 83.
    • Edit—Modifies an existing BGP group. Enter information into the configuration page, as described in Table 83.
    • Delete—Deletes an existing BGP group.
    • Disable—Disables BGP configuration.
  3. Click one:

    • Edit—Modifies BGP Global Settings. Enter information as described in Table 84.
    • Delete——Deletes the existing BGP Global Settings.

Table 83: BGP Routing Configuration Summary

Field

Function

Your Action

General tab 

Group Type

Specifies whether the group is an internal BGP (IBGP) group or an external BGP (EBGP) group.

Select the option: Internal or External.

Group Name

Specifies the name for the group.

Type a new name or select and edit the name.

ASN

Sets the unique numeric identifier of the AS in which the routing device is configured.

Type the routing device’s 32-bit AS number, in dotted decimal notation.

If you enter an integer, the value is converted to a 32-bit equivalent. For example, if you enter 3, the value assigned to the AS is 0.0.0.3.

Preference

Specifies the degree of preference for an external route. The route with the highest local preference value is preferred.

Type or select and edit the value.

Cluster Id

Specifies the cluster identifier to be used by the route reflector cluster in an internal BGP group.

Type or select and edit the IPv6 or IPv4 address to be used as the identifier.

Description

Specifies the text description of the global, group, or neighbor configuration.

Type or select and edit the description.

Damping

Specifies whether route flap damping is enabled or not.

To enable route flap damping, select the check box.

To disable route flap damping do not select the check box.

Advertise Inactive Routes

Specifies whether BGP advertises the best route even if the routing table did not select it to be an active route.

To enable advertising inactive routes, select the check box.

To disable advertising inactive routes, do not select the check box.

Advertise Peer AS Routes

Specifies whether to disable the default behavior of suppressing AS routes.

To enable advertising peer AS routes, select the check box.

To disable advertising peer AS routes, do not select the check box.

Neighbors tab

Dynamic Neighbors

Configures a neighbor (peer).

Type the IPv4 address of the peer.

Static Neighbors

Configures the system’s peers statically.

To configure a static neighbor:

  1. Specify the IP address.
  2. Specify the address of the local end of a BGP session.
  3. Specify the degree of preference for an external route.
  4. Enter a description.
  5. Specify the hold-time value to use when negotiating a connection with the peer.
  6. Specify how long a route must be present in the routing table before it is exported to BGP. Use this time delay to help bundle routing updates.
  7. Select Passive if you do not want to send active open messages to the peer.
  8. Select the option to compare the AS path of an incoming advertised route with the AS number of the BGP peer under the group and replace all occurrences of the peer AS number in the AS path with its own AS number before advertising the route to the peer.
  9. Specify an import policy and export policy.
  10. Click OK.
Policies tab

Import Policy

Specifies one or more routing policies to routes being imported into the routing table from BGP.

Click Add to add an import policy. Select the policy and click OK.

Click Move up or Move down to move the selected policy up or down the list of policies.

Select the policy and click Remove.

Export Policy

Specifies one or more policies to routes being exported from the routing table into BGP.

Click Add to add an export policy. Select the policy and click OK.

Click Move up or Move down to move the selected policy up or down the list of policies.

Select the policy and click Remove.

Table 84: BGP Global Settings

FieldFunctionYour Action
General tab

Router ASN

Specifies the routing device’s AS number.

Type or select and edit the value.

Router Identifier

Specify the routing device’s IP address.

Type or select and edit the IP address.

BGP Status

Enables or disables BGP.

  • To enable BGP, select Enabled.
  • To disable BGP, select Disabled.

Description

Describes of the global, group, or neighbor configuration.

Type or select and edit the description.

Confederation Number

Specifies the routing device’s confederation AS number.

Type or select and edit the value.

Confederation Members

Specifies the AS numbers for the confederation members.

To add a member AS number, click Add and enter the number in the Member ASN box. Click OK.

To modify a confederation member’s AS number, select the member click Edit and, enter the number and click OK.

To delete a confederation member, select the member and click Remove.

Advance Options

You can configure the following:

  • Keep routes—Specifies whether routes learned from a BGP peer must be retained in the routing table even if they contain an AS number that was exported from the local AS.
  • TCP MSS—Configures the maximum segment size (MSS) for the TCP connection for BGP neighbors.
  • MTU Discovery—Select to configure MTU discovery.
  • Remove Private ASN—Select to have the local system strip private AS numbers from the AS path when advertising AS paths to remote systems.
  • Graceful Restart—Specifies the time period when the restart is expected to be complete. Specify the maximum time that stale routes are kept during restart.
  • Multihop—Configures the maximum time-to-live (TTL) value for the TTL in the IP header of BGP packets.
  • Authentication Type—Select the authentication algorithm: None, MD5 or SHA1.

Select All or None to configure Keep Routes.

Enter a value in the TCP MSS box.

Click to enable MTU Discovery.

Click to enable Remove Private ASN.

Enter the time period for a graceful restart and the maximum time that stale routes must be kept.

To configure Multihop, select Nexthop Change to allow unconnected third-party next hops. Enter a TTL value.

Select the authentication algorithm. If you select MD5, specify an MD5 authentication key (password).

Policies tab

Import Policy

Specifies one or more routing policies to routes being imported into the routing table from BGP.

Click Add to add an import policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an import policy.

Export Policy

Specifies one or more policies to routes being exported from the routing table into BGP.

Click Add to add an export policy.

Click Move up or Move down to move the selected policy up or down the list of policies.

Click Remove to remove an export policy.

Trace Options tab

File Name

Specifies the name of the file to receive the output of the tracing operation.

Type or select and edit the name.

Number of Files

Specifies the maximum number of trace files.

Type or select and edit the value.

File Size

Specifies the maximum size for each trace file.

Type or select and edit the value.

World Readable

Specifies whether the trace file can be read by any user or not.

Select True to allow any user to read the file.

Select False to disallow all users being able to read the file.

Flags

Specifies the tracing operation to perform.

Select a value from the list.

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:
    • Global Options—Configures global options for policies. Enter information into the configuration page as described in Table 85.
    • Add—Configures a new policy. Select New and specify a policy name. To add terms, enter information into the configuration page as described in Table 86. Select Clone to create a copy of an existing policy.
    • Edit—Edits an existing policy. To modify an existing term, enter information into the configuration page as described in Table 86.
    • Term Up—Moves a term up in the list.
    • Term Down—Moves a term down in the list.
    • Delete—Deletes the selected policy.
    • Test Policy—Tests the policy. Use this option to check whether the policy produces the results that you expect.

Table 85: Policies Global Configuration Parameters

FieldFunctionYour 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 86: Terms Configuration Parameters

FieldFunctionYour 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.