It's always cool when there's more than one way
to do something.
Well, such is the case with VRFs.
If we want to include the ability to do IPv6 with VRFs,
we are going to use a slightly different syntax
for implementing the VRFs and then
the concept of address families within the VRF definition.
I'm going to walk you through that right now in this video,
and it's also a hands-on lab.
So if you're logged on from a computer
to the CBT Nuggets website, click
on the link for the Virtual Lab and follow along with me. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
on the link for the Virtual Lab and follow along with me.
All right.
So here in the lab, the first thing we're going to do
is go to R4, which is the correct router.
Oh, my gosh.
No fun when I go the wrong router.
It's like configuring, oh, it's the wrong router.
R4 is our router.
And we'll do a show vrf just to make sure we
don't have any to start with.
Fantastic.
And we're going to go into Configuration mode.
And we'll do vrf definition.
Now, this is different than just the IPv4.
In the IPv4, we did the ip vrf in the name.
For address families, it's vrf definition,
and then you give it a name.
So we'll create green. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So we'll create green.
And then inside of this vrf definition configuration,
what we'll do is we can specify the address families
that we want to support.
The key here is you put in address-family, a question
mark.
This is port ipv4.
Type in ipv4.
And then you press Enter, and boom,
this VRF is now ready to support ipv4.
And if we do a question mark here in the address family
configuration mode for IPv4, there's
a whole bunch of options that we might
need for things like MPLS Layer 3 VPNs and other options
that we might need to add into a VRF under this vrf definition. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
that we might need to add into a VRF under this vrf definition.
So if we type in Exit, we're still on the vrf definition,
and now we can go into address-family or ipv6, press
Enter.
And then we can do commands here that would be related
to IPv6 inside of this VRF.
So for our discussion and for VRF light,
all we really need is the vrf definition to exist.
And this is how you can create it with the vrf definition
option, as opposed to just the IPv4 only of ip vrf.
So let's type in Exit and Exit.
Now we're back in global config. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Now we're back in global config.
Let's create a vrf definition for purple.
So it's vrf definition, and we'll call it purple.
And we'll activate both address families, full address-family
for ipv4 and Exit.
You could actually just type in address-family ipv6
would jump you over to that section.
So either way is great.
So we'll do an address-family ipv6.
So now we if do a show vrf and press Enter, check this out.
It's now showing we have two VRFs, green and purple, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
It's now showing we have two VRFs, green and purple,
and check this out.
They support protocols IPv4 and IPv6.
Now, we didn't do a lot of detail.
We didn't do any detailed configuration
inside of those address families,
but they are defined because we typed in the command.
Also, we have a problem.
We have no interfaces associated with either one.
So let's go fix that.
We'll do a show ip interface brief,
because we're going to need to put those IP addresses back in.
Once we assign the VRFs, we'll go to interface.
So we'll go to config int, interface gig 1/0.
And here, because we're using vrf definitions, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And here, because we're using vrf definitions,
if we do a ip vrf forwarding, which
is the old way we did it with--
I should say IPv4 only, and we say green and pressed Enter,
it's going to say, oh, you did a vrf definition,
so you need to use the vrf forwarding command, not
ip vrf forwarding.
So that's just a reminder that based on the way
we set up the VRF, there is a specific way
to implement the VRF ownership for an interface, which
is vrf forwarding, not ip vrf forwarding. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
is vrf forwarding, not ip vrf forwarding.
And we'll type in green.
And it's warned us that IPv4 has been disabled.
And if it had IPv6 on it, because that vrf definition has
the address families for IPv4 and IPv6,
that would be wiped out too.
And it would also warn you here.
All right.
So let's put in an IP address again.
And that is the IP address on gig 1/0, which is this bad boy.
Boom.
And the mask is this.
Great.
And let's go to interface gig 2/0,
and we'll assign that to vrf purple
with vrf forwarding for purple. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
with vrf forwarding for purple.
And it wiped out the IP address.
Oh, so it's very possible that I had an IPv6 address
on that interface.
And that's why it gave us the warning
about IPv6 being wiped out.
In this lab, I'm only concerned about IPv4.
So I'm going to put back the IPv4 address, which
is this guy.
IP address.
And we'll just paste that in.
All right.
And now we do a show ip route. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And now we do a show ip route.
We have some routes we've learned
from R3 and internal terror network,
but the 172s, those are gone, because those aren't part
of the default routing table.
Those are now part of the respective VRFs,
just like they were in the previous labs.
So if we do a show ip route for vrf green,
we can see those routes or that route.
And if we do a show ip route for vrf purple, and pressed Enter,
it shows those respective routes. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
it shows those respective routes.
So here's what I'd like to do in the next video.
In the next video, I'd like to share with you a couple
examples of implementing a dynamic routing protocol that's
specific to a VRF.
So we can have a VRF for green that's
going to cooperate with the customer edge.
We can have a VRF related to routing protocol
for purple that will interact with the customer
off that interface.
And that way, anything we learn via that routing protocol
and all those interfaces will remain as part of that VRF.
So that's coming up in the next video and hands-on lab. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So that's coming up in the next video and hands-on lab.
And I'll see you there in just a moment.
Meanwhile, I hope this has been informative for you,
and I'd like to thank you for viewing.