Configuring a virtual interface as next hop

Before configuring a static IPv6 route, you must enable the forwarding of IPv6 traffic on the Layer 3 switch using the ipv6 unicast-routing command and enable IPv6 on at least one interface by configuring an IPv6 address or explicitly enabling IPv6 on that interface.
To configure a basic IPv6 static route with a virtual interface as a next hop, perform these steps.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the IP address prefix and prefix length for the route destination network.
    device(config)# ipv6 route 2001:DB8::0/32
    
    This example shows the first half of the command, the route destination, IPv6 2001:DB8::0/32 network addresses.
  3. On the same command line, add the keyword ve followed by the virtual interface ID to be used as the next hop, along with its link-local address.
    device(config)# ipv6 route 2001:DB8::0/32 ve 3 fe80::1
    
    This example shows the next-hop destination as virtual interface (ve) 3, with a link-local address of fe80::1.

The following example configures an IPv6 static route to IPv6 2001:DB8::0/32 destinations through next-hop virtual interface 3.

device# configure terminal
device(config)# ipv6 route 2001:DB8::0/32 ve 3 fe80::1