how do I setup 2 VLAN networks?

What equipment do I need?

I have a phone and computer network, phones need to be routed to the phone server, and computers routed to the network server.

The phone server has its own router for Internet access and the network server also has its own router for another Internet access.

Any help, or pointers would be great.

  • This maybe would be better on serverfault. – Captain Segfault Dec 3 '09 at 0:21

A good managed switch can do port based VLANs. I've done it on a second hand Cisco Catalyst 3548; any other enterprise level switch should have the same features. If you're network has multiple bit switches, you'll have to set up something between them to sync the VLAN information, Cisco uses VTP for this.


VLANs are already possible on Layer 2 switches. And it's a good idea to use separate VLANs, one for phones and another one for computers, because of

  • Security - voice traffic should be protected against sniffing

  • Quality of Service - voice quality should not suffer just because a computer starts huge downloads.

Here's a small example like it might be done for instance on a good old 2650 switch with, let's say, IOS 12.1.

Let's enable...


Enter global configuration mode:

configuration terminal

If you add a VLAN to a switch, ensure that it's in server or transparent mode:

vtp mode transparent

Now create a VLAN:

vlan 2
name PC

And the phone VLAN:

vlan 3
name VOIP

Now you may assign VLANs to ports, for example:

configure terminal
interface range fastEthernet 0/16 - 22
switchport access vlan 5

Check your VLAN configuration:

show vlan

It should show:

5    VOIP       active    Fa0/16, Fa0/17, Fa0/18, Fa0/19
                          Fa0/20, Fa0/21, Fa0/22

On various switches and IOS versions it might be different, but this may give a start.


This doesn't really need to be separate VLANs. You can have the phone router and the network router on the same subnet, assuming you can disable DHCP for both of them. You just have a single DHCP server give the phone router as a gateway for phones and the network router as a gateway for computers.

With that said, all you need are switches which support VLANs. The switch will let you put each port on a (set of) VLANs, so you would set eg your phone ports on VLAN 1 and everything else on VLAN 2. This is best if you want well defined "phone" ports rather than letting phones be plugged in anywhere.


In order to use VLANs you'll need a LAYER 3 switch, that's a switch with routing capabilities. The vlan page at wikipedia has good information also.

  • I know this is an older question, but for the record, VLANing is a Layer 2 technology. Layer 3 switches will almost certainly support VLAN, but a managed switch that supports 802.11q is technically what you need. Example: Cisco Catalyst 1xxx series and 2xxx series switches. Both support VLANs, neither support Routing (that is left for 3xxx series with proper featureset licensing). – Sam Feb 23 '10 at 6:34

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.