1 00:00:00,000 --> 00:00:03,318 [AUDIO LOGO] 2 00:00:03,318 --> 00:00:07,120 3 00:00:07,120 --> 00:00:10,240 So if we do make it through cost with a tie 4 00:00:10,240 --> 00:00:14,380 between multiple routes, we do have a few more tiebreakers 5 00:00:14,380 --> 00:00:16,129 that we have to deal with. 6 00:00:16,129 --> 00:00:18,890 Now, these don't happen all that often, 7 00:00:18,890 --> 00:00:21,320 but it is definitely be worth exploring. 8 00:00:21,320 --> 00:00:24,700 So we're going to actually look at two of those in this video 9 00:00:24,700 --> 00:00:27,770 because they're both relatively small topics. 10 00:00:27,770 --> 00:00:30,610 The first is the forwarding metric. 11 00:00:30,610 --> 00:00:33,040 And we'll see that that's going to work 12 00:00:33,040 --> 00:00:36,280 sort of like a type 1 external, and we're 13 00:00:36,280 --> 00:00:37,900 going to prefer the lowest. 14 00:00:37,900 --> 00:00:41,410 And then we're going to take a look at the forwarding address. 15 00:00:41,410 --> 00:00:43,300 This is a very simple rule. 16 00:00:43,300 --> 00:00:46,870 We actually prefer routes that do not have a forwarding 17 00:00:46,870 --> 00:00:49,540 address over those that do. 18 00:00:49,540 --> 00:00:52,850 Now, in order for us to really see what's going on here, 19 00:00:52,850 --> 00:00:54,310 we are going to have to start off 20 00:00:54,310 --> 00:00:58,240 with two external routes that are currently a tie. 21 00:00:58,240 --> 00:01:00,400 They're making it all the way through cost, 22 00:01:00,400 --> 00:01:02,840 and we're currently using both of them. 23 00:01:02,840 --> 00:01:04,840 So let's jump to our topology just 24 00:01:04,840 --> 00:01:06,940 to get a quick look at what's going on. 25 00:01:06,940 --> 00:01:10,520 And then we'll see you on the command line. 26 00:01:10,520 --> 00:01:14,290 So for this demonstration, we have a loopback interface 27 00:01:14,290 --> 00:01:18,760 on router 10 as well as on router 9, 28 00:01:18,760 --> 00:01:26,270 both of these having the /24 address 100.100.100.0/24. 29 00:01:26,270 --> 00:01:28,000 So they're both going to be advertising 30 00:01:28,000 --> 00:01:29,950 essentially the same route. 31 00:01:29,950 --> 00:01:33,100 Now, in the case of router 10, router 10 32 00:01:33,100 --> 00:01:37,810 is doing a redistribution of connected into OSPF. 33 00:01:37,810 --> 00:01:41,890 And in the case of router 9, since this is actually 34 00:01:41,890 --> 00:01:45,580 running EIGRP 100 up here, it's actually 35 00:01:45,580 --> 00:01:48,520 router 2 that's doing the redistribution. 36 00:01:48,520 --> 00:01:52,840 So if we were to go right now and look specifically 37 00:01:52,840 --> 00:01:56,890 at router 7 at this route, what we're going to see 38 00:01:56,890 --> 00:02:01,750 is two equal routes because these gigabit links in here 39 00:02:01,750 --> 00:02:04,060 are going to be counting as the same, 40 00:02:04,060 --> 00:02:07,360 as well as this one and this one. 41 00:02:07,360 --> 00:02:10,460 So with these links being equal on each side, 42 00:02:10,460 --> 00:02:13,880 we're going to start off with two equal-cost routes. 43 00:02:13,880 --> 00:02:16,300 So that's how this is going to start. 44 00:02:16,300 --> 00:02:19,030 Then we're going to change the forwarding 45 00:02:19,030 --> 00:02:21,770 metric on one of these. 46 00:02:21,770 --> 00:02:26,260 So essentially, we'll change the cost on one of these interfaces 47 00:02:26,260 --> 00:02:29,420 to affect which way we want our traffic to go. 48 00:02:29,420 --> 00:02:32,210 And then of course, we'll take a look at what happens. 49 00:02:32,210 --> 00:02:36,220 We will then set it back to a tie, essentially start over, 50 00:02:36,220 --> 00:02:39,490 and then we'll change the forwarding address. 51 00:02:39,490 --> 00:02:41,590 Now, in this case, we'll be specifically 52 00:02:41,590 --> 00:02:45,610 having router 2 set the forwarding address when 53 00:02:45,610 --> 00:02:47,500 it does its redistribution over here 54 00:02:47,500 --> 00:02:50,320 because that's going to be the easiest place to do it. 55 00:02:50,320 --> 00:02:51,760 And then we'll see that it begins 56 00:02:51,760 --> 00:02:55,310 to prefer the route that doesn't have the forwarding address. 57 00:02:55,310 --> 00:02:58,690 So as usual let's start off on router 7 looking 58 00:02:58,690 --> 00:03:01,670 at our existing equal routes. 59 00:03:01,670 --> 00:03:06,580 So we'll start with our show ip route for the 100.100.100.0 60 00:03:06,580 --> 00:03:07,580 network. 61 00:03:07,580 --> 00:03:11,530 And we see that it is currently doing equal-cost multipathing, 62 00:03:11,530 --> 00:03:16,570 headed towards our ASPR of router 10 versus router 2. 63 00:03:16,570 --> 00:03:18,460 So currently load sharing. 64 00:03:18,460 --> 00:03:21,190 Also, notice that this is being listed 65 00:03:21,190 --> 00:03:24,520 with a forward metric of 2000. 66 00:03:24,520 --> 00:03:27,940 If we say show ip ospf border, we 67 00:03:27,940 --> 00:03:30,580 can see that the cost to get to both router 68 00:03:30,580 --> 00:03:37,330 2 and 10, our ASBRs in this case, are both a cost of 2000. 69 00:03:37,330 --> 00:03:40,040 That's where the forwarding metric comes from. 70 00:03:40,040 --> 00:03:41,680 So this is what we're going to need 71 00:03:41,680 --> 00:03:43,810 to change to break this tie. 72 00:03:43,810 --> 00:03:46,540 Let's go ahead and change it on router 6, 73 00:03:46,540 --> 00:03:50,770 and that will cause us to prefer the path to router 2. 74 00:03:50,770 --> 00:03:55,000 So on router 6, we'll simply go into its Gigabit 2 interface. 75 00:03:55,000 --> 00:03:56,710 And we'll change the cost. 76 00:03:56,710 --> 00:04:00,430 We'll just make it 1001 since it's defaulting to 1000. 77 00:04:00,430 --> 00:04:02,410 All we have to do is break the tie. 78 00:04:02,410 --> 00:04:04,330 Let's go back over to router 7. 79 00:04:04,330 --> 00:04:06,350 We can look at the borders again. 80 00:04:06,350 --> 00:04:08,350 And we can see that to get to router 10 81 00:04:08,350 --> 00:04:11,180 is now 2001 as expected. 82 00:04:11,180 --> 00:04:13,300 And if we look at our route, we'll 83 00:04:13,300 --> 00:04:16,600 see that we're no longer doing equal-cost multipathing thing. 84 00:04:16,600 --> 00:04:19,750 We're instead preferring to go to router 1 85 00:04:19,750 --> 00:04:22,900 towards router 2 for our path. 86 00:04:22,900 --> 00:04:26,770 And again, this is coming down completely to the forwarding 87 00:04:26,770 --> 00:04:28,360 metric being lower. 88 00:04:28,360 --> 00:04:31,900 So hopefully, you can see here that by looking 89 00:04:31,900 --> 00:04:35,800 at the forwarding metric for an external type 2, 90 00:04:35,800 --> 00:04:40,180 this is actually acting very similar to the behavior 91 00:04:40,180 --> 00:04:43,540 that we would have with an external type 1. 92 00:04:43,540 --> 00:04:46,570 The main difference is with an external type 93 00:04:46,570 --> 00:04:50,710 1, the forwarding metric and the route metric 94 00:04:50,710 --> 00:04:54,160 are combined together as the total metric 95 00:04:54,160 --> 00:04:56,030 in the routing table. 96 00:04:56,030 --> 00:05:01,300 And as we can see here, in the case of type 2 externals, 97 00:05:01,300 --> 00:05:03,530 the metric stays the same. 98 00:05:03,530 --> 00:05:05,620 And then it comes down to the forwarding 99 00:05:05,620 --> 00:05:08,000 metric as the tiebreaker. 100 00:05:08,000 --> 00:05:12,760 So it's simply making the same decision at a later rule. 101 00:05:12,760 --> 00:05:16,480 It just makes it easier to control the path selection 102 00:05:16,480 --> 00:05:21,790 with the cost itself in the case of an external type 2. 103 00:05:21,790 --> 00:05:26,740 So now that we've seen how that works, let's change this back. 104 00:05:26,740 --> 00:05:28,720 We'll simply take our cost off. 105 00:05:28,720 --> 00:05:31,080 Go back to router 7. 106 00:05:31,080 --> 00:05:33,550 And we should be doing load sharing again. 107 00:05:33,550 --> 00:05:34,960 And we can see that we are. 108 00:05:34,960 --> 00:05:38,640 So now let's see what happens if we have one route that has 109 00:05:38,640 --> 00:05:43,670 a forwarding address and another one that doesn't. 110 00:05:43,670 --> 00:05:46,670 Let's start by looking at the OSPF database. 111 00:05:46,670 --> 00:05:50,390 And what we see is neither one of these entries 112 00:05:50,390 --> 00:05:52,560 currently have a forwarding address. 113 00:05:52,560 --> 00:05:56,390 So this is not being used as a tiebreaker. 114 00:05:56,390 --> 00:05:59,810 But let's go over to router 2 and get it 115 00:05:59,810 --> 00:06:01,520 to set the forwarding address. 116 00:06:01,520 --> 00:06:03,830 Now, the easiest way to do this is 117 00:06:03,830 --> 00:06:09,360 to simply have router 2 run OSPF on its egress interface. 118 00:06:09,360 --> 00:06:13,520 So we'll simply go into router ospf 1 for area 100, 119 00:06:13,520 --> 00:06:18,050 and we'll bring in interface gig 0/0/0/2. 120 00:06:18,050 --> 00:06:18,870 Commit the changes. 121 00:06:18,870 --> 00:06:21,460 122 00:06:21,460 --> 00:06:25,050 And we'll look at our self-originated type 5 LSAs, 123 00:06:25,050 --> 00:06:28,620 specifically for that 100.100.100.0. 124 00:06:28,620 --> 00:06:30,450 And we can see here that that forwarding 125 00:06:30,450 --> 00:06:33,430 address is in fact now set. 126 00:06:33,430 --> 00:06:36,495 So let's see what happens on router 7. 127 00:06:36,495 --> 00:06:39,280 First, if we look at our database entries again, 128 00:06:39,280 --> 00:06:42,030 we see that this entry coming from router 2 129 00:06:42,030 --> 00:06:46,560 now has the forwarding address, and the one from router 10 130 00:06:46,560 --> 00:06:47,470 does not. 131 00:06:47,470 --> 00:06:51,150 Well, how has that affected our routing? 132 00:06:51,150 --> 00:06:55,710 Notice we're now preferring the one from router 10, the one 133 00:06:55,710 --> 00:06:58,110 without the forwarding address. 134 00:06:58,110 --> 00:07:01,620 And that's simply what this route selection criteria says-- 135 00:07:01,620 --> 00:07:05,070 prefer a route without a forwarding address. 136 00:07:05,070 --> 00:07:08,930 And we can see that that's exactly what it does. 137 00:07:08,930 --> 00:07:14,000 In this video, we took a look at both the forwarding metric 138 00:07:14,000 --> 00:07:19,280 and the forwarding address on external type 2 LSAs 139 00:07:19,280 --> 00:07:24,290 to see how that affects OSPF's route selection criteria. 140 00:07:24,290 --> 00:07:29,390 What we saw, of course, is the lowest forwarding address wins. 141 00:07:29,390 --> 00:07:33,020 And if that's a tie, then it'll come down 142 00:07:33,020 --> 00:07:37,610 to preferring routes without a forwarding address over those 143 00:07:37,610 --> 00:07:40,190 that have a forwarding address. 144 00:07:40,190 --> 00:07:42,440 I hope this has been informative for you, 145 00:07:42,440 --> 00:07:45,640 and I'd like to thank you for viewing. 146 00:07:45,640 --> 00:07:49,000