1 00:00:09,090 --> 00:00:15,840 This is one of multiple videos discussing Layer 3 switching. In a previous video I showed you how to 2 00:00:15,840 --> 00:00:19,530 configure the switch for inter VLAN routing. 3 00:00:19,650 --> 00:00:26,520 I demonstrated how to configure multiple interfaces in different VLANs and then enable Layer 3 functionality 4 00:00:26,880 --> 00:00:30,810 on the switch to allow it to route from one VLAN to another. 5 00:00:30,840 --> 00:00:36,640 Another function of a layer 3 switch is to run routing protocols. 6 00:00:36,660 --> 00:00:45,580 So in this example what I'll do is connect the two switches together on gigabit 1/0 and 7 00:00:45,580 --> 00:00:49,940 will enable a routing protocol between these two switches. 8 00:00:49,990 --> 00:01:02,880 In addition, I'll bring another PC into the topology and in this example we'll put this PC into a seperate 9 00:01:03,010 --> 00:01:11,660 VLAN. What I'll also do is make the ports between the switches routed ports rather than switch ports. 10 00:01:15,110 --> 00:01:17,440 So this link will act as a routed link. 11 00:01:17,480 --> 00:01:25,240 In other words, layer 3 link rather than a layer 2 link. I'll start up the additional switch and I'll 12 00:01:25,250 --> 00:01:32,980 configure the third PC with an IP address 13 00:01:33,220 --> 00:01:43,890 and let's say the 192 168 0 subnet and click Save and I'll start that PC up. I'll open up a console 14 00:01:44,900 --> 00:01:48,490 to the new switch. 15 00:01:49,840 --> 00:01:52,400 As well as the new PC. 16 00:01:52,610 --> 00:01:54,810 So the second switch will take a while to boot. 17 00:01:54,850 --> 00:01:59,440 While it's booting I'll configure the first switch in the topology. 18 00:02:03,470 --> 00:02:07,640 So on the first switch interface gigabit 1/0. 19 00:02:08,160 --> 00:02:14,700 I'm gonna use the command no switch port to make this routed port. 20 00:02:14,750 --> 00:02:22,190 The interface has come up now because the other switch has booted. I'll configure an IP address on this 21 00:02:22,190 --> 00:02:26,870 port in the 10 1 10 0 0 range. 22 00:02:26,900 --> 00:02:36,060 So notice now show IP interface brief this port acts differently to the other ports to router port. 23 00:02:36,200 --> 00:02:41,210 So we have the IP address shown directly on the interface. 24 00:02:44,370 --> 00:02:54,090 On the second switch hostname switch 2, gigabit 01 needs to be configured as a routed port. 25 00:02:57,040 --> 00:02:59,020 So interface gigabit 26 00:02:59,060 --> 00:03:07,430 1/0 no switch port IP address 10.1.10.2 27 00:03:12,710 --> 00:03:17,930 ping 10.1.10.1 which is switch 1. 28 00:03:18,220 --> 00:03:27,230 So switch 2 can now ping switch 1 show VLAN brief, switch 2 currently only has VLAN 1 or create another 29 00:03:27,230 --> 00:03:37,060 VLAN let's say VLAN 20 or let's create one called VLAN 192 and then I'll create an SVI 30 00:03:37,190 --> 00:03:50,610 of 192 reconfigure this PC with a default gateway of 192 168 0.1. So IP address 192 31 00:03:50,610 --> 00:03:54,770 168 0.1/24 32 00:03:55,320 --> 00:04:00,550 and I need to no shut this SVI. 33 00:04:01,020 --> 00:04:04,430 So show IP interface brief. 34 00:04:04,680 --> 00:04:14,880 We've now got the IP address configured on SVI 192 but we need to put the physical interface into 35 00:04:14,880 --> 00:04:24,130 that VLAN. So show IP interface brief SVI is configured. 36 00:04:24,130 --> 00:04:33,350 This interface has been configured in VLAN 192 and we can prove that by doing show 37 00:04:33,350 --> 00:04:39,530 interface gigabit 00 switch port it belongs to a 192. 38 00:04:39,710 --> 00:04:54,240 So show IP interface brief, interface has now come u. So PC 3 now should be able to ping switch 2 which 39 00:04:54,240 --> 00:05:03,430 it can but these PCs over here will not be able to ping this PC and vice versa until we enable a routing 40 00:05:03,430 --> 00:05:18,000 protocol between the switches. So on switch 1, I'll enable EIGRP and simply enable it on all interfaces 41 00:05:18,240 --> 00:05:28,510 and disable automatic summarization. I'll do something very similar on switch 2 enable EI 42 00:05:28,510 --> 00:05:34,570 GRP needs to be an autonomous system 100 in other words the same autonomous system as the other router 43 00:05:37,000 --> 00:05:39,670 and disable auto summarization. 44 00:05:39,670 --> 00:05:41,860 We can see that a neighbor relationship is established. 45 00:05:41,860 --> 00:05:51,060 So switch 2 has an EIGRP neighbor relationship with switch 1. So switch 2 should have learnt 46 00:05:51,150 --> 00:06:00,360 about routes from switch 1 which it has learnt about network 10 120 304 050 which are the 47 00:06:00,360 --> 00:06:09,930 subnets on these VLAN interfaces. We can see that by using the command show IP interface brief notice 48 00:06:09,930 --> 00:06:17,930 the IP addresses on the SVIs they were advertised through EIGRP and switch 2 has learnt that. 49 00:06:17,970 --> 00:06:28,000 So in this typology now PC 3 should now be able to ping PC 2 as an example. So here's PC 3 can it 50 00:06:28,020 --> 00:06:31,480 ping 10.1.5.1? 51 00:06:31,590 --> 00:06:33,050 Yes, it can. 52 00:06:33,060 --> 00:06:36,550 What about PC 1 which is 10 121? 53 00:06:36,560 --> 00:06:38,210 Yes, it can. 54 00:06:38,470 --> 00:06:42,350 Let's do a trace route to 10 121. 55 00:06:42,360 --> 00:06:50,800 What we should see is that it hits switch 2 which it does then it should hit switch 1 which it does 56 00:06:51,250 --> 00:06:57,500 and then it should get to the destination which is PC 1 which it does. 57 00:06:57,550 --> 00:07:03,070 So that's an example of how you configure layer 3 switches with routing protocols to allow routes to 58 00:07:03,070 --> 00:07:06,850 be advertised from one layer 3 switch to another. 59 00:07:06,850 --> 00:07:13,570 Hope you enjoyed this video if it's been a benefit to you please like it please subscribe to my YouTube 60 00:07:13,570 --> 00:07:14,680 channel. 61 00:07:14,680 --> 00:07:16,840 I wish you all the very best.