On 05/03/2013 01:05 PM, Joanna Rutkowska wrote:
> Ok, I'm really not a network security person (technically, I'm a
> all-network-is-insecure-period person), and I have zero experience with
> VLANs, but a question that comes to my mind after reading the above
> paragraph is: what does the action of assigning some tag *on your
> switch* has to do with the client computer that is connected to that
> port...?
>
> So what does the _tagging_ really mean? What does it do? Because now it
> sounds to me like you can tag your client-end interface via software
> means (of the client-end system) and... apparently your network switch
> will just honor that? So, why others cannot do the same?
Sorry. I assumed you knew what VLANs were. My response was NOT a good
introduction to VLANs. I will try to give you a high level conceptual view.
Simply, VLANs are sort of like separate layer 2 networks, even though
they are plugged in to the same core switches. Suppose I configure my
managed switch so that ports 2, 4, 6, and 8 are in VLAN 1. I also
configure ports 7, 14, and 20 to be in VLAN 2. Now the managed switch
will treat VLAN 1 ports and VLAN 2 ports as belonging to two separate
networks. It will allow traffic to flow among the VLAN 1 ports--2, 4,
6, and 8 or among the VLAN 2 ports--7, 14, and 20. However, it will not
allow traffic to flow between VLAN 1 and VLAN 2 ports. They are treated
as two separate networks.
I started with a simple example. In reality, configurations are more
complicated. Many of the managed switches can be configured to have
virtual ethernet interfaces that route from one VLAN to another. For
example, my desktop computer might have an IP address of 192.168.1.30
and a default gateway of 192.168.1.250, That default gateway lives on a
managed switch. It's a virtual ethernet interface that can route
traffic from the
192.168.1.0/24 network to other VLANs, based on rules
configured on the managed switch.
That's sort of the basic introduction. In a broader sense, VLANs allow
you to isolate some network switch ports from others. For example, I
may only want my virtualization hosts--my server farm--to be able to
talk to my SAN. I would achieve this by putting them in their own VLAN
and NOT creating a virtual ethernet interface that can route to this
VLAN. This keeps my desktop users--among others--from being able to
talk to my storage backend.
I will have to stop here for now (out of time at the moment.) I have
not talked about VLAN tagging which is kind of important. How am I
doing? Is this any clearer?
Rob