This lab demonstrates inter-VLAN communication via the “Router on a Stick” method. To enable inter-VLAN communication, a trunk link is created between a router and switch. Trunk links can carry traffic for multiple VLANS. Trunk links can also be used to span VLANs across multiple switches and allow them to communicate with each other. In general, communication between VLANs must go through a layer 3 device.
In this lab, I use an old school Cisco 2611 router [IOS 12.3(18)] with a more modern Cisco WS-C3560G-24TS switch [IOS 12.2(40)SE]. Of course, in reality, it would not make much sense to use a router with only FastEthernet ports with a switch that uses GigabitEthernet ports – but this is the equipment I had on hand, so this is what I used. The “Router on a Stick” method does create a bottleneck and a single point of failure, but for someone who has a limited number of router ports available, it could be worth it. The number of VLANs the trunk link will support is only limited by the bandwidth available and the amount of traffic being passed. Since the Cisco 2611 router only has 2 FastEthernet ports, it actually is a good candidate for setting up a trunk link with a switch. Below is a diagram of the setup I created in the lab; I have included the respective IOS commands. Once you have setup your lab, you can perform a test by plugging a laptop into a port on one VLAN and pinging the IP of another VLAN.
Pingback: CCNA Bootcamp – VLAN 2 | Exam CCNA
I’m actually trying to set something like this up in a production environment – of course as you mention though not with a 100 Mbit pipe for the trunk. I am using a 1 Gig connection for trunk and 100 Mbit for access links. Also have 5 vlans spanning two switches. In a production environment I should probably have a backup router correct? How would I go about protecting from the single point of failure?
maybe if you don’t buy Cisco you can afford a router with more than 2 ports and then you don’t need to trunk
sorry – I meant Ci$co
I have read the post which is very useful. The Setup of the Inter VLAN communication via router stick is very difficult. So I have been searching for this. The resources I have got from this site have helped me a lot.