After designing your network topology, create VLANs called VLAN10, VLAN20, and VLAN30 on Cisco Switch and add management IP addresses.įollow the steps below in order to enable routing between new VLANs you have created.
Now, create a network topology as in Step 1 on the Cisco simulator software. This method is not recommended as using more cables will result in both reducing the number of empty interfaces on the Router and increasing the cost of the cable. If there is a Layer 3 Switch in the network environment, all you need to do for routing to VLANs is to execute ip routing in config mode.Īnother way to enable VLAN routing is to plug in more cables from the Switch to the Router.
The subinterface configured interface accepts traffic from all VLANs. In order to enable routing between VLANs, subinterfaces are created according to the IP addresses of the VLANs in the interface connected to the Switchport of the Router and routing is provided. The Switchport connected to the router is configured as a trunk port. Router-on-a-Stick is the second type of Inter-VLAN routing, and the Router is connected to the Switch with a single interface.
How to Configure Inter-VLAN with Router-on-a-Stick on Packet Tracer You must configure Inter-VLAN Routing to communicate with clients that are members of different VLANs on the Layer 2 Switch. In the picture above you can see that the router’s physical interface Fa0/0 was divided into three subinterfaces that were then configured as trunk interfaces and given the IP addresses.After you create VLANs on a Switch using Cisco Packet Tracer, you must provide data communication between the VLANs. Notice how we’ve configured the Fa0/1 port on a switch (the port connected to the router’s Fa0/0 interface) as a trunk port. But first, here is the switch configuration: Each host is in a different VLAN, so we need to divide the physical router’s interface Fa0/0 into logical interfaces, one for each VLAN. We have a simple network of three hosts, a switch and a router.
The subinterface number begins with the period and it is usually the same as the VLAN the subinterface will be in.
The physical interface is divided into logical interfaces (also known as subinterfaces), one for each VLAN.Ī subinterface is created with the interface TYPE NUMBER.SUBINTERFACE command. This scenario is called router on a stick (ROAS) and allows all VLANs to communicate through a single physical interface. To enable inter-VLAN communication, you can divide a single physical interface on a router into logical interfaces that will be configured as trunk interfaces.