Ethernet LAN Port Based VLANs

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Port Based VLANs droute 09-10-06
Posted by droute on September 10, 2006, 2:28 pm
Please log in for more thread options


Are Port based VLAN devices designed to work with tag based VLANs ? I
am trying to figure out if I can use an AP which supports tag based
VLANs with a port based VLAN. All documents I found though the web were
implementations and not specs. I have a few basic questions:
If I have switch with the following Port based VLAN configuration:
Ports | VLAN ID
1,5 1
2,5 2
3,5 3
4,5 4

- Then an host on port 1 can only communicate with port 5 ? and port 2
with port 5 and so on ?
- Should the switch be inserting the appropriate vlan tag on the
outgoing frame on port 5 ? Eg: a VLAN tag of 1 on a packet from port 1
to port 5.

- Should the switch be expecting a VLAN tag on any inbound frame on
port 5 ?

Any information would be appreciated.


Posted by stephen on September 10, 2006, 2:38 pm
Please log in for more thread options


> Are Port based VLAN devices designed to work with tag based VLANs ?

Yes.

normally port based vlans are for switch based ports linked to individual
end devices.

Tagged portsused to connect devices which handle multiple VLANs - often
other switches

I
> am trying to figure out if I can use an AP which supports tag based
> VLANs with a port based VLAN. All documents I found though the web were
> implementations and not specs. I have a few basic questions:
> If I have switch with the following Port based VLAN configuration:
> Ports | VLAN ID
> 1,5 1
> 2,5 2
> 3,5 3
> 4,5 4
>
> - Then an host on port 1 can only communicate with port 5 ? and port 2
> with port 5 and so on ?

without know the device involved then you are basically asking for educated
guesswork - worth every penny you are paying for it.....

> - Should the switch be inserting the appropriate vlan tag on the
> outgoing frame on port 5 ? Eg: a VLAN tag of 1 on a packet from port 1
> to port 5.

Depends on the switch implementation - there is no reason that
"membership of multiple internal vlans" must map to
"tag the packets with the internal vlans on this port"
- but it may do.

you may need to set the port into "tag" mode explicitly.
>
> - Should the switch be expecting a VLAN tag on any inbound frame on
> port 5 ?

If the port is set for vlan tagging, then it should use it for both inbound
and outbound packets.
>
> Any information would be appreciated.
>
--
Regards

stephen_hope@xyzworld.com - replace xyz with ntl



Posted by anoop on September 10, 2006, 7:13 pm
Please log in for more thread options


droute wrote:
> Are Port based VLAN devices designed to work with tag based VLANs ? I
> am trying to figure out if I can use an AP which supports tag based
> VLANs with a port based VLAN. All documents I found though the web were
> implementations and not specs. I have a few basic questions:
> If I have switch with the following Port based VLAN configuration:
> Ports | VLAN ID
> 1,5 1
> 2,5 2
> 3,5 3
> 4,5 4

More information is needed to fully analyze this scenario.
1. The PVID for each port. Untagged frames arriving on
this port will get assigned to this VLAN.
2. Whether the devices connected at the each of the
ports support tagging or not.

> - Then an host on port 1 can only communicate with port 5 ? and port 2
> with port 5 and so on ?

Yes. That's the whole point of VLANs. Port 1 will be able
to communicate only with Port 5 and no other port.

> - Should the switch be inserting the appropriate vlan tag on the
> outgoing frame on port 5 ? Eg: a VLAN tag of 1 on a packet from port 1
> to port 5.

It depends. If you're implementing asymmetric VLANs and if the
device at Port 5 is untagged, then you don't need to do tagging.
But for that your switch must support "shared VLAN learning".
In that case the devices from Port 1 will talk to Port 5 on VLAN 1
(presumably a server) and the server on Port 5 will respond on
VLAN 5. Shared VLAN learning means that even though the
addresses of devices from Port 1 are learnt in VLAN 1, they
can be used by frames belonging to VLAN 5. But it doesn't
look like you are trying to do that since you have only 4 VLANs
configured...

In that case the switch should tag traffic as it goes out on Port 5
otherwise there will be no way to know which VLAN the frame
belongs to on the device at the remote end of Port 5.

> - Should the switch be expecting a VLAN tag on any inbound frame on
> port 5 ?

If it doesn't receive a tag, it will classify the frames as being
on the PVID for Port 5. So, assuming what you're trying to do
is to have Port 5 be a "trunk port" that carries traffic for all
VLANs in both directions, the switch will need to receive
tagged traffic on Port 5.

Anoop


Posted by Wrolf on September 28, 2006, 9:57 pm
Please log in for more thread options



droute wrote:
> Are Port based VLAN devices designed to work with tag based VLANs ? I
> am trying to figure out if I can use an AP which supports tag based
> VLANs with a port based VLAN. All documents I found though the web were
> implementations and not specs. I have a few basic questions:
> If I have switch with the following Port based VLAN configuration:
> Ports | VLAN ID
> 1,5 1
> 2,5 2
> 3,5 3
> 4,5 4
>
> - Then an host on port 1 can only communicate with port 5 ? and port 2
> with port 5 and so on ?
> - Should the switch be inserting the appropriate vlan tag on the
> outgoing frame on port 5 ? Eg: a VLAN tag of 1 on a packet from port 1
> to port 5.

If you set the encapsulation type for port 5 to be 802.1q.

The switch or server on port 5 should also be set for 802.1q.

> - Should the switch be expecting a VLAN tag on any inbound frame on
> port 5 ?

Errr... depends a bit. My feeling is that you should desperately avoid
using VLAN 1, because e.g. on Cisco equipment that is by default
interpreted as untagged, whereas other implementations differentiate
tagged packets on VLAN 1 from untagged packets.

Trust me on this. Do not use VLAN 1.

And then yes, all packets inbound on port 5 should be tagged. You have
to set the switch or server on port 5 for the same VLANs.

Wrolf


Similar ThreadsPosted
Port Based VLANs September 10, 2006, 2:28 pm
port-based vlan and tag-based vlan October 21, 2008, 2:03 pm
port-based vlan and tag-based vlan October 21, 2008, 2:03 pm
Two different VLANs on the same port December 15, 2006, 8:02 am
multiple vlans at a single port June 23, 2008, 1:13 am
A question about 802.1d based CoS October 20, 2004, 1:04 am
Issues with CS8900a based NIC... June 17, 2005, 8:01 am
How to findout which a device (switch/hub/Router) is based on bridge implementtaion? September 18, 2005, 8:50 am
[URGENT]: Cal. Buffer Size based on User i/p Bandwidth In 1Gbps 802.3 June 30, 2008, 1:05 am
difference b/w inter-switch link port and trunk port July 6, 2008, 12:06 pm
FPGA based Ethernet network analyzer - full wire speed, programmable February 10, 2006, 9:38 pm
Netgear FVS 318 Wan Port to Ethernet Port on Alvarion ITU Problems... January 20, 2006, 4:55 am
10M full forced port connected to 100M full Duplex port March 25, 2006, 1:49 am
Supply 24 Port Patch Panels,24 Patch Panels,24 Port UTP Patch Panels,24 Port Cat5e Patch Panels,RJ45 Patch Panels,Modular Patch Panels April 1, 2006, 3:29 am
802.1q vlans trunking June 13, 2005, 5:09 am