What is the use or purpose of a VLAN in networking?

Can anyone point out a scenario where VLAN is useful?

closed as off-topic by David Schwartz, Jenny D, MadHatter, kasperd, alexus Nov 20 '17 at 22:08

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I'm voting to close this question as off-topic because this is not a site to do people's homework for them. – Jenny D Nov 18 '17 at 8:37

We have one set of switches and separate vLans for general traffic, visitor connections (Internet only), Management traffic (iLO), SAN (iSCSI), and health remediation.

The Wikipedia article has a lot more information, including uses.

  • Chris can you explain elaborate – JavaUser Sep 16 '10 at 16:47
  • 2
    @JavaUser, We have one set of switches; all traffic is confined to one vLan or another and a security appliance allows certain traffic to route from one vLan's subnet to another. This keeps the traffic from each completely separate (except as defined in the security appliance), while actually running it all over one set of switches. – Chris S Sep 16 '10 at 17:02
  • Well, what would be the difference between having let's say a network with router and 2 vlans defined in switches, and having the router programmed to have 2 subnets with its firewall settings denying access from one into the other with switches acting as dumb switches? It is a real setup which I inherited where I work, and I wonder if I should change that to VLANs. – Gnudiff Feb 22 '17 at 20:26
  • @Gnudiff How do you connect dumb devices to the appropriate VLAN then? Say you have a PC that's only supposed to access one of the VLANs. With dumb switches, how do you put the PC in the right VLAN? Do you trust the PC to do the right thing? – David Schwartz Nov 15 '17 at 21:10
  • @DavidSchwartz unfortunately that was the setup I inherited, yes. thin clients were assigned static ips and users were denied rights to change it. We are in process of upgrading the network to VLANs though – Gnudiff Nov 15 '17 at 22:01

Initially because is more price-efficient to use a single physical infrastructure split up into multiple (virtual) LANs than it is to build separate physical infrastructures for each LAN environment.

At the root, that's it. Use logically separation rather than physical separation.


If you have to ask about VLAN uses then you've never worked with a managed switch environment. The uses are limited only by one's imagination and I've seen some very creative uses. The basic scenario is segregating traffic on a single switch. If you have two offices on a single switch you can put them on different VLANs so to those machines it looks like they're on different physical switches. If you hear the term Layer 3 switch that means the switch can act like a router to route traffic between those two VLANs without using an external router. A step up from that is if you have another group of computers on the other side of the building that you want to be part of one of those VLANs. You can do what's called trunking to do that across switches so despite being on different physical switches the machines all work like they're on the same switch.

There are a lot of other uses but it's hard to explain in a short text reply. There are books from Cisco just covering the topic of VLANs


In a word "segmentation". For example if you want to run more than one separate network in a single location you either have to run multiple network cables or use a VLAN...

See http://www.youtube.com/watch?v=9LHwbuWz1UM for a simple explanation from Cisco


None of the other answers are incorrect to this question, however segmentation is the best explanation of why someone would want to setup VLANs on their network. Because an example was asked for, I am also providing answer to this question.

In this example, imagine you have a lot of traffic on your network such as a heavy infrastructure of support machines all accessing a central database or application server.

Now let's just say your company decides to eliminate the $5k per month they are shelling out to the local telephone company for POTS lines and decide to implement a VoIP telephone system.

Ideally you would not want these two types of traffic on the same VLAN due to the fact that voice and data packets will have to compete for priority.

I will quote a really good article on this topic:

VoIP is much less tolerant of dropped packets than data services, and even low levels of latency can turn into significant delays or echoing when VoIP is used. Putting VoIP on its own VLAN lets you give it highest priority in the network, while allowing more fault-tolerant data processes to take the back seat.

There is also the added benefit of security. Once again, I will quote the above article (it is a good read, so I suggest checking it out if you want to know more):

Keeping your VoIP on a VLAN allows you to lock it down more tightly than if it's sharing pipelines with regular data.

  • Bad exmaple, as I think VoIP should have its own network, so at least the phones keeps working when their is a "IT Meltdown". – Ian Ringrose Nov 15 '17 at 18:27
  • VOIP is a fantastic example. Unless you build a separate infrastructure (which could also "meltdown") you've gained cost and complexity, without gaining much in the way of redundancy (since it's likely managed by the same incompetent staff that would cause the "meltdown") – Jim B Nov 15 '17 at 18:50

In a large campus switched network, you need to use VLANs to separate the broadcast domains into smaller more manageable units. Once you get beyond a few hundred devices in your broadcast domain, your broadcast traffic gets to the point where it's making a serious negative impact on your network. Try finding a broadcast storm on a huge flat network with thousands of devices. Not so easy. Also, ACLs.

  • 1
    This could be done with routers connecting each segment to the backbone. – Ian Ringrose Nov 15 '17 at 18:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.