1 00:00:12,010 --> 00:00:20,590 So on the switch, show run we need to configure additional configuration on these interfaces 2 00:00:20,590 --> 00:00:22,940 the switched virtual interfaces on the switch. 3 00:00:24,040 --> 00:00:30,970 We need to configure what's called an IP helper address to forward DHCP requests to the router. 4 00:00:32,229 --> 00:00:42,430 So there are a number of things we need to do on the switch including forwarding the DHCP request messages 5 00:00:42,430 --> 00:00:43,290 to the router. 6 00:00:43,810 --> 00:00:50,020 So let's do that on VLAN 10 and on VLAN 20. 7 00:00:50,560 --> 00:00:51,370 So firstly 8 00:00:52,860 --> 00:01:04,140 show run notice as per our diagram this interface is in VLAN 10 and this interface is in VLAN 20. So PC 1 9 00:01:04,170 --> 00:01:11,880 is in VLAN 10, PC 2 is in VLAN 20, and that's correct per the configuration shown here. 10 00:01:13,730 --> 00:01:22,760 Now that we've configured the IP addresses, DHCP requests will be forwarded to the router but the 11 00:01:22,760 --> 00:01:27,530 router needs to know about those networks. 12 00:01:29,450 --> 00:01:37,100 If a router receives a DHCP request from a network that it's not aware of, it won't allocate IP addresses. 13 00:01:37,940 --> 00:01:47,900 So on the router, I'm gonna create a static route pointing to the switch for network 10.1.10.0 14 00:01:48,230 --> 00:01:50,690 as well as 10.1.20.0. 15 00:01:51,880 --> 00:01:57,670 So at the moment now, the routing table contains those two static routes. 16 00:01:59,580 --> 00:02:05,280 In addition to the directly connected interfaces, so the router should be able to ping the switches 17 00:02:05,280 --> 00:02:13,140 switched virtual interfaces or SVIs, which it can. So the route rs able to ping this IP address as 18 00:02:13,140 --> 00:02:14,530 well as this IP address. 19 00:02:15,060 --> 00:02:21,750 Don't forget to add routes either using a dynamic routing protocol or something else so that you have 20 00:02:21,750 --> 00:02:24,200 IP connectivity in your network. 21 00:02:25,210 --> 00:02:33,310 We've been told that PCs need to be able to ping the loopback of router 1, router 1 has an IP address 22 00:02:34,150 --> 00:02:37,750 of 1.1.1.1 configured on the loopback. 23 00:02:40,650 --> 00:02:46,470 The switch doesn't know about that network. So we would have to add a static route 24 00:02:49,080 --> 00:02:55,140 or enable a routing protocol such as OSPF to allow the devices to ping each other. 25 00:02:55,890 --> 00:02:59,550 So now the switch can ping the loopback of the router. 26 00:03:00,400 --> 00:03:04,810 In this example, I'm using static routes, but you could have used a routing protocol such as OSPF 27 00:03:05,170 --> 00:03:05,800 or rip. 28 00:03:07,920 --> 00:03:14,730 Another thing we need to do on the switch is enable IP routing when traffic is sent from VLAN 10 to 29 00:03:14,730 --> 00:03:19,710 VLAN 20, the switch needs to do the inter VLAN routing of that traffic. 30 00:03:20,190 --> 00:03:28,950 So inter VLAN routing needs to be enabled by using the IP routing command. The switch needs to be 31 00:03:28,950 --> 00:03:34,240 configured to route from one switched virtual interface to another. 32 00:03:34,830 --> 00:03:42,690 So hence we add the command IP routing to the switches configuration. 33 00:03:43,640 --> 00:03:51,320 So now let's test, are the PCs able to get IP addresses from the DHCP server and ping the loopback 34 00:03:51,320 --> 00:03:57,590 of the router. The first thing we need to do on the PC is ensure that it's using DHCP. 35 00:03:59,780 --> 00:04:06,890 And then we need to ensure that it's retrieved an IP address through DHCP, we can confirm that by using 36 00:04:06,890 --> 00:04:08,540 the command IP config. 37 00:04:09,510 --> 00:04:16,649 Notice in this example, it's retrieved an IP address of 10.1.10.1. Can it ping the switch? 38 00:04:16,680 --> 00:04:17,700 Yes, it can. 39 00:04:18,269 --> 00:04:20,250 Can it ping the router? 40 00:04:21,089 --> 00:04:21,990 Yes, it can. 41 00:04:22,350 --> 00:04:24,660 Can it ping the loopback of the router? 42 00:04:24,870 --> 00:04:25,800 Yes, it can. 43 00:04:26,400 --> 00:04:27,840 So that looks great. 44 00:04:28,380 --> 00:04:30,120 What about PC 2? 45 00:04:31,340 --> 00:04:39,290 We need to configure it to use DHCP, you can see here that it's already been allocated a gateway and 46 00:04:39,290 --> 00:04:40,220 DNS server. 47 00:04:41,620 --> 00:04:48,700 On the desktop, we can go to a command prompt and we can use the command IP config to verify whether 48 00:04:48,700 --> 00:04:56,080 it got an IP address through DHCP, it has. So, can it ping the default gateway, the switch? 49 00:04:56,090 --> 00:04:56,950 Yes, it can. 50 00:04:57,430 --> 00:05:00,820 Can it ping the routers Ethernet interface? 51 00:05:00,830 --> 00:05:04,270 Yes, it can. Can it ping the routers loopback address? 52 00:05:04,280 --> 00:05:05,200 Yes, it can. 53 00:05:07,070 --> 00:05:08,300 So that's looking great. 54 00:05:08,330 --> 00:05:10,980 What about the PCs pinging each other? 55 00:05:11,570 --> 00:05:12,950 So here's PC 1, 56 00:05:14,980 --> 00:05:21,370 here;s PC 2, IP address on PC 1 is 10.1.10.18 57 00:05:22,640 --> 00:05:34,700 ping 10.1.10.18, that works. I.P. address on this side is 10.1.20.13, so can PC 58 00:05:34,700 --> 00:05:37,400 1 ping 10.1.20.13? 59 00:05:38,120 --> 00:05:39,140 Yes, it can. 60 00:05:40,160 --> 00:05:43,310 So at this point, we've got the lab working. 61 00:05:45,920 --> 00:05:48,710 So can router 1 ping PC 2? 62 00:05:50,000 --> 00:05:50,840 Yes, it can. 63 00:05:53,170 --> 00:05:54,820 Can it ping PC 1? 64 00:05:57,750 --> 00:06:06,480 Yes, it can, we can use the command help to see available commands on the PC. 65 00:06:07,360 --> 00:06:09,310 One of those commands is Traceroute. 66 00:06:11,280 --> 00:06:17,250 So traceroute to the loopback of the router. Notice the traffic goes to the switch 67 00:06:18,230 --> 00:06:19,610 and then it goes to the router. 68 00:06:22,760 --> 00:06:26,690 Traceroute to the router 69 00:06:28,790 --> 00:06:29,870 same happens here. 70 00:06:33,470 --> 00:06:42,310 What happens if we trace to PC 2 from PC 1 trace goes via the switch, so I'm happy with that. 71 00:06:42,830 --> 00:06:45,680 We successfully configured the network. 72 00:06:46,720 --> 00:06:51,820 Don't forget to save your configuration when you finished with your lab. 73 00:06:52,480 --> 00:06:55,330 I always do that in the exam, just to be sure. 74 00:06:56,350 --> 00:06:59,710 I hope you found this video and lab useful.