You can configure a physical interface, a virtual interface, or a non-default VRF as a next hop.
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 |
|
device# configure terminal
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.
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.
device(config)# ipv6 route 2001:DB8::0/32 next-hop-vrf partners 2001:DB8:0:ee44::1