In the VLAN, the devices remain in the own broadcast domain and can communicate comfortably. The work of VLAN is to disseminate the traffic between the network and the traffic between them. We are talking about routers. So how the router needs to be made in VLAN. If you are connecting with an IP address that is in another VLAN, yes you will need routing and you will have to use the Layer 3 device.
This means that for every variant of the router connected to the VLAN, the interface will work as the default gateway
If your VLAN is more than if the interface is available in the router, you can use trunking on one of the interfaces or you can buy a layer 3 switch.
By using the router’s interface for every VLAN, it is good that you can put isl or 802.1q trunking on a fast ethernet port.
In the picture above, you can see, what is seen after putting the island 802.1q trunking on a fast Ethernet router. Through this, all the VLAN can communicate with one interface. This is called router on a stick (ROAS) by Cisco.
There is a path beside all of these so that we can do routing.
routing with ivr
In the picture above you can see that there is a router here but it is not physical, as we saw on the router on a stick, rather it is a virtual router. After a little bit of it, you can put it and this set is also there. Instead of putting a separate router, it is more efficient. To apply ivr you just have to create logical interfaces for every VLAN in a multilayer switch
INTER VLAN CONFIGURATION–
COMMANDS INTER VLAN CONFIGURATION———-
Router (config)# interafce gig0/0 # no ip address # no shutdown # exit # interafce gig0/0.1 # encapsulation dot1q 2 # no shutdown (0.0.0.1 255.0.0.0) # exit # interafce gig0/0.2 # encapsulation dot1q 3 # no shutdown (18.104.22.168 255.0.0.0) # exit # ctrl+z # wr
Go to switch and enter in that interface which is connected to the router to switch.
Switch (config)# interface fa0/5 # switch port mode trunk # ctrl+z # wr
YOU CAN READ ABOUT THE VLAN BY CLICKING ON THIS LINKhttps://www.ebuddyblog.com/VLAN-(VIRTUAL-LOCAL-AREA-NETWORK)/