- [Instructor] In this video we're going to take a look at
the configuration of OSPF version three
using the address families approach.
Now in our previous video
we took a look at the configuration of OSPF version three
using a traditional approach.
With a traditional approach, we had OSPFv3 and OSPFv2
configured in parallel.
OSPF version two was routing just for IPv4 networks,
and OSPF version three was routing just for IPv6 networks.
But with this address families approach,
we can use a single OSPF version three process
to route for both IPv4 and IPv6.
The way it works is
under that single process configuration mode,
we're going to configure an address family for IPv4
and another address family for IPv6.
Now, this is similar to what we saw with the EIGRP.
The EIGRP had the named configuration approach.
Well, this is similar but different.
Here's why it's different.
With the named EIGRP approach,
we could configure everything
under that EIGRP router configuration mode.
We did not have to go into the interfaces.
Here with OSPFv3 using address families,
we're still going to have to go into the interfaces.
Now I'm just going to use the topology
that we left off with in the previous video.
So right now I still have OSPF version two
and OSPF version three with the traditional configuration.
I've got those configured on each of our router.
So I'm going to begin
by just getting rid of that configuration.
I'll say, "No, router OSPF process ID one."
That's for OSPF version two.
And I'll say, "No IPv6 router, OSPF process ID one."
That's for OSPF version three.
I'm just going to do that on all of our routers really quickly.
Let's go over to R2
and we'll say "No router OSPF1, no IPv6 router OSPF1."
And finally, let's go over to R3
and we'll say, "No router OSPF1, no IPv6 router OSPF1."
All right, we're now ready to configure OSPF version three
using the address families configuration approach.
Now, like named EIGRP,
we could specify specific configuration commands
for each address family,
but if there's something that needs to be applied
to both address families,
such as a router ID, a passive interface,
we can do that in router configuration mode,
and it's going to be inherited down
into our address families.
Let me show you what I mean.
Let's go into global configuration mode.
And here's how we turn on OSPF version three
for address families.
I'll say, "Router not IPv6 router, but router, OSPFv3,"
and we'll give a process ID of one.
And I'm going to set the router ID here
and this is going to be inherited down
into both of my address families.
I'll say, "Router-Id 1.1.1.1"
And if you notice on R1 gigabit 0/1
that's a great candidate to be a passive interface.
And I want it to be a passive interface
for both IPv4 and IPv6.
So I'm going to configure it here
and it's going to be inherited down into both address families.
We'll say, "Passive-interface gigabit 0/1."
Now let's create our address families.
I'll say, "Address-family IPv4."
There's nothing I absolutely have to do here.
So I'm just going to back right out.
And I'm going to say, "Address-family" for IPv6.
Now, unlike named EIGRP, I do have to go into the interfaces
to tell the interfaces to participate in this process.
So let's go into interface gigabit 0/1
and I'm going to say, "OSPFv3 process ID 1."
I want this interface to participate
in IP version four routing and IP version six routing.
So I need to give those commands separate.
First I'll say "IPv4, you're in area zero."
And then I'll say, "For IPv6, for process ID one,
you're in area zero also."
Now let's go into interface gigabit 0/2
and I'll say, "OSPFv3 for process ID one IPv4 area zero
and IPv6, area zero."
And we're done with our configuration on R1.
Let's move over to R2.
Again, this is an ABR so we have to be careful
to put the right interfaces in the right areas.
Let's say, "Router OSPFv3 1 process ID one."
To start the process, I'll give this a router ID of 2.2.2.2
that will be inherited by both of our address families.
And there is no opportunity for a passive interface here.
So let's create those address families
I'll say, "Address-family IPv4."
And we'll say, "Address-family" for IPv6.
Now let's go into our interfaces
first interface gigabit 0/1 which belongs to area zero.
And we'll say "OSPFv3, for process ID one,
IP version four routing, you're in area zero.
IPv6 routing, you're also in area zero."
And notice we had neighbor ships come up
for both IPv4 and IPv6, excellent.
Now let's go into our other interface on R2.
We'll say, "Interface gigabit 0/2."
And it will say, "OSPFv3 process ID 1, IPv4 routing."
But this time we're in area one.
And we also want to set up IPv6 routing in area one,
and we're done with our configuration on R2.
One router to go it's R3, very similar configuration.
Router OSPFv3 process ID 1,
even though they don't have to match,
I'll say, "Router, Id 3.3.3.3"
And that will be inherited by my address families.
I do have an opportunity to configure gigabit 0/2
as a passive interface
because it's not communicating
with any other OSPF speaking devices out there.
So there's no need to send or receive OSPF packets,
let's say, passive-interface, gigabit 0/2.
Now we create our address families.
Address-family IPv4 and address-family IPv6.
Now let's go into our interfaces.
Interface gigabit 0/1.
Both of these interfaces are an area one by the way.
So we'll say, "OSPFv3 process ID 1
IPv4 routing, your in area one
IPv6 routing, you're also in area one."
And notice we had adjacencies come up
for both IPv4 and IPv6.
So all of our adjacencies are already established.
That's excellent.
Let's go into interface gigabit 0/2.
And even though it's a passive interface,
I still want to participate in OSPF.
I still want to advertise its networks in other words,
both for IPv4 and IPv6.
And to do that I'll say, "OSPFv3 process ID 1
IPv4 routing, you're in area one
and IPv6 routing, you're also an area one."
And we're done with our configuration.
Now let's do some verification.
Let's do a show OSPFv3 neighbor command.
And this is going to give us output
for both of our address families.
We see that we've got the address family
for IPv4 and for IPv6,
and it shows us both in the same output.
Makes it a lot more convenient.
And we do see the router ID of our neighbor
that we configured.
Let's do a show OSPFv3 interface brief command
and we can see what interfaces are participating
in OSPF version three,
what address family they're a member of
is that IPv4 is that IPv6?
And we can see if we have any neighbors established.
We only have neighbors of gigabit 0/1.
Let's take a look at the routes known to OSPFv3.
Let's look at its RIB, its routing information base.
We can do a show OSPFv3 RIB.
And it gives us the routes known to OSPF
for both address families.
Remembering that the greater than sign
that indicates routes that have been installed
in the global RIB, which is the IP routing table.
Let's take a look at the OSPF database.
Here we'll do a show OSPFv3 database,
and we see a database for IPv4 and for IPv6,
and just to make sure that we do see all of our routes,
let's do a show IPv6 route command.
And we do see our IP version six routes.
The OI indicating OSPF inter area
so we learn those from a different area.
We can also do a show IP route to see the IPv4 routes.
And I've learned a couple of IPv4 routes
learned via OSPF and the IA indicates inter area.
So we've learned those from area zero.
And that's a look at how to configure OSPF version three
using the address families approach.