1
00:00:20,810 --> 00:00:27,440
This vlog is a continuation of a previous vlog discussing administrative distance or the believability of

2
00:00:27,440 --> 00:00:34,180
a routing protocol. In this example, we've got four routers, router 1, router 2, router 3 and router 4.

3
00:00:34,190 --> 00:00:39,800
Router 2 in this topology is only running OSPF.

4
00:00:40,070 --> 00:00:49,460
If we can see that by using the show IP protocols command, it has a relationship with both router 1 and

5
00:00:49,460 --> 00:00:53,260
router 4. Router 3 in this topology

6
00:00:54,820 --> 00:01:02,110
is running rip and EIGRP. Now in the real world, you typically don't enable a whole bunch of routing 

7
00:01:02,110 --> 00:01:03,130
protocols on your router.

8
00:01:03,130 --> 00:01:10,180
we're doing it here to explain administrative distances. So show IP protocol on router 1

9
00:01:10,930 --> 00:01:11,170
router

10
00:01:11,200 --> 00:01:20,440
1 is running rip, EIGRP as well as OSPF. Router 4 is doing the same, so on router 1 show IP route

11
00:01:20,740 --> 00:01:23,650
the route of interest in this topologies quadruple four

12
00:01:24,190 --> 00:01:26,080
that's a loopback on router 4.

13
00:01:26,710 --> 00:01:32,770
We can see in the routing table of router 1 that the route appears in the routing table and the protocol

14
00:01:32,780 --> 00:01:34,660
selected was EIGRP.

15
00:01:35,230 --> 00:01:40,210
That's because EIGRP has an administrative distance of 90 which we can see here.

16
00:01:40,730 --> 00:01:43,660
OSPF has an administrative distance of 110.

17
00:01:44,230 --> 00:01:53,080
The loopback of router 2 has been learnt via OSPF because we are not running EIGRP on router 2 the

18
00:01:53,080 --> 00:01:57,270
lower the administrative distance, the more believable the routing protocol.

19
00:01:57,790 --> 00:02:03,790
So this route was selected because EIGRP has a lower admin distance. Show

20
00:02:03,800 --> 00:02:12,850
IP OSPF database shows us that the route is available in the OSPF database, but EIGRP was selected because it

21
00:02:12,850 --> 00:02:15,370
has the lowest administrative distance.

22
00:02:16,360 --> 00:02:23,710
So at the moment, show run section EIGRP shows us that EIGRP is enabled on router 1.

23
00:02:24,220 --> 00:02:31,450
So if we remove EIGRP from router 1 and then look at the routing table what you'll notice is that

24
00:02:31,450 --> 00:02:34,120
the route has been added from OSPF.

25
00:02:34,600 --> 00:02:40,720
The next hop is via 10.1.1.2 if we scroll up previously

26
00:02:41,880 --> 00:02:46,650
the next hop was 10.1.1.2.2 which is router 3.

27
00:02:47,890 --> 00:02:55,120
But because EIGRP is no longer running on router 1, the route is now available via router 2 and was

28
00:02:55,120 --> 00:02:56,760
learnt through OSPF.

29
00:02:58,120 --> 00:03:05,800
So as an example, if we trace to that route now notice that it goes via router 2 we're still running

30
00:03:05,950 --> 00:03:07,780
rip on this router.

31
00:03:08,200 --> 00:03:16,840
So rip is running on router 3, router 1, and router 4 but the rip route is not selected for quadruple

32
00:03:16,840 --> 00:03:23,160
four because of RIP has a higher administrative distance when compared to OSPF.

33
00:03:23,770 --> 00:03:29,890
So the loopback of router 3 is advertised via rip to router 1

34
00:03:30,310 --> 00:03:36,670
and because OSPF is not advertising that route, the rip route is put into the routing table, but because

35
00:03:36,670 --> 00:03:41,140
OSPF is advertising this route and it has a lower administrative distance

36
00:03:41,140 --> 00:03:45,040
when compared to rip the OSPF route is used, not the rip route.

37
00:03:45,670 --> 00:03:55,140
So to confirm that and try and prove it to you, I'm going to remove EIGRP from router 3.

38
00:03:56,200 --> 00:03:57,400
So router 3

39
00:04:00,030 --> 00:04:08,370
is running rip, it's not running EIGRP rip is the only routing protocol running on router 3.

40
00:04:08,910 --> 00:04:16,170
So on router 1, we can see the loopback of router 3 learnt via rip but we don't see the loopback

41
00:04:16,170 --> 00:04:19,320
of router 4 because OSPF takes precedence.

42
00:04:19,800 --> 00:04:26,040
So let's remove OSPF, show IP route

43
00:04:27,070 --> 00:04:32,260
We haven't learnt about the route through rip yet, so let's do some investigation to make sure things are

44
00:04:32,260 --> 00:04:35,050
working show IP route on router 3

45
00:04:35,680 --> 00:04:37,860
notice the route has been learnt via rip.

46
00:04:39,170 --> 00:04:41,930
On router 1 it's now available

47
00:04:43,860 --> 00:04:49,740
I was a bit impatient, rip takes longer to advertise routes. So now ping

48
00:04:51,190 --> 00:04:59,650
quadruple 4, trace quadruple 4 it's going via router 3 and that's because the only routing

49
00:04:59,650 --> 00:05:03,670
protocol that's running on router 1 is rip.

50
00:05:05,760 --> 00:05:15,660
So the routing table is populated with rip routes, the router won't be able to ping the loopback of router 2 because

51
00:05:15,660 --> 00:05:21,900
rip is not running on router 2, So it need to enable rip on router 2 if we wanted full connectivity

52
00:05:21,900 --> 00:05:22,880
in this network

53
00:05:23,340 --> 00:05:24,810
but for now, I'm not going to do that.

54
00:05:24,820 --> 00:05:27,990
I want to prove to you that OSPF takes precedence.

55
00:05:28,230 --> 00:05:32,370
So notice the rip route is in the routing table with an administrative distance of 120

56
00:05:32,580 --> 00:05:37,020
hop count is 2 it's available via 10.1 .2.2.

57
00:05:37,500 --> 00:05:42,390
It's been in the routing table for 19 seconds and it's available via gigabit 01.

58
00:05:44,420 --> 00:05:58,760
Let's enable OSPF network and I'll enable OSPF on all interfaces, show IP OSPF neighbor we have a neighbor

59
00:05:58,760 --> 00:06:06,110
relationship with router 2 show IP route notice the routing table has been updated

60
00:06:06,680 --> 00:06:08,810
OSPF takes precedence over rip.

61
00:06:11,140 --> 00:06:20,290
So the path used to get to quadruple 4 is via router 2 if we enable EIGRP on this router

62
00:06:24,400 --> 00:06:32,570
traffic will still go via router 2 because we need to enable EIGRP on router 3. So let's do that

63
00:06:32,570 --> 00:06:38,140
router EIGRP, enable EIGRP in all interfaces.

64
00:06:38,740 --> 00:06:44,830
neighbour relationship has been established. So show IP EIGRP neighbour, neighbour relationship is available

65
00:06:45,190 --> 00:06:46,150
show IP route.

66
00:06:46,630 --> 00:06:53,410
The EIGRP route has now been put into the routing table and if we trace to that loopback, it's going

67
00:06:53,410 --> 00:06:54,460
via router 3.

68
00:06:55,060 --> 00:06:58,030
So administrative distances work as follows:

69
00:06:58,720 --> 00:07:00,250
The lowest number wins, 

70
00:07:00,520 --> 00:07:05,260
different routing protocols have different administrative distances set by default.

71
00:07:05,260 --> 00:07:06,490
You can change them.

72
00:07:07,090 --> 00:07:12,430
RIP is 120, OSPF is a 110, EIGRP internal routes is 90

73
00:07:14,580 --> 00:07:22,350
but I could, as an example, add a route to the routing table statically at a static route to force

74
00:07:22,350 --> 00:07:24,210
the traffic to go via router 2.

75
00:07:25,020 --> 00:07:31,650
Now when we look at the routing table, notice the static route has replaced EIGRP because the static

76
00:07:31,650 --> 00:07:35,730
route to a next-hop IP address has an admin distance of 1.

77
00:07:36,380 --> 00:07:43,710
There's nothing more believable than you, as in the router believes you more than it believes a algorithm

78
00:07:43,710 --> 00:07:45,740
such as EIGRP or OSPF

79
00:07:46,410 --> 00:07:52,350
and that's because you know what you're doing and the router believes you more than it believes are

80
00:07:52,350 --> 00:07:52,890
the routers.

81
00:07:54,220 --> 00:07:54,940
So once again

82
00:07:56,370 --> 00:08:04,980
trace is via router 2, show run pipe include route we've got the static route forcing the traffic 

83
00:08:05,040 --> 00:08:05,580
via

84
00:08:07,420 --> 00:08:08,200
router 2.

85
00:08:10,430 --> 00:08:15,560
I'll remove the static route, show IP route EIGRP is the most believable now.

86
00:08:18,440 --> 00:08:24,200
Traffic is going via router 3, remove EIGRP

87
00:08:27,550 --> 00:08:32,350
OSPF route takes precedence now traffic is going via

88
00:08:34,510 --> 00:08:41,140
router 2. So that is a demonstration of administrative distance or the believability factor of a route.

89
00:08:41,710 --> 00:08:46,620
for the CCNA exam, you need to know admin distances. in a separate video

90
00:08:46,630 --> 00:08:48,600
I'll show you an example with BGP.

91
00:08:49,140 --> 00:08:50,280
I hope you've enjoyed the video.

92
00:08:50,800 --> 00:08:54,490
Please like it and please subscribe to my YouTube channel.

93
00:08:54,700 --> 00:08:56,140
I wish you all the very best.

