Challenge Lab #2 – EIGRPv6/OSPFv3 Redistribution
Overview:
Coke and Pepsi are finally merging after so many decades once people realized that the separation in drinks was stupid, they taste exactly the same. Anyway, Coke utilizes an EIGRP based IPv6 network while Pepsi chose to go with IPv6 and OSPF because well, the coin landed on tails. You have been tasked with establishing connectivity between these two corporations. Luckily, we found a router in a janitor’s closet that randomly happened to be connecting the two companies, so that made it easy.
Technologies:
EIGRPv6:
EIGRPv6 is the IPv6 flavor of EIGRP that Cisco has developed. It is remarkably similar to EIGRP for IPv4, the only difference is in how it is enabled on a per interface basis. Be sure to remember that you do need to specify a seed metric when redistributing. You must define a value for the five metrics that EIGRP uses which are bandwidth, delay, reliability, load, and MTU. Also, there is no more “network” command. Instead, you would type “ipv6 eigrp 1” in the interface configuration mode in order to enable EIGRP in AS 1. The other important thing to note is that there is a shutdown command in the router configuration mode for EIGRP in this version, so be sure to do a no shutdown to enable the routing protocol.
OSPFv3:
OSPFv3 is the open standard IPv6 version of OSPF. Like EIGRP, it is quite similar to the prior version of OSPF. It still utilizes the same metric, which is “cost”. The command to enable OSPF on a per interface basis is “ipv6 ospf 1 area 0” in the interface configuration mode in order to enable OSPF process number 1 in area 0 for example. You will also have to manually define the router-id since it still uses the old IPv4 format rather than the new IPv6 address format. If you turn on debugging for R1, you will see it receiving the type 5 LSAs which is the external LSA type.
Redistribution:
Redistribution is also very similar to IPv4, however there is one very important and notable difference. The implicit connected interfaces in each routing protocol are no longer redistributed; that means that the interfaces and networks that you physically have configured for routing on the router will not be redistributed by default anymore. In order to accomplish this you have to use “redistribute connected”, possibly with a route-map if you don’t want all of the connected interfaces to be redistributed.
Tasks:
**You may need to create two VLANs and some trunks depending on how you have your environment physically cabled**
R1:
- Enable IPv6 unicast routing
- Configure OSPFv3 process 1 with a router-id of 1.1.1.1
- Configure both FastEthernet0/0 and Loopback0 and enable OSPF on them for area 0
R2
- Enable IPv6 unicast routing
- Configure OSPFv3 with a router-id of 2.2.2.2
- Configure EIGRP with a router-id of 2.2.2.2
- Configure FastEthernet0/0 and enable OSPFv3 on it in area 0
- Configure FastEthernet0/1 and enable EIGRPv6 on it in AS 1
- In OSPFv3 process 1 configuration mode enable redistribution for EIGRP AS 1 and enable redistribution for connected interfaces.
- In EIGRPv6 configuration mode enable redistribution for OSPF process 1 and connected routes. Be sure to define the metric property for each of them otherwise they will not be entered into the IPv6 routing tables. Issue a “no shutdown” command to enable the protocol.
R3
- Enable IPv6 unicast routing
- Configure EIGRPv6 AS 1 with a router-id of 3.3.3.3 and issue a “no shutdown” command
- Configure both FastEthernet0/1 and Loopback0, then enable EIGRP on each of them in AS 1.
Logical Topology
Walkthrough
R1
Before we can do anything, we need to enable IPv6 routing on the router. By default, IPv6 routing is disabled. This command will enable unicast routing for IPv6. You should note that there is an entirely different command for routing multicast packets, which is “ipv6 multicast-routing”.
1 R1(config)#ipv6 unicast-routing
Next, we will set the router id that OSPF will use on this router. It must be manually set because it still uses a 32bit notation, so it will not automatically take one of the set IPv6 addresses. If you have an IPv4 interface configured, it will still pull that address and use it as its router id.
1 R1(config)#ipv6 router ospf 12 R1(config-router)#router-id 1.1.1.1
Now let’s start configuring the interfaces. We’ll begin with FastEthernet0/0 which will be in OSPF Area 0. Then, we will also put Loopback0 into Area 0.
1 R1(config)#interface FastEthernet0/02 R1(config-if)#ipv6 router ospf 13 R1(config)#interface Loopback04 R1(config-if)#ipv6 router ospf 1
That’s all we need on R1.
R2
Again, we first need to enable IPv6 routing on the router
1 R2(config)#ipv6 unicast-routing
Next, let’s configure the two FastEthernet interfaces. We’ll start with FastEthernet0/0 which is in OSPF Area 0.
1 R2(config)#interface FastEthernet0/02 R2(config-if)#ipv6 ospf 1 area 0
Next, FastEthernet0/1 which is in EIGRP AS 1
1 R2(config)#interface FastEthernet0/12 R2(config-if)ipv6 eigrp 1
Now let’s configure the router id of OSPF and redistribute EIGRP and connected routes. In IPv6, there is no implicit redistribution of connected routes in a different protocol unlike in IPv4.
1 R2(config)#ipv6 router ospf 12 R2(config-router)#router-id 2.2.2.23 R2(config-router)#redistributed eigrp 14 R2(config-router)#redistribute connected
Now we will do the same for EIGRP AS 1. Remember that a seed metric must be defined for redistributed routes, otherwise they will not be put in as active EIGRP routes.
1 R2(config)#ipv6 eigrp 12 R2(config-router)router-id 2.2.2.23 R2(config-router)redistribute ospf 1 metric 100 10 100 1 15004 R2(config-router)redistribute connected metric 100 10 100 1 1500
This next step is new to IPv6 routing protocols. There is now a shutdown command, just like in interface configuration mode. OSPF defaults to being “no shutdown” but the same doesn’t hold true for EIGRP, so we must enable it.
1 R2(config-router)#no shutdown
Now we’re done with R2.
R3
Again, we must first enable IPv6 routing.
1 R3(config)#ipv6 unicast-routing
Now let’s set up the EIGRP router id and enable the protocol.
1 R3(config)#ipv6 router eigrp 12 R3(config-router)#router-id 3.3.3.33 R3(config-router)#no shutdown
Finally, let’s put FastEthernet0/1 and Loopback0 into EIGRP AS 1
1 R3(config)#interface FastEthernet0/12 R3(config-router)#ipv6 eigrp 13 R3(config)#interface Loopback04 R3(config-router)#ipv6 eigrp 1
And we’re done!
Testing and Debugging
show ipv6 route
Show the IPv6 routing table
Example:
01 R1#show ipv6 route02 03 IPv6 Routing Table - 6 entries04 05 Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP06 07 U - Per-user Static route, M - MIPv608 09 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary10 11 O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 212 13 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 214 15 D - EIGRP, EX - EIGRP external16 17 OE2 E567::1/128 [110/20]18 19 via FE80::207:EFF:FE1F:6FA8, FastEthernet0/020 21 (Here’s an example of an External Type 2 OSPF route. That means that it is a redistributed route. Type 2 routes generally only reflect the cost from THIS router to the destination whereas Type 1 routes would reflect the cost of the full path.)22 23 LC F564::1/128 [0/0]24 25 via ::, Loopback026 27 C FEC0::/126 [0/0]28 29 via ::, FastEthernet0/030 31 L FEC0::1/128 [0/0]32 33 via ::, FastEthernet0/034 35 OE2 FEC0::4/126 [110/20]36 37 via FE80::207:EFF:FE1F:6FA8, FastEthernet0/038 39 L FF00::/8 [0/0]40 41 via ::, Null042
show ipv6 interface brief
Show information whenever an IPv6 packet is sent or received
Example:
01 R1#show ipv6 interface brief02 03 FastEthernet0/0 [up/up]04 05 FE80::214:F2FF:FE01:643806 07 FEC0::108 09 FastEthernet0/1 [administratively down/down]10 11 Serial0/0/0 [administratively down/down]12 13 Serial0/0/1 [administratively down/down]14 15 Loopback0 [up/up]16 17 FE80::214:F2FF:FE01:643818 19 F564::120
show ipv6 ospf
Show information for the defined OSPF process
Example:
01 R1#show ipv6 ospf 102 03 Routing Process "ospfv3 1" with ID 1.1.1.104 05 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs06 07 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs08 09 LSA group pacing timer 240 secs10 11 Interface flood pacing timer 33 msecs12 13 Retransmission pacing timer 66 msecs14 15 Number of external LSA 2. Checksum Sum 0x01497B16 17 Number of areas in this router is 1. 1 normal 0 stub 0 nssa18 19 Reference bandwidth unit is 100 mbps20 21 Area BACKBONE(0)22 23 Number of interfaces in this area is 224 25 SPF algorithm executed 4 times26 27 Number of LSA 7. Checksum Sum 0x02B04528 29 Number of DCbitless LSA 030 31 Number of indication LSA 032 33 Number of DoNotAge LSA 034 35 Flood list length 0
show ipv6 eigrp topology
Show the IPv6 EIGRP topology table
Example:
01 R3#show ipv6 eigrp topology02 03 IPv6-EIGRP Topology Table for AS(1)/ID(3.3.3.3)04 05 06 07 Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,08 09 r - reply Status, s - sia Status10 11 12 13 P F564::1/128, 1 successors, FD is 2560512014 15 via FE80::207:EFF:FE1F:6FA9 (25605120/25602560), FastEthernet0/116 17 (Here is the route to the Loopback interface on R1. The advertised distance will change with the metrics that we specified in the redistribution.)18 19 P E567::1/128, 1 successors, FD is 12825620 21 via Connected, Loopback022 23 P FEC0::/126, 1 successors, FD is 2560512024 25 via FE80::207:EFF:FE1F:6FA9 (25605120/25602560), FastEthernet0/126 27 P FEC0::4/126, 1 successors, FD is 2816028 29 via Connected, FastEthernet0/1
ping ipv6
Ping the defined IPv6 address
Example:
01 R1#ping ipv6 E567::102 03 04 05 Type escape sequence to abort.06 07 Sending 5, 100-byte ICMP Echos to E567::1, timeout is 2 seconds:08 09 !!!!!10 11 Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/4 ms
Basically you can take almost any debug or show command from IPv4, change “ip” to “ipv6” and it will show you the IPv6 related information.
Solutions
R1
01 hostname R102 !03 ipv6 unicast-routing04 !05 interface Loopback006 no ip address07 ipv6 address F564::1/12808 ipv6 ospf 1 area 009 !10 interface FastEthernet0/011 no ip address12 duplex auto13 speed auto14 ipv6 address FEC0::1/12615 ipv6 ospf 1 area 016 !17 ipv6 router ospf 118 router-id 1.1.1.119 log-adjacency-changes20 !21 end
R2
01 hostname R202 !03 ipv6 unicast-routing04 !05 interface FastEthernet0/006 no ip address07 duplex auto08 speed auto09 ipv6 address FEC0::2/12610 ipv6 ospf 1 area11 !12 interface FastEthernet0/113 no ip address14 duplex auto15 speed auto16 ipv6 address FEC0::5/12617 ipv6 eigrp 118 !19 ipv6 router eigrp 120 router-id 2.2.2.221 no shutdown22 redistribute connected metric 100 10 100 1 150023 redistribute ospf 1 metric 100 10 100 1 150024 !25 ipv6 router ospf 126 router-id 2.2.2.227 log-adjacency-changes28 redistribute connected29 redistribute eigrp 130 !31 end
R3
01 hostname R302 !03 ipv6 unicast-routing04 !05 interface Loopback006 no ip address07 ipv6 address E567::1/12808 ipv6 eigrp 109 !10 interface FastEthernet0/111 no ip address12 duplex auto13 speed auto14 ipv6 address FEC0::6/12615 ipv6 eigrp 116 !17 ipv6 router eigrp 118 router-id 3.3.3.319 no shutdown20 !21 end
