Covers how to connect a Layer 3 switch to a router to enable internet access beyond inter-VLAN routing, including both routed port and Switch Virtual Interface (SVI) approaches.
Layer 3 Switch to Router Connectivity
Now at this point we have connectivity between our different VLANs. We set up switch virtual interfaces on a layer 3 switch and now we have connectivity, although we still have to connect to the rest of the world. We have to use the router to get to the rest of the world, so we need connectivity between the layer 3 switch and the router, which creates a little bit of a problem for us.
We set up switch virtual interfaces on our switch, our layer 3 switch, so we can communicate between VLANs, and we actually just specified two. We specified one for VLAN 10 and we specified one for VLAN 20. So now we have connectivity, we are able to route between VLAN 10 and VLAN 20.
The thing is that there's still a missing piece, and that is, how do we get to the outside world? This router is connected to the internet and we want to gain access to the internet, so somehow we need to get to the outside world. That means that we need to establish this connection between our layer 3 switch and our router, and it needs to be a connection that is on a different local area network. Actually it could be on one of these — it could be on VLAN 20, VLAN 30, VLAN 40, it could be. But what the preference is, so we have more control and more security, is it would be on its own network.
So we actually have to assign a network to 10.240.0.0/30. And I chose a really small network because we just have two interfaces, the router interface and the layer 3 switch interface. So just two interfaces, so I'm just going to do a /30 on here, and that should be good for the purpose of this.
Now on the router side, in both of these cases, and both of my examples that I'm going to give, we're just going to make that strictly a routed port. That's typical: it's a physical port with an IP address on it, and that's it. So in both of these cases, that part of the equation doesn't change. The router is going to be configured with a physical port.
But what we have the option to do is we have two different options with this layer 3 switch. So one of the options is to turn one of the ports on that side into a routed port, so we could have a routed port on that side that makes a connection between these two devices.
All right, so the other option is we could actually set up a switch virtual interface on here that's going to specifically be a connection between these two devices. So that way, and in that scenario, we would assign it to a VLAN, and then we would assign the port that this switch is connected into — we would assign that port to that VLAN.
So we're going to take a more in-depth, closer look into both those options. But really the gist of this is that we have a router and a switch that need to be connected together. Typically what we do with that is we put it on its own network, and therefore we have to have a connection between there, and we'll have to set up a new SVI.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →