Defining IPv4 Static Routing

When the switch is in Layer 3 mode, this page enables configuring and viewing IPv4 static routes on the switch. When routing traffic, the next hop is decided based on the longest prefix match (LPM algorithm). A destination IPv4 address may match multiple routes in the IPv4 Static Route Table. The switch uses the matched route with the highest subnet mask, that is, the longest prefix match.

To define an IP static route:

  1. Click IP Configuration > IPv4 Static Routes (Layer 3).
  2. The IPv4 Static Routes (Layer 3) page opens.

  3. Click Add. The Add IP Static Route page opens.
  4. Enter values for the following fields:
    • Destination IP Prefix--Enter the destination IP address prefix.
    • Mask--Select and enter information for one of the following:
      • Network Mask--The IP route prefix for the destination IP.
      • Prefix Length--The IP route prefix for the destination IP.
    • Next Hop Router IP Address--Enter the next hop IP address or IP alias on the route.

    NOTE     You cannot configure a static route through a directly-connected IP subnet where the switch gets its IP address from a DHCP server.

    • Route Type--Select the route type.
      • Reject--Rejects the route and stops routing to the destination network via all gateways. This ensures that if a frame arrives with the destination IP of this route, it is dropped.
      • Remote--Indicates that the route is a remote path.
    • Metric--Enter the administrative distance to the next hop. The range is 1–255.
  5. Click Apply. The IP Static route is added, and Running Configuration file is updated.