Cisco Switch Vlans


I have a layer 2 switch and is connected to a router in Vlan1 which works fine, is it possibe create another Vlan and connect devices in that vlan to another router and be able to communicate.

i.e. Vlan 1 can connect to the router in vlan 1
      Vlan 2 can connect to the router in vlan 2
Who is Participating?
ffleismaSenior Network EngineerCommented:
i've attached a diagram so that you could visualize it, it would really just depends on your requirements.

hope it helps :-)
ffleismaSenior Network EngineerCommented:
yes that configuration is called a router on a stick i've attached a couple of links showing a sample configuration.

the cisco example is much more detailed.

hope it helps :-)
I suppose that every router 1 has 2 interfaces, eth0 connected to VLAN 1 and eth1 connected to VLAN 2. In that case, YES, devices connected to VLAN 1 can "communicate" with devices connected to VLAN 2 through the routers.

Remember that VLANs are layer 2 things, router are layer 3. So you'll have to configure IP routing between VLANs 1 and 2.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

skywalker101Author Commented:
I will have 2 routers one will be for vlan 1 traffic
Another router for vlan 2 traffic
ffleismaSenior Network EngineerCommented:
you don't need to have two routers or two interfaces to route traffic from two vlans. if you have created the two vlans on one switch, the you can configure a router on a stick.

port from the switch connecting to the router would be a trunk port, trunking the two vlans.

port from the router to the switch would be configured as sub interfaces trunking the two vlans effectively having routing between the two vlans. i've placed an example above comment.
Vlan's can operate without router.
Router is used only if there is a need for inter-vlan communication.
Router will be the gateway for each particular vlan.
You can use two routers for each vlan or use one router for the two vlan's.
You can also use sub-interfaces if there are limited interfaces in your router.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.