Configure a Next Hop for an IPv6 Static Route

You can configure a physical interface, a virtual interface, or a non-default VRF as a next hop.

About this task

Table 1. Configuration considerations
Interface type Description

Physical interface

Virtual interface

The interface for the 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.

VRF

  • The VRF must be an existing VRF. Any physical port referenced in the next hop must have a valid IP address so that the route is added to the routing table.
  • The VRF must be a non-default VRF.

Procedure

  1. Access global configuration mode.
    device# configure terminal
    
  2. To configure a physical interface:
    1. Enter the destination IP address, the ethernet keyword, and the interface number of the next hop.
      device(config)# ipv6 route 2001:DB8::0/32 fe80::1 ethernet 3/1
      

      This 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 3/1.

  3. To configure a virtual interface:
    1. Enter the destination IP address, the ve keyword, and the VLAN ID.
      device(config)# ipv6 route 2001:DB8::0/32 fe80::1 ve 3
      

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

  4. To configure a VRF:
    1. Enter the destination IP address, the next-hop-vrf keyword, and the name of the VRF that contains the next-hop gateway router and its IPv6 address.
      device(config)# ipv6 route 2001:DB8::0/32 next-hop-vrf partners 2001:DB8:0:ee44::1
      This example creates an IPv6 static route to IPv6 2001:DB8::0/32 destinations through the VRF named "partners" and the next-hop router with the IPv6 address 2001:DB8:0:ee44::1.