1 00:00:16,900 --> 00:00:23,650 Now that we've configured ether channel on the core switches we need to configure layer three interfaces 2 00:00:24,310 --> 00:00:29,130 on the core switches and enable inter VLAN routing. 3 00:00:29,410 --> 00:00:38,050 Core 1 is gonna be configured with IP addresses 10.1.1.251 in VLAN 1 and core 2 with IP 4 00:00:38,050 --> 00:00:44,980 address 10.1.1.252 and then something similar will be configured on all of the other 5 00:00:44,980 --> 00:00:54,440 VLANS on both switches. So here's core 1 to enable inter VLAN routing 6 00:00:54,440 --> 00:00:59,150 We need to use the command IP routing now before I type that command. 7 00:00:59,150 --> 00:01:01,830 Notice the output of show IP route. 8 00:01:01,940 --> 00:01:05,840 It shows us that a default gateway is not set. 9 00:01:05,840 --> 00:01:16,900 That means that IP routing is not enabled on the switch, as soon as I enable IP routing the show IP route 10 00:01:16,910 --> 00:01:20,270 command shows us a very different output. 11 00:01:20,510 --> 00:01:27,290 We see something like this instead of what we saw previously. 12 00:01:27,290 --> 00:01:36,200 So one of the first things you need to do on a layer 3 switch is enable IP routing, IP routing is not 13 00:01:36,200 --> 00:01:40,140 enabled on most switches by default. 14 00:01:40,310 --> 00:01:48,410 So you need to enable that first and then what we can do is configure IP addresses on what are called 15 00:01:48,800 --> 00:02:00,080 the switched virtual interfaces or SVIs. So the command VLAN 1 or VLAN 10 would create a VLAN 16 00:02:00,110 --> 00:02:08,060 in the VLAN database but the command interface VLAN 1 creates a switched virtual interface or a 17 00:02:08,060 --> 00:02:10,039 layer 3 interface 18 00:02:10,080 --> 00:02:11,050 and notice the difference 19 00:02:11,060 --> 00:02:17,790 now when I use the command show IP route. We don't see that route in the routing table 20 00:02:18,470 --> 00:02:21,860 but notice what happens when I no shut the interface 21 00:02:22,610 --> 00:02:27,550 show IP route, shows us that route in the IP routing table. 22 00:02:27,890 --> 00:02:36,200 As soon as I create another switched virtual interface, let's say for VLAN 10 and give the switch 23 00:02:36,200 --> 00:02:46,850 an IP address in that VLAN, that network becomes available in the IP routing table. 24 00:02:48,580 --> 00:02:58,060 These switched virtual interfaces or SVI's, all layer 3 interfaces for specific VLANs on the 25 00:02:58,060 --> 00:02:59,950 layer 3 switch. 26 00:02:59,980 --> 00:03:03,410 So this is the layer 3 interface for VLAN 10. 27 00:03:03,640 --> 00:03:12,130 This is the layer 3 interface for VLAN 1 and I would do something similar for VLAN 20 10.1 28 00:03:12,170 --> 00:03:13,780 .20.251 29 00:03:17,490 --> 00:03:29,330 interface V Line 30 IP address 10 1 3 2 5 1 Notice the difference of villain 1 was shut down by default 30 00:03:29,990 --> 00:03:36,020 but these SVIs come up by default. In the real world 31 00:03:40,070 --> 00:03:48,670 verify the state of your SVIs by using the command show IP interface brief, make sure that these 32 00:03:48,670 --> 00:03:55,080 interfaces are up on your switch. So show IP route now 33 00:03:55,210 --> 00:04:04,960 notice the interfaces are shown in the IP routing table and I should as an example be able to ping my 34 00:04:04,960 --> 00:04:16,440 local IP addresses. There's VLAN 1, VLAN 10, VLAN 20,30, and 100. 35 00:04:16,779 --> 00:04:19,390 So that looks good. 36 00:04:19,390 --> 00:04:22,730 We need to do something similar on this switch. 37 00:04:22,750 --> 00:04:25,400 So just to show you the point again. 38 00:04:25,480 --> 00:04:33,940 Show IP route shows nothing in the IP routing table at the moment this command and output shows us that 39 00:04:33,970 --> 00:04:36,440 IP routing is enabled. 40 00:04:36,460 --> 00:04:49,300 Notice we see this rather than this, to show IP route here shows us ICMP redirect caches empty. 41 00:04:49,630 --> 00:04:59,220 If you see that output it means that IP routing is disabled IP routing shows us gateway of last result 42 00:04:59,790 --> 00:05:05,510 and you see all of these codes that means IP routing is enabled on the switch. 43 00:05:05,760 --> 00:05:11,900 No routes are currently in the routing table by default VLAN 1 is shut down. 44 00:05:11,900 --> 00:05:19,050 We can see that by using the command show IP interface brief and in this case I'm gonna use do because 45 00:05:19,050 --> 00:05:20,920 I'm in config interface mode. 46 00:05:21,720 --> 00:05:31,050 Notice VLAN 1 is down, administratively down I need to no shut the interface to bring it up. 47 00:05:31,200 --> 00:05:34,310 So if we do the show IP interface brief command again. 48 00:05:34,350 --> 00:05:43,800 Notice the interface is now up as soon as I use the command IP address 10.1.1.251 on this 49 00:05:43,800 --> 00:05:47,850 case 252 and now use the command 50 00:05:47,850 --> 00:05:54,600 do show IP route. We can see that route in the IP routing table. 51 00:05:55,170 --> 00:06:03,550 So let's create additional SVIs, VLAN 10 IP address 10.1.10.251 52 00:06:03,570 --> 00:06:10,770 or should I say 252. VLAN 20 53 00:06:10,870 --> 00:06:16,950 this will be 20 252, VLAN 30 54 00:06:17,110 --> 00:06:31,120 this will be 30 252 and then interface VLAN 100, IP address 10 1 100 252 with /24 mask 55 00:06:32,050 --> 00:06:40,930 always verify what you've done. So show IP interface brief make sure that you have done what you think 56 00:06:41,140 --> 00:06:42,360 you've done. 57 00:06:42,500 --> 00:06:49,810 I like the following saying "a Cisco device does it what you tell it to do not what you think it should 58 00:06:49,810 --> 00:06:50,770 do." 59 00:06:50,770 --> 00:06:58,150 It will only do what you tell it to do through the commands that you've typed through the CLI. 60 00:06:58,170 --> 00:07:01,190 Sometimes we think we've done something when we haven't. 61 00:07:01,570 --> 00:07:05,590 So make sure that you verify your configuration. 62 00:07:05,740 --> 00:07:09,520 As an example, can we ping ourselves on VLAN 1? 63 00:07:09,520 --> 00:07:10,900 Yes, we can. 64 00:07:10,900 --> 00:07:12,340 What about core 1? 65 00:07:12,340 --> 00:07:13,510 Yes, we can 66 00:07:13,510 --> 00:07:14,920 on VLAN 1. 67 00:07:14,920 --> 00:07:16,030 So let's test it this way. 68 00:07:16,030 --> 00:07:21,620 Can core 1 ping core 2 on VLAN 1? Yes, it can. 69 00:07:21,620 --> 00:07:23,360 What about VLAN 10? 70 00:07:23,630 --> 00:07:25,130 Yes, it can. 71 00:07:25,130 --> 00:07:27,900 VLAN 20? Yes, it can. 72 00:07:28,280 --> 00:07:31,250 30? That's good. 73 00:07:31,580 --> 00:07:32,910 100? 74 00:07:33,080 --> 00:07:33,740 That's good. 75 00:07:34,890 --> 00:07:42,840 So we've configured IP addresses on the two core switches per our instructions and we've configured 76 00:07:42,840 --> 00:07:52,080 inter VLAN routing. The command IP routing enables inter VLAN routing on layer 3 switches and interface 77 00:07:52,260 --> 00:08:02,550 VLAN and a number such as 1 creates the SVI on the switch allowing us to configure IP addresses. The 78 00:08:02,550 --> 00:08:07,020 next step is to configure IP addresses on our access switches.