Subnet vs. VLAN

I have a fairly large lan that is spread out geographicalls via wireless links as well as hardwired to offices.  Current there is a single /24 subnet and i am considering using VLANs to contain broadcast traffic on the network.  My questions is, If i were to further subnet that /24 network into serveral smaller networks, shouldnt that accomplish the same as a VLAN with respect to broadcasts?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


The only way subnets contain broadcast traffic is if routers connect them to each other. The routers drop the broadcasts. Setting it up as smaller networks will force traffic to the router between the subnets, but the single vlan will mean that the switches will pass every broadcast to all ports in the vlan. Splitting the network with VLANS will mean that your switches will not pass broadcasts from one VLAN to another, and bring down the background "noise" of your network.

VLANs aren't that hard to implement. Dig in and you'll get more benefits for your network.

Good luck!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andreacadiaAuthor Commented:
Would be the outcome be the same if i used a single subnet with multiple VLANs or made each vlan a differnet network?
each VLAN needs to be a different network - a VLAN is just a subnet, just implemented on a group of switches...

a traditional subnet would be all ports on a switch, then connected to other switches, then connected to a router. the router would mark the edge of the subnet, then be connected to another switch which would be another network.

a VLAN allows you to do this using one or a few switches - managed switches - by setting up some ports in one network/subnet/VLAN, and other portsd in another network/subnet/VLAN. even though there are multiple subnets on one switch, the switch keeps all traffic on the subnet that originated it and lets the router take all traffic between subnets.

there's an ok article on this here:

andreacadiaAuthor Commented:
For clarification...If i need 3 VLANs to use the same internet gateway and require inter VLAN commmunication tthen each VLAN must have its own:

- direct connect to interface on the router
- each vlan on a different subnet

Plus i would then have to configure my router to route the inter VLAN traffic?  I will be using cisco equipment to accomplish this so any reference to that would help.

imagine you have internet gateway, part of vlan 1 (, vlan 2 (, and vlan 3 (

you could have one cisco router that has 3 ethernet interfaces, one interface, a second, and the third

the router would have a physical connection to a port on your switch assigned to that specific vlan. you would configure your switch with commands on the individual interfaces as such:

interface fastethernet 0/1
  switchport mode access
  switchport access vlan 1

interface fastethernet 0/2
  switchport mode access
  switchport access vlan 2

interface fastethernet 0/3
  switchport mode access
  switchport access vlan 3

and so on... depending on which device you put in which subnet/vlan.

you would also have to tell the switch you had more than one vlan - this command differs by switch model

This is the simplest case. If you have more than one switch, you would need to either keep all vlan ports to one switch (switch one is vlan 1, switch 2 is vlan 2...) or configure a vlan trunk port on the connection between switches:

interface fastethernet 0/24
  switchport trunk encapsulation dot1q
  switchport mode trunk

you could also use one connection to your router from one switch and put all 3 vlans on that connection using a trunk on the switch and subinterfaces on the router

interface fastethernet 0/0
  no ip address
interface fastethernet 0/0.1
  encapsulation dot1q 1 native
  ip address
interface fastethernet 0/0.2
  encapsulation dot1q 2
  ip address
interface fastethernet 0/0.3
  encapsulation dot1q 3
  ip address

Cisco article:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.