Configuring a physical interface as next hop

The interface you use for the static route’s next hop must have at least one IP address configured on it. The address does not need to be in the same subnet as the destination network.
NOTE
You cannot add an interface-based static route to a network if there is already a static route of any type with the same metric you specify for the interface-based route.
NOTE
ARP will be generated for a forwarded packet destination IP address when an interface is configured as the next hop.
To configure an IP static route with an IP physical interface as the next hop, follow these steps.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the IP address and prefix length, or enter the IP address and network mask for the route destination network. On the same command line, enter the keyword ethernet followed by the interface number to be used as next hop.
    device(config)# ip route 10.128.2.69 255.255.255.0 ethernet 1/4/1
    
    This example configures an IP static route with a destination network address of 10.128.2.69, a network mask of 255.255.255.0, and Ethernet port 1/4/1 as the next hop.

The following example configures an IP static route to destination network addresses beginning with 10.0.0.0 through the next-hop interface 1/2/1.

device# configure terminal
device(config)# ip route 10.0.0.0/24 ethernet 1/2/1