Configuring an 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 an IPv6 static route with an interface as the next hop as depicted in the following illustration, perform these steps.

IPv6 Static Route with an Interface as Next Hop

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Designate the route destination. On the same command line, enter the keyword ethernet followed by the interface number as the next hop, followed by its link-local IPv6 address.
    device(config)# ipv6 route 2001:DB8::0/32 ethernet 1/3/1 fe80::1
    

The following example configures a static IPv6 route for a destination network with the prefix 2001:DB8::0/32 and a next-hop gateway with the link-local address fe80::1 that the Layer 3 switch can access through Ethernet interface 1/3/1.

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