How a router on a stick routes between vlans
![how a router on a stick routes between vlans how a router on a stick routes between vlans](https://www.pressexam.com/wp-content/uploads/2018/03/word-image-34.png)
- #How a router on a stick routes between vlans how to
- #How a router on a stick routes between vlans series
The router uses just a single interface connected to a trunk port on the switch. In our example we use a router to provide Layer 3 connectivity as shown in our diagram. This can be accomplished either if the switch is Layer 3 (using Layer3 InterVLAN Routing) or if there is a router in place. Thus, if we want to provide network connectivity between the two VLANs we need to have a Layer 3 engine somewhere in the network. The first host belongs to Network 10.10.10.0/24 (VLAN10) and the second one to 20.20.20.0/24 (VLAN20).īy default, if the switch is just a normal Layer 2 switch the two hosts can not communicate between them because they belong to different VLANs and there is no routing. The two ports of the switch with the hosts connected to them (FE1/0/2 and FE1/0/3) must be access ports.
![how a router on a stick routes between vlans how a router on a stick routes between vlans](https://1.bp.blogspot.com/-NxoQwaLyN8E/XadO6syEW-I/AAAAAAAAHIw/i9V-xmCXTB4Y4L7S-kxaztS5oRdSvLSkQCNcBGAsYHQ/s1600/Routing%2Bbetween%2BVLANs.jpg)
Lets see the diagram below to get us started:Ī Cisco Layer 2 switch carries two VLANs (VLAN 10 – RED and VLAN 20 – GREEN) with two hosts connected to them as shown on the diagram above. This configuration is usually asked as a question in CCNA exams, so I hope it will be helpful for people preparing for certification.
#How a router on a stick routes between vlans how to
It sends VLAN information down to a trunked link that’s what you have learned in this chapter but actually the trunk configuration in itself is not related to or part of VTP.In this post I will explain how to provide routing between two VLANs on a simple Layer 2 switch using a Cisco router with just one interface. In this chapter we have also covered a lot of information about VLAN Trunk Protocol (VTP), although it is not related to trunking. It is extremely importnat to understand the trunking technology well especially when you are managing a network with more than one switch operating several VLANs. The description of trunked VLANs opposite to a Fast Ethernet link is also given in this chapter. This is actually important as layer-2 switches breaks up collision domains only and, all switches combine to make up one big broadcast domain by default. We have also discussed about the breaking up of broadcast domain in a switched internetwork by VLANs. This article and all articles mentioned down here at the bottom are all about introducing virtual LANs and also about ways the Cisco switches can utilize them. It is called “a router-on-a-stick” by Cisco. This makes it possible for all VLANs to interact through single interface. You can see how a Fast Ethernet interface on a router actually looks when it is configured with ISL or 802.10q routing. The best alternate of router interface for every VLAN is one Fast Ethernet interface and you can run trunk link for routing. The route switch module (RSM) can easily run on the backplane of the switch and it can support up to the range of 1005 VLANs.
#How a router on a stick routes between vlans series
If there are more VLANs available to you as compared to router interfaces then you have two choices whether you can run ISL or 802.10q routing on one Fast Ethernet interface, or you can buy a 5000 series switch i.e. In other words, the interface IP addresses of every single router would eventually become the default gateway address for every host in every single VLAN. In the other figure you can notice that every router interface is connected to an access link. GigaEthernet is highly recommended as it works well but Fast Ethernet is okay too. 2 or 3 then it is possible to get a router with 2 or 3 Fast Ethernet connections. From the figures you can get an idea that if you had a few VLANs only i.e. The series that do not support ISL routing includes all old 1600, 1700, and 2500 series routers. The 2600 series router is considered as the most affordable router that can support ISL or 802.10q routing. In this case router must be connected with on interface to the switch and that link must be trunk to make routing possible. The other way and the better way is usage of router that can support frame tagging with ISL protocol or 802.10q protocol in order to support trunk link. Therefore, in order to carry out this function, a router with an interface for each VLAN is needed. In this case is clear that you will need a router if you want to go from one LAN to another. The division of the LAN into multiple VLAN is basically the same like separating them into different physical LANs. VLANs can build partition of network as well as separation of traffic at layer 2 of the OSI, and as we have discussed earlier about the need of routers, in order to host or if you want any other device to interact between VLANs, then it is essential to use layer-3 device. The VLAN hosts reside in their own broadcast domain and can interact /communicate quite freely.