- [Instructor] Routing an IPv6 isn't too different
than routing an IPv4.
Depending on the platform IPv6 may not be enabled
for unicast-routing by default.
Issuing a ipv6 unicast-routing command
will correct that.
If it's not enabled then the router
won't be able to forward IPv6 traffic.
The static route creation command
is quite similar to IPv4.
It just starts with IPv6 route
instead of IP route.
Examine this diagram.
Host A and B are configured as well as
all IPv6 addresses are assigned to the routers.
I'll start by adding a state route on Router 1
to reach Host B's subnet.
I specify the next hop router IP address
either exclusively or in addition to the interface.
In this case, I'll just use the next hop IP,
Ipv6 route 2001:0:0:3::/64
to next hop 2001:0:0:2::2.
I'll now issue a show ipv6 route
which shows me that Router 1 now knows
how to forward traffic to reach Host B.
Something else of note is there are no routes
for connected or local routes for link-local addresses.
I'll pop over to Router 2 and do another
show ipv6 route.
Looking at the route table there's nothing
but the default connected subnet
so I'll need to add a route to reach Host A.
I'll do this be creating a default route,
ipv6 route ::/0 2001:0:0:2::1.
I should now be able to connect to Host A
and ping to Host B.
Ping 2001:0:0:3::2.
I can see that it successfully passes traffic.
Just for fun, I'll do a quick trace.
/tool trace 2001:0:0:3::2.
Here I can see each hop along the way responding.
While my static routes used a global unicast address
on the interface, I could have just as easily
used the Link-Local address as the next hop
for the routes.
In fact, protocols like OSPF use link-local addresses
as their next hop for routes.
There is something additional required
when creating static routes with link-locals
as destinations.
They also require the outgoing interface to be specified.
In the example of Router 2's default route
it would be identically save for it would also specify
gi0/2 in the command.
Luckily, once static routing is mastered in IPv4,
the same logic and flow
applies to static routes in IPv6.