- [Instructor] In the last couple of videos,
we saw how to configure BGP to route IP version four routes,
but BGP can also route for IP version six,
that's what we're going to focus on in this video.
Specifically, we're going to see
how we can route IP version six networks
using Multiprotocol BGP.
Now remember, BGP sets up a TCP session,
and we could have that session be either
an IP version four session or an IP version six session.
And in this video we're going to set up that BGP neighborship
over an IP version four session, and then in the next video
we'll do the same thing over an IP version six session.
To begin, let's enable IP V six routing
on routers R3 and ISP2, and I'll remove
the existing BGP configuration on those routers.
We'll not try to configure the whole topology for BGP,
we'll just keep it between those two routers.
So let's go to router R3,
and let's say IP V six unicast hyphen routing,
this enables a unicast routing on our router,
not enabled by default, which is interesting.
Let's create a loop back interface and we can advertise
its network, we'll say interface loop back one,
and we'll give it an IP V six address
of two zero zero zero colon one colon colon one slash 64,
and we'll go into interface gigabit zero slash three,
and we'll give it an IP V six address
of two zero zero zero colon two colon colon one
slash 64.
Let's exit from there, and let's get rid
of our existing router configuration for BGP.
I'll say no router BGP 65,001.
Now let's go to ISP2 and give a similar configuration.
So over on ISP2, let's go into global configuration mode,
and I'll enable IP V six unicast routing by saying,
IP V six space unicast hyphen routing.
Let's Crete a loop back one interface,
give it an IP V six address
of two zero zero zero colon three colon colon one slash 64,
let's go into interface gigabit zero slash one
and we'll say, IP V six address two zero zero zero
colon two colon colon two slash 64,
and let's get rid of our existing router configuration
for BGP, we'll say no router BGP 65,004.
Now let's set up BGP to route IP version six networks
using an IP version four session.
Back on router R3,
the first thing we want to do is to create a route map,
and that route map is going to be advertising
our egress interfaces IP V six address as the next hop,
IP V six address on the routes
that we're advertising out of that interface.
The reason we're doing this
is because we're advertising IP V six networks
over an IP version four session.
We would not need to do that
if we were gona advertise this over an IP V six session.
But in this video, we're doing an IP V four session,
so let's create the route map.
I'll say route hyphen map, and I'll give it a name
of IP V six hyphen next hyphen HOP.
And I'm going to set the IP V six next hop address
to two zero zero zero colon two colon colon one which is us,
that's our interface.
We'll exit.
And now we're going to begin configuring Multiprotocol BGP,
much like we previously configured BGP
to support the routing of IP version four networks.
I'm going to say router BGP,
give my autonomous system number of 65,001,
and I'll point to my neighbor,
which is 198.51.100.6, again, that's ISP2,
and it's autonomous system is remote AS is 65,004,
here's where things start to differ though,
we create a couple of address families,
one for IP version four and one for IP version six,
much like we created to address families
for OSPF version three.
I'll say address hyphen family, IP V four,
and I'll specify a network to advertise 10.1.1.0
with a mask of 255.255.255.0.
Now let's create an IP V six address family,
and we'll advertise the network
of two zero zero zero colon one colon colon slash 64,
and when we configure the IP version four address family,
our specified neighbor was automatically activated.
However, we have to manually do that
for the IP V six address family.
And also we want to associate
our previously configured route map,
so ISP2 is going to know how to get back to us.
Here's what I mean, we're going to say
within IP V six address family configuration mode,
here's how we activate our neighbor.
I'll say neighbor 198.51.100.6, activate.
And let's apply the route map to that neighbor.
So we'll say neighbor, give the IP address
of that incoming interface on ISP2,
and I'll say route hyphen map,
and we called it IP V six hyphen next hyphen hop,
and we want to apply that in the outbound direction.
In other words, we want to send that next top information
along with our advertisements to ISP2.
So we'll say route, and we're done.
Now we need to give a sort of
a mirrored configuration on ISP2.
On ISP2 we'll go into global configuration mode
and we'll create that route map,
we'll say route map IP V six hyphen next hyphen hop,
and I'll set the IP V six next hop address to us,
two zero zero zero colon two colon colon two.
Now, let's create that BGP routing process
in the address families that go along with it.
I'll say router BGP, we're in autonomous system 65,004,
we're going to point to R3 is our neighbor.
And notice I'm not giving this
in address family configuration mode.
By giving the neighbor statement here,
it gets inherited by our address families.
So we'll say neighbor 198.51.100.5,
and it's in a remote autonomous system of 65,001.
Now let's create our address families.
We'll say address,
oh, notice we have an adjacency that just came up,
we'll say address hyphen family IP version four,
and I'll say I want to advertise the network
of 203.0.1.113.4 with a mask
of 255.255.255.252,
that's the network by the way
between the internet router and ISP2.
And let's move over to our IP V six address family now.
We'll create that.
Remember we have to activate our neighbor,
but first I'm going to advertise the network
of my loop back interface,
I'll say network two zero zero zero colon three
colon colon slash 64, let's activate our neighbor,
I'll say neighbor 198.51.100.5, activate,
and let's apply the route map to that neighbor.
I'll say route hyphen map IP V six hyphen next hyphen hop.
We'll apply that in the outbound direction, and we are done.
Now let's do some verification for both our IP version four
and our IP version six networks.
First, as long as we're here on ISP2, let's say,
show IP route.
Have we learned anything via BGP?
We have.
We've learned about this 10.1.1.0 network.
Have we learned any IP version six routes?
Well, let's take a look.
Let's do a show IP V six route command,
and I've learned about via BGP,
if that's what the big code is telling us.
I've learned about two zero zero zero colon colon one
colon colon slash 64, that's the network
to which the loop back one interface on R3 belongs.
So we are successfully advertising
both IP version four and IP version six networks.
If I do a show IP BGP command, we can see
the networks that are known to the BGP typology table,
and if we want to see the IP version six networks
that are known to BGP,
we'll do a show BGP IP V six unicast command,
and that shows the two IP version six networks
that are known to BGP.
Now again, in this video, we set up that session
between R3 and ISP2 using an IP version four session.
In our next video, we're going to take a look at doing
the same thing on this topology,
but we're going to be using an IP version six session.