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.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the IP destination address and the network mask or prefix-length. On the same command line, enter the keyword ve followed by the appropriate ID number.
    device(config)# ip route 10.128.2.71 255.255.255.0 ve 3
    

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