- [Instructor] Now before we run out
and configure our routers and our little internetwork
let's go ahead and take a look
at a couple commands we're going to be using.
First I go to global config and have to enable IPv6
with the IPv6 unicast-routing command.
Now if you get an error when you type that in
that's because your iOS you're running
doesn't support IP version six.
Once I have that working I am going to go
to each interface and put in an IPv6 address.
Now, my prefix 2001:db8:3c4d that's the one
I always use for references.
Then I have my subnet ID, now notice I'm putting this
on f0/0, s0/0, and s0/1 of my corp router,
and that each interface just has a separate subnet.
Makes it pretty easy.
Once I configure one interface I just up arrow
and I just change the subnet ID.
And notice I just put in ::/64.
This is a way to do it.
Now if I pressed enter there, with ::
mean I don't have any host bits.
This means I'm going to be entering
or configuring an anycast address which you probably
don't want to do on there, you might.
But anyways, typically I'll put in
a :: one or two configurate and then
it makes up the other bits.
Now in this case here, I'm saying use the eui-64 format,
where we take our MAC address and insert in the middle
ff fe, or 16 bits, to make a 64 bit address.
In this case here, typically you won't do this anymore
in production because it doesn't give you any privacy.
Everyone knows who you are because you have
the same MAC address, right?
So in this case here I'm saying,
use the MAC address and insert 16 bits.
Now down here I also am going to show you
another command which is called autoconfig.
Once the corp f0/0's configured,
I don't really need to configure anything else.
Anything that connects to it I just say
hey, go out, your interface, and find
another router that's configured, find out its prefix,
make up your other 64 bits and you're good to go.
Also, if they have a default route
go ahead and insert that into your routing table.
So now this Boulder router for example
is completely configured.
It's that simple.
Now to configure IPv6 static routes and default routes.
So in this case here, I notice I have
a 2001:1234:0:1 subnet over here and I'm going to go ahead
to the corp router and see that I'm not directly connected
to it so I have to put a static route to it.
Or I'm going to put a static route to it.
The CCENT objectives are exactly this network
and exactly this routing, static and default.
So that's why I'm honing in on this.
So from global config ipv6 route 2001:1234:0:1
now it seems like installing a static route is difficult
but notice how small my address is here.
And 0:: means all zeros because
I'm putting it in a network address.
/64, now how do I get there?
By using my next hop address or I could have typed in gi0/1
as an exit interface, it doesn't matter.
So if I don't know the next router's address
I have to go over there, look at the interface,
and then copy it and then paste it in.
Copy paste is your friend with IP version six.
Now the corp router can get to the branch router
and to its remote network.
So on the branch router we'll just go ahead
and do default rout with the ipv6 route ::/0
which is all zeroes, gi0/0 which is my exit interface here
or I could have used the next hop address,
it seems a little bit more work here, right?
I need to go that interface, do a show interface,
get the address, copy it and then paste in here.
Again copy paste is your friend with the IP version six.
So either way, exit interface or next hop,
doesn't matter the results are the same.
Now again with the autoconfig here on the corp
I can go ahead and instead of configuring the branch router
with an IPv6 address here I could have just said,
once the corp was configured here,
ipv6 address autoconfig [default]
so the corp would now send me the IPv6 address
and tell us it's the default route
or "I am the way out of the autonomous system."
So let's run out and configure our routers
with IPv6 addresses and static and default routing.