Configuring a virtual interface as next hop
The virtual 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.
To configure an IP static route that uses a virtual interface as the next hop, follow these steps.
The following example configures an IP static route with a destination address of 10.128.2.71, a prefix-length of /24, and a virtual interface (ve 3) as the next hop.
device# configure terminal device(config)# ip route 10.128.2.71/24 ve 3