IP static route table

The IP static route table contains a list of static routes. These routes can be one of the following types:

  • Standard: The static route consists of the destination network address and network mask, plus the IP address of the next-hop gateway.
  • Interface-based: The static route consists of the destination network address and network mask, plus the Layer 3 switch interface through which you want the Layer 3 switch to send traffic for the route. Typically, this type of static route is directly attached to the destination networks.
  • Null: The static route consists of the destination network address and network mask, plus the “null0” parameter. Typically, the null route is configured as a backup route for discarding traffic if the primary route is unavailable.

The IP static route table also serves as the default route table.

SNMP does not support Equal-Cost Multipath(ECMP). The snRtIpStaticRouteTable uses the IP address and mask as table indexes and displays one path even if the user configures multiple paths (next hop IP address or outgoing interface).

Note: SNMP support for the IP static route MIB table is limited to IPv4 only and not supported on IPv6. Operations such as SNMP GET, SNMP WALK, and SNMP SET are supported.
Note: The following MIB table OIDs support only the default VRF, and the non-default VRF is not supported.
Note: The snRtIpStaticRouteIndex OID is not supported on the ICX devices.

Name, OID, and syntax

Access

Description

snRtIpStaticRouteTable

1.3.6.1.4.1.1991.1.2.2.2

None

IP static route table.

snRtIpStaticRouteEntry

1.3.6.1.4.1.1991.1.2.2.2.1

Syntax: Integer32

Read-only

The table index for a static route entry.

snRtIpStaticRouteDest

1.3.6.1.4.1.1991.1.2.2.2.1.1

Syntax: IpAddress

Read-write

Shows the destination IP address of the default route. The address 0.0.0.0 is the IP address of the default router.

Note: The OID value of snRtIpStaticRouteDest must be the same as the snRtIpStaticRouteDest index value used to create the row. The index and index value must be the same. The SNMP SET value must be a valid IP address.
snRtIpStaticRouteMask

1.3.6.1.4.1.1991.1.2.2.2.1.2

Syntax: IpAddress

Read-write

Shows the subnet mask of the default router destination IP address. The subnet mask of the default router is 0.0.0.0.

The OID value of snRtIpStaticRouteMask must be the same as the snRtIpStaticRouteMask index value used to create the row. The index and index value must be the same. The SNMP SET value must be a valid IP address.

snRtIpStaticRouteNextHop

1.3.6.1.4.1.1991.1.2.2.2.1.3

Syntax: IpAddress

Read-write

Shows the IP address of the next-hop router (gateway) for the route. The SNMP SET value must be a valid IP address.

snRtIpStaticRouteMetric

1.3.6.1.4.1.1991.1.2.2.2.1.4

Syntax: Integer32

Read-write

Shows the metrics to the next-hop router.

snRtIpStaticRouteRowStatus

1.3.6.1.4.1.1991.1.2.2.2.1.5

Syntax: Integer

Read-write

Controls the management of the table rows. The following values can be written:

  • delete(3): Delete the row.
  • create(4): Create a new row.
snRtIpStaticRouteDistance

1.3.6.1.4.1.1991.1.2.2.2.1.6

Syntax: Integer

Read-write

Specifies the administrative distance of the route. When comparing equal routes to a destination, the Layer 3 switch prefers lower administrative distances over higher ones.

snRtIpStaticRouteOutgoingInterface

1.3.6.1.4.1.1991.1.2.2.2.1.7

Syntax: Integer

Read-only

Displays the outgoing interface of the static route in SNMP snRtIpStaticRouteTable. Only the SNMP GET operation is supported. The type of outgoing interface can be Ethernet, LAG, tunnel, or VE. Please note that this OID only displays the outgoing interface if user explicitly configures one as a part of static route configuration which is equivalent to show ip static route command. If the user configures a nexthop IP address, then the outgoing interface is not shown in this table.

Note: The snRtIpStaticRouteOutgoingInterface OID is not supported for a static route which is configured with null0.