Vlan – Is it possible to access more than one VLAN

ethernetvlan

If I have a layer 2 switch, is it possible to access two VLANs from one computer?

  • VLAN1: 192.168.1.x with netmask 255.255.255.0
  • VLAN2: 192.168.2.x with netmask 255.255.255.0

If my computer has only one NIC, can it be connected to both VLANs? IF I had two NICs, I know I could do it using two cables, but how to do it with a Layer 2 switch – Cisco 2950?

Edit:

The OS: Windows 7 Professional

The goal: make a computer access the engineering and the production VLANs to use some NAS and to print in a specific printer

Best Answer

You could access the two VLANs via a 802.1q trunk on the switchport connected to the computer. The NIC would have to be able to tag packets and recognize tagged packets.

The L2 switch by itself will not allow you to communicate between the two VLANs. You would need a router.