Elektroda.com
Elektroda.com
X

Search our partners

Find the latest content on electronic components. Datasheets.com
Elektroda.com

TP-Link & Netgear - How to set PVID - VLAN

4539 16
This content has been translated » The original version can be found here
  • Level 6  
    Hello. I am in the process of configuring VLANs on two different switches.
    TP-Link has 16 ports while Netgear has 8 ports.
    He wonders how to set PVID on each port.
    VLAN 1 includes ports 1, 2 and 3
    VLAN 2 includes ports 1, 2 and 4
    VLAN 3 includes ports 1 and 5 through the last
    In addition, ports 1 and 2 must be tagged, the rest not tagged.
    Can I count on your help? :)
  • Level 25  
    What exactly do you not know?
    The rule is that ports that are to transmit frames from more than one VLAN are set as trunk (usually ports to another switch or router) and ports belonging to one VLAN are set as Access (ports to computers, printers, etc.)
  • Level 6  
    I don't know which PVID to assign to each port on both switches. By default, I have added VLAN 0 on switches, which is assigned to ports and to remove it you need to add other PVIDs. Otherwise, although everything should work theoretically, it doesn't work as it should because of the PVID. Hence my question what PVID to set on port one, two, three and so on.
  • Helpful post
    Network and Internet specialist
    As theory is theory, you'll know the rest. The common port for several VLANs is the trunk. Frames that have already been tagged must come to this port and the tagged ones will leave. So they must come from another switch or device that can tag.
    A regular computer or printer generally doesn't tag frames. If you connect it to the switch port (non-tagged), it must tag the frames internally - that's what PVID is for. PVID = 1 for VLAN1, PVID = 2 for VLAN2 and so on. The frame enters, gets tagged (PVID). At the non-tagged output, the tagging will be removed, and when it exits the tagged port or liquor, e.g. to the second switch, the tagging retains (it can go from switch to switch) - until it reaches the non-tagged port. In short ...
    http://blog.devices.pl/?p=29
  • Level 6  
    Thanks, I get it. So on ports 5 to the end I have to set PVID from 3 VLAN and when I connect, for example, the Internet on one switch to port 6 and the computer on the other to port 8, thanks to this part is already working for me.
    But what if there are several vlanow assigned to one port? Eg port 2 is tagged (trunk) and it is used by vans 1, 2 and 3, or port 3 not tagged (general) where are vlans 1 and 2. Which should be chosen in PVID?
  • Level 25  
    Select all PVIDs that will pass through this port. Port 2 should be any tags and set PVID 1,2,3
  • Level 6  
    It's just that you can't set several PVIDs on one port. Only one can enter: /
  • Level 25  
    must give up
    provide a specific device model, you can say something more.
    Are you sure the port is Trunk?
  • Network and Internet specialist
    nikodex wrote:
    It's just that you can't set several PVIDs on one port. Only one can enter: /

    czuker wrote:
    must give up

    Of course you can't. PVID is specified only for "untagged" ports, and such a port can be a member of one VLAN. The "tagged" and "trunk" ports do not require specifying PVID because frames already tagged pass through them.
  • Level 25  
    for that you have to indicate somewhere which VLANs should pass through the trunk, because they are not necessarily all by default
  • Level 6  
    TP-Link is TL SG3216
    I don't remember the Netgear model exactly, but I somehow managed to deal with it.
    The new problem is that after adding VLAN to any port, e.g. 3 and connecting one of the cables there, I cannot log in to the switch.
    Maybe you can help me with that? : /

    I have read again what you write and I have to understand that on ports where there is only one VLAN and which are untagged, should I set this VLAN in PVID?
  • Helpful post
    Network and Internet specialist
    nikodex wrote:
    The new problem is that after adding VLAN to any port, e.g. 3 and connecting one of the cables there, I cannot log in to the switch.
    Switch management is usually done in VLAN1 (default VLAN). An unconfigured switch, or "as the factory gave", has all ports in VLAN 1, so wherever you connect there, you have management. If you assign the port to VLAN 3, you don't have any on this management port. You must leave some port with default VLAN and manage this port. Or change the management VLAN switch to eg 3. In Netgear it is possible
    Hardly anyone is aware of the fact that the switch straight from the store already has VLAN active, although it did not configure anything. As I mentioned, you connect e.g. a computer to some port, the computer sends untagged frames, the port based on PVID tags them (default VLAN), the frames go to another port where they are tagged - the switch is kind of transparent, this VLAN is only inside. And there is management on default VLAN inside.
  • Level 6  
    So, since ports 1 and 2 are tagged, PVID does not need to be set on them, and although they are officially included in several VLANs, should I leave this default VLAN only on ports 1 and 2? Because just such a PVID (1 from the default) is set there from the beginning.
    Although it seems to me that this problem also occurs when the computer is connected to the default VLAN and e.g. cable from the Internet is in VLAN 3
  • Network and Internet specialist
    I added a little higher there. PVID is only for untagged VLAN ports because it runs internal tagging.
    You can change the management VLAN. Unfortunately, now I have to go and disappear. A drawing could be used because it is difficult to analyze the text.
  • Helpful post
    Level 25  
    Configuration
    1. in VLAN -> 802.1Q VLAN -> VLAN Config you configure which VLAN you want to use, i.e. 1,2,3 - you set the number and optional name,
    2. in the VLAN tab -> 802.1Q VLAN -> Port Config you set what type of port it is - 1 and 2 should be set to Trunk, the rest Access, in the case of the Access port in the PVID field you enter the VLAN number (port 3 - PVID = 1, port 4 - PVID = 2, ports 5-16 - PVID = 3)
    I would just wonder whether to opt out of VLAN 1 and start from 2. As you have noticed, the device is managed with VLAN 1 which is the default VLAN and with the above settings you will most likely be able to manage it by connecting to port 1 or 2

    This is how it looks based on the manual. I don't know what the description looks like in the case of the port type game is trunk. And I recommend looking into the manual if you know English. It is rare for the manufacturer to explain the theory in addition to the information on what each field is responsible for, and in the case of the TP-Link TL SG3216 manual this is how it is
  • Level 6  
    Thank you so much for your help! I finally dealt with it :D
    For convenience, I gave port 15 in general and set up PVID 1 to manage the switch from it and not have to unplug devices from ports 1 and 2, and to find VLANs easier to call myself called 2, 3 and 4 :)