Redistribution for IPv6 is pretty much the same as for IPv4, the same rules apply. I want to show you an example of IPv6 redistribution between RIPNG and OSPFv3. Here’s the topology that we will use:
In the middle we have router R2 that will perform the redistribution between RIPNG and OSPFv3. R1 and R3 have a loopback interface that will be advertised.
R1(config)#ipv6 unicast-routing
R1(config)#interface loopback 0
R1(config-if)#ipv6 address 2001::1/128
R1(config-if)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ipv6 enable
R2(config)#ipv6 unicast-routing
R2(config)#interface fastEthernet 0/0
R2(config-if)#ipv6 enable
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 enable
R3(config)#ipv6 unicast-routing
R3(config)#interface loopback 0
R3(config-if)#ipv6 address 2001::3/128
R3(config-if)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 enable
This is what we’ll start with. I’m using the loopbacks to have something to advertise in RIPNG or OSPFv3. On the FastEthernet interfaces I only need a link-local IPv6 address.
R2(config)#ipv6 router rip RIPNG
R2(config-rtr)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ipv6 rip RIPNG enable
R1(config)#ipv6 router rip RIPNG
R1(config-rtr)#exit
R1(config)#interface loopback 0
R1(config-if)#ipv6 rip RIPNG enable
R1(config-if)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ipv6 rip RIPNG enable
I’m configuring RIPNG on R2 and R1 to get things going.
R3(config)#ipv6 router ospf 1
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#interface loopback 0
R3(config-if)#ipv6 ospf 1 area 0
R2(config)#ipv6 router ospf 1
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 ospf 1 area 0
And this is what we need on R3 and R2 to get OSPFv3 working.
R2(config)#ipv6 router ospf 1
R2(config-rtr)#redistribute rip RIPNG
R2(config-rtr)#exit
R2(config)#ipv6 router rip RIPNG
R2(config-rtr)#redistribute ospf 1 metric 1
We use the redistribute command to exchange routing information between OSPFv3 and RIPNG. This is all you have to do to redistribute everything.
R1#show ipv6 route rip
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R 2001::3/128 [120/2]
via FE80::CE04:19FF:FE67:0, FastEthernet0/0
R3#show ipv6 route ospf
IPv6 Routing Table - 4 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
OE2 2001::1/128 [110/20]
via FE80::CE04:19FF:FE67:10, FastEthernet0/0
We can verify our configuration by looking at the routing tables. If you want you can be a bit more specific with redistribution using route-maps:
Thanks for the labs. It is very usefull.
I have a suggestion for the last rule in route-map config:
Cryo(config-route-map)#match ipv6 address prefix-list MYPREFIXES (instead of “ONLYTHESE”)
Thanks Brutus, just fixed it!
Hi,
on R2, since the route map is the more specific prefixes to be redistributed, does it need to add the metric option or it will inherit from the command above it?
Hello Samer
You are correct, you do not need to add the metric option with the route map because it is already configured in the command above. If you look at the RIPNG config for R2, you’ll see this:
//cdn-forum.networklessons.com/uploads/default/original/2X/5/54fbdf641e9c243fc147bd3536d0766160566e03.png
Since the first command is there with the metric of 1, this is what will be used. It is important to keep this in mind because, by default, it is a metric of 20 that is redistributed from OSPF, a metric that is beyond the maximum of 16 for RIP, so if this wa
... Continue reading in our forumHello Rene,
I can’t seem to get either OSPv3 or RIPng to redistribute the subnets for the links between the routers. Do you have any idea why it’s not happening?
Thank you,
Nonso