Configure a route and display learned routes

You can add or change a route in the routing table and display the automatically learned routes in the routing table.

To add or change a route and display learned routes:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Routing > Routing Table > Basic > Route Configuration.

    The Route Configuration page displays.

  3. If you are changing an existing route, select the check box for the route.
  4. From the Route Type menu, select one of the following route types:
    • Default: Specify the next hop address and preference.

    • Static: Specify the network address, subnet mask, next hop address, and preference.

    • Static Reject: Specify the network address, subnet mask, and preference.

  5. In the Network Address field, enter the IP route prefix for the destination.
  6. In the Subnet Mask field, enter the portion of the IP interface address that identifies the attached network.

    This is also referred to as the subnet/network mask.

  7. In the Next Hop IP Address, enter the IP address of the outgoing router that must be used when traffic is forwarded to the next router (if any) in the path toward the destination.

    The next router is always one of the adjacent neighbors or the IP address of the local interface for a directly attached network.

  8. In the Preference field, enter a value from 1 to 255.

    You can specify the preference value (sometimes called administrative distance) of an individual static route. Among routes to the same destination, the route with the lowest preference value is the route entered into the forwarding database. By specifying the preference of a static route, you can control if a static route is more preferred or less preferred than routes from dynamic routing protocols. The preference also controls if a static route is more preferred or less preferred than other static routes to the same destination.

  9. In the Description field, enter the description of this route that identifies the route.

    The description must consist of alphanumeric, hyphen, or underscore characters and can be up to 31 characters in length.

  10. Do one of the following:
    • If you are adding a new route, click the Add button.

      Your settings are saved. The route is added to the routing table.

    • If you are changing an existing route, click the Apply button.

      Your settings are saved.

  11. To save the settings to the running configuration, click the Save icon.

The following table describes the view-only fields on the page.

Table 1. Learned routes information

Field

Description

Network Address

The IP route prefix for the destination.

Subnet Mask

The subnet/network mask, which indicates the portion of the IP interface address that identifies the attached network.

Protocol

The protocol that created the route: Local, Static, or RIP.

Route Type

The type of route, depending on the protocol: Connected, Static, or Dynamic.

Next Hop Interface

The interface of the outgoing router interface that must be used when traffic is forwarded to the destination.

Next Hop Address

The IP address of the outgoing router interface that must be used when traffic is forwarded to the next router (if any) in the path toward the destination.

Preference

The preference, which is a value from 0 to 255.

Metric

The administrative cost of the path to the destination. The default is 1. The range is from 0 to 255.