Configuring a tunnel 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 through a next-hop tunnel, perform these steps.

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter the IPv6 destination address and prefix, followed by the keyword tunnel and the tunnel ID.
    device(config)# ipv6 route 2001:DB8::0/32 tunnel 1
    

The following example configures an IPv6 static route to 2001:DB8::0/32 destinations with a next-hop gateway through Tunnel 1.

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