Specify the static route on the device to resolve and determine the packet's next-hop interface using the Longest Match Routing Rule (most specific entry), sometimes referred to as the longest prefix match or maximum prefix length match. The Longest Match Routing Rule is an algorithm used by IP routers to select an entry from a routing table. The router uses the longest (prefix) match to determine the egress (outbound) interface and the address of the next device to which to send a packet. Typically, the static route prefers the directly connected subnet route for resolving the next hop rather than performing a longest prefix match with any other available routes.
The router implements the Longest Match Routing Rule as follows:
Longest Match Example:
The router receives a packet with a destination IP address of 192.168.1.33.
The routing table contains the following possible matches:
192.168.1.32/28 ,192.168.1.0/24,192.168.0.0/16