• Supergrunged@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    This is more dependant on the switch. So I’m gonna say no, for the simple fact, unless the ports are separate, and a member of said VLAN, it’s basically a dumb switch. You have to program what ports belong to that VLAN and not the untagged VLAN.

    Sorry it isn’t just plug and pray.

    • domanpanda@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Yes currently its set to dumb switch but i can change/tag them according to my needs. Ive already created VLAN1 on edgerouters side for other devices (unifi AP, pc). So this part should not be more difficult in case of VLAN2. Except trunking. So what im asking here would connecting tagged ports (vlan2) on edgerouter and tagged ports on the switch with second cable work? Or should i still try to push both tagged and untagged traffic to switch through one cable

  • TiggerLAS@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Yes.

    On the switch, define the ports that need to be on VLAN2 as “access ports”.

    VLAN2, Untagged, PVID2

    Then use a single cable from your edgerouter to any one of those ports.

    Make sure that no other (V)LANs are assigned to that particular port on the EdgeRouter.

    • domanpanda@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      Thanks!

      “Untagged” here means default VLAN with id:1 - the one used when nothing is set. By default all ports on the switch are set as untagged for this id.
      Maybe i should have marked VLAN1 and VLAN2 as VLAN10 and VLAN20 (with respective id’s) to avoid confusion.