CCNA | Inter-VLAN Routing Using a Layer 3 Switch

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone this is ali and welcome to my channel in this video we're going to configure inter vln routing using a layer 3 switch in a previous video we configured a router on a stick so enter vlan routing was happening using a router but today it's going to be a layer 3 switch so to do that we have this uh simple topology here we have two vlans or two machines will be on two different vlans vlan 10 here on vlan 20 a layer 2 switch connecting them and then a layer 3 switch that will do the routing between the vlans so we'll start on the layer 2 switch and we have to create the vlans so vlan 10 and vlan 20 and then we'll put the interfaces on the correct vlans so on this side fast ethernet 024 will be first of all we have to [Music] enable or change the mode to access mode and then we we can do we can put the interface on the correct vlan so this side is this interface is on vlan 10. we're going to do the same with fast ethernet 023 but on vlan 20. so switchboard mode access and then switchboard access vlan 20. then after that we're going to interface gigabit ethernet 01 which is this port here that connects um the two switches together this has to be a trunk and it needs to allow both vlans to go through this trunk so switch port mode trunk [Music] and then switch port trunk allowed vlan 10 and 20 10 comma 20. [Music] and we are finished with the layer 2 switch so we created a 2v lens we made this port a trunk and allowed two vlans here and we configured each port on the specific vlan now we'll go to the layer 3 switch [Music] say no configure terminal and the first thing we have to do is the most important thing we have to enable routing on the switch so that it can do layer 3 functionality which is ip routing and then after that the configurations will be very similar to a normal switch create vlans so vlan 10 on vlan 20 and then we'll enable the trunk port or we'll configure the trunk port to allow the two different vlans so interface gig zero one which connects to the layer two switch we have to enable it or put it on a trunk mode but we have to change the encapsulation to 1q so switchboard trunk encapsulation 1q and then switchboard mode trunk and switch port trunk allowed vlans 10 and 20. [Music] we're finished with that and now for the layer 3 functionality to work these computers here on the two vlans need a gateway this gateway on the switch will be a virtual interface it's called an svi or switch virtual interface to create that interface it's a layer 3 interface we just have to say interface vlan and the number so now we have a layer 3 interface it's a virtual interface that sits on the switch and we can configure an ip address on that interface and it will be the gateway for the devices on that vlan so for interface vlan 10 it will be 17216.10.1 i'll use the first ip address slash 24. and we'll do the same thing with interface vlan 20 we'll create another layer 3 interface and we'll put an ip address 172 116.20.1 and we can see that show ip interface brief we can see those two interfaces created right here with an ip address and they're up the status is up now the protocol is up [Music] and now all we have to do is test connectivity from one vlan to the next so i'm gonna make sure we have iop addresses on the computers i have ip addresses here so dot 10 is the ipad address of this machine and this side we have ton as well so open the command prompt and ping the other computer so 172.16.2 so i'm pinging from pc0 to pc1 [Music] first one usually is uh timezo and then we will see the replies successful pings and if we do thing i'll do a hundred things just to show you the importance of the ip routing so i'll start thinking this other device [Music] so i'm thinking right now from pc 0 to pc1 i'm going to open the switch here and i'll keep this running on the side and on the switch i'm going to turn off ip routing so no ip routing this will turn off that layer 3 functionality of the switch and we start to see the pings failing or timing out and if we put that again ip routing we enable it again the pings will come back and here you go we have connectivity between the two vlans through a multi-layer switch now if we go into simulation mode let's see the icmp so the ping goes to the layer 2 switch and then up to layer 3 switch it will do the routing to the other vlan and this is everything for this video if you like the video give it a thumbs up and subscribe to see more videos and thank you for watching
Info
Channel: Ali Younes - Go4IT
Views: 121
Rating: undefined out of 5
Keywords: Cisco, CCNA, Routing, Switching
Id: jWJjdDQ6eEI
Channel Id: undefined
Length: 7min 37sec (457 seconds)
Published: Mon Apr 05 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.