logo elektroda
logo elektroda
X
logo elektroda

Configuring PVID & VLANs on TP-Link 16 Ports & Netgear 8 Ports Switches, Tagging Ports 1-2

nikodex 8361 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16376984
    nikodex
    Level 8  
    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? :)
  • ADVERTISEMENT
  • #2 16377309
    czuker
    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.)
  • ADVERTISEMENT
  • #3 16377704
    nikodex
    Level 8  
    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
    #4 16377926
    jprzedworski
    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
  • ADVERTISEMENT
  • #5 16377950
    nikodex
    Level 8  
    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?
  • ADVERTISEMENT
  • #6 16378211
    czuker
    Level 25  
    Select all PVIDs that will pass through this port. Port 2 should be any tags and set PVID 1,2,3
  • #7 16378254
    nikodex
    Level 8  
    It's just that you can't set several PVIDs on one port. Only one can enter: /
  • #8 16379641
    czuker
    Level 25  
    must give up
    provide a specific device model, you can say something more.
    Are you sure the port is Trunk?
  • #9 16379799
    jprzedworski
    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.
  • #10 16379873
    czuker
    Level 25  
    for that you have to indicate somewhere which VLANs should pass through the trunk, because they are not necessarily all by default
  • #11 16380333
    nikodex
    Level 8  
    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
    #12 16380355
    jprzedworski
    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.
  • #13 16380364
    nikodex
    Level 8  
    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
  • #14 16380376
    jprzedworski
    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
    #16 16381226
    czuker
    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
  • #17 16384418
    nikodex
    Level 8  
    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 :)

Topic summary

The discussion revolves around configuring VLANs and PVIDs on TP-Link and Netgear switches. The user seeks guidance on setting PVIDs for specific ports while tagging ports 1 and 2. Responses clarify that trunk ports (tagged) do not require PVIDs, while access ports (untagged) should have their PVID set to the corresponding VLAN number. It is emphasized that only one PVID can be assigned to an untagged port, and management access typically remains on the default VLAN (VLAN 1). The user successfully configures the switches and sets up management access through a designated port.
Summary generated by the language model.
ADVERTISEMENT