EIGRPv6/OSPFv3 Redistribution

March 26th, 2010 by Daniel Herman Leave a reply »

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 1
2
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/0
2
R1(config-if)#ipv6 router ospf 1
3
R1(config)#interface Loopback0
4
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/0
2
R2(config-if)#ipv6 ospf 1 area 0

.

Next, FastEthernet0/1 which is in EIGRP AS 1

.

1
R2(config)#interface FastEthernet0/1
2
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 1
2
R2(config-router)#router-id 2.2.2.2
3
R2(config-router)#redistributed eigrp 1
4
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 1
2
R2(config-router)router-id 2.2.2.2
3
R2(config-router)redistribute ospf 1 metric 100 10 100 1 1500
4
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 1
2
R3(config-router)#router-id 3.3.3.3
3
R3(config-router)#no shutdown

.

Finally, let’s put FastEthernet0/1 and Loopback0 into EIGRP AS 1

.

1
R3(config)#interface FastEthernet0/1
2
R3(config-router)#ipv6 eigrp 1
3
R3(config)#interface Loopback0
4
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 route
02
 
03
IPv6 Routing Table - 6 entries
04
 
05
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
06
 
07
       U - Per-user Static route, M - MIPv6
08
 
09
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
10
 
11
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
12
 
13
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
14
 
15
       D - EIGRP, EX - EIGRP external
16
 
17
OE2  E567::1/128 [110/20]
18
 
19
     via FE80::207:EFF:FE1F:6FA8, FastEthernet0/0
20
 
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 ::, Loopback0
26
 
27
C   FEC0::/126 [0/0]
28
 
29
     via ::, FastEthernet0/0
30
 
31
L   FEC0::1/128 [0/0]
32
 
33
     via ::, FastEthernet0/0
34
 
35
OE2  FEC0::4/126 [110/20]
36
 
37
     via FE80::207:EFF:FE1F:6FA8, FastEthernet0/0
38
 
39
L   FF00::/8 [0/0]
40
 
41
     via ::, Null0
42

.

show ipv6 interface brief

Show information whenever an IPv6 packet is sent or received

.

Example:

01
R1#show ipv6 interface brief
02
 
03
FastEthernet0/0            [up/up]
04
 
05
    FE80::214:F2FF:FE01:6438
06
 
07
    FEC0::1
08
 
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:6438
18
 
19
    F564::1
20

.

show ipv6 ospf

Show information for the defined OSPF process

.

Example:

01
R1#show ipv6 ospf 1
02
 
03
 Routing Process "ospfv3 1" with ID 1.1.1.1
04
 
05
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
06
 
07
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
08
 
09
 LSA group pacing timer 240 secs
10
 
11
 Interface flood pacing timer 33 msecs
12
 
13
 Retransmission pacing timer 66 msecs
14
 
15
 Number of external LSA 2. Checksum Sum 0x01497B
16
 
17
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
18
 
19
 Reference bandwidth unit is 100 mbps
20
 
21
    Area BACKBONE(0)
22
 
23
        Number of interfaces in this area is 2
24
 
25
        SPF algorithm executed 4 times
26
 
27
        Number of LSA 7. Checksum Sum 0x02B045
28
 
29
        Number of DCbitless LSA 0
30
 
31
        Number of indication LSA 0
32
 
33
        Number of DoNotAge LSA 0
34
 
35
        Flood list length 0

.

show ipv6 eigrp topology

Show the IPv6 EIGRP topology table

.

Example:

01
R3#show ipv6 eigrp topology
02
 
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 Status
10
 
11
 
12
 
13
P F564::1/128, 1 successors, FD is 25605120
14
 
15
        via FE80::207:EFF:FE1F:6FA9 (25605120/25602560), FastEthernet0/1
16
 
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 128256
20
 
21
        via Connected, Loopback0
22
 
23
P FEC0::/126, 1 successors, FD is 25605120
24
 
25
        via FE80::207:EFF:FE1F:6FA9 (25605120/25602560), FastEthernet0/1
26
 
27
P FEC0::4/126, 1 successors, FD is 28160
28
 
29
        via Connected, FastEthernet0/1

.

ping ipv6

.

Ping the defined IPv6 address

.

Example:

01
R1#ping ipv6 E567::1
02
 
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 R1
02
!
03
ipv6 unicast-routing
04
!
05
interface Loopback0
06
 no ip address
07
 ipv6 address F564::1/128
08
 ipv6 ospf 1 area 0
09
!
10
interface FastEthernet0/0
11
 no ip address
12
 duplex auto
13
 speed auto
14
 ipv6 address FEC0::1/126
15
 ipv6 ospf 1 area 0
16
!
17
ipv6 router ospf 1
18
 router-id 1.1.1.1
19
 log-adjacency-changes
20
!
21
end

.
.

R2

.

01
hostname R2
02
!
03
ipv6 unicast-routing
04
!
05
interface FastEthernet0/0
06
 no ip address
07
 duplex auto
08
 speed auto
09
 ipv6 address FEC0::2/126
10
 ipv6 ospf 1 area 
11
!
12
interface FastEthernet0/1
13
 no ip address
14
 duplex auto
15
 speed auto
16
 ipv6 address FEC0::5/126
17
 ipv6 eigrp 1
18
!
19
ipv6 router eigrp 1
20
 router-id 2.2.2.2
21
 no shutdown
22
 redistribute connected metric 100 10 100 1 1500
23
 redistribute ospf 1 metric 100 10 100 1 1500
24
!
25
ipv6 router ospf 1
26
 router-id 2.2.2.2
27
 log-adjacency-changes
28
 redistribute connected
29
 redistribute eigrp 1
30
!
31
end

.
.

R3

.

01
hostname R3
02
!
03
ipv6 unicast-routing
04
!
05
interface Loopback0
06
 no ip address
07
 ipv6 address E567::1/128
08
 ipv6 eigrp 1
09
!
10
interface FastEthernet0/1
11
 no ip address
12
 duplex auto
13
 speed auto
14
 ipv6 address FEC0::6/126
15
 ipv6 eigrp 1
16
!
17
ipv6 router eigrp 1
18
 router-id 3.3.3.3
19
 no shutdown
20
!
21
end

Advertisement

Leave a Reply