====== VLAN (IEEE 802.1Q) ====== FreshTomato supports Virtual LAN (VLAN) configurations that conform to the 802.1Q standard. The user can create up to 16 VLANs. A VLAN can use a VID between 1 and 4094. If you are new to VLANs, here is an excellent introductory video: [[https://www.youtube.com/watch?v=MmwF1oHOvmg|Practical Networking - What are VLANs]] \\ For VLANs to work properly on ARM and MIPS routers, please use release 2021.8 or later. (See examples.) ===== VLAN Ethernet (Basic Configuration Information) ===== * VLAN - this VLAN's unique identifier. (VLAN 0 to VLAN 15) * VID - allows overriding "traditional" VLAN/VID mapping (Such as: VLAN 4 to VID 4) \\ with arbitrary VIDs for each VLAN. (Use "0" for "regular" mappings instead). * Ports 1 to 4 and WAN - specify which Ethernet ports will be members of this VLAN. * Tagged - enable 802.1Q tagging of Ethernet frames on a particular port/VLAN. * Default - the VLAN ID assigned to untagged frames that the router receives. * Bridge - determines if this VLAN ID should be treated as WAN, part of a LAN bridge \\ or just left as is (member of an 802.1Q trunk, managed manually via scripts). ===== VLAN Wireless ===== This section contains the assignments of wireless interfaces to various LAN bridges. You should check/verify the correct settings on the [[:virtual_wireless|Virtual Wireless]] and [[:basic-network|Network]] menus to ensure proper VLAN operation. The following settings are also mandatory: * One VID must be assigned to the WAN interface. * One VID must be selected as the default. * Avoid using VID: "0" to prevent 802.1Q compatibility issues.\\ 802.1Q specifies that frames tagged with "0" don't belong to any VLAN. \\ (This tag contains only user priority details). [[https://en.wikipedia.org/wiki/IEEE_802.1Q|Wikipedia: 802.11Q]] * Avoid using VID: "1". Some vendors label it "special" \\ or "reserved" for management. \\ \\ **Configuration example for German Telekom ISP** GT supports a dual-stack setup (IPv4 & IPv6). For the WAN Port, a VLAN tag with a value of 7 (VID 7) is required. {{:telekom_example_vid_7.png?600}} ===== VLAN Notes and Troubleshooting ===== As mentioned earlier, for VLANs to function properly, please** use FreshTomato 2021.8 or later**. Older versions like AdvancedTomato, Shibby, or Toastman, may not work as expected. \\ \\ **PPPoE Connections with FreshTomato 2021.7 and older** PPPoE connections work only when the following workaround is implemented: \\ **//Example 1//:** FreshTomato 2021.7 is being used to connect to German Telekom ISP. \\ German Telekom uses PPPoE with VID: "7".\\ => you must use VLAN: "7" using VID: "7" (a "traditional" VLAN/VID mapping). \\ \\ **//Example 2//:** FreshTomato 2021.7 is being used to connect to Freedom Internet. \\ Freedom uses PPPoE , and VLAN: "6" using VID: "6" See: [[https://www.linksysinfo.org/index.php?threads/fork-freshtomato-arm-development-discussion-only-for-support-always-open-your-own-thread.74117/page-245#post-330148|FreshTomato-ARM - development discussion only - Freedom.nl PPPoE]] \\ **//Example 3//:** FreshTomato FT 2021.7 is being used to connect to Vivo FTTH (Brazil).\\ Vivo use PPPoE, and VLAN: "10" using VID: "10" See [[https://www.linksysinfo.org/index.php?threads/fresh-tomato-r7000-vlan-issue-on-ftth-provider.76958/#post-330955|Tomato Forums: R7000 - VLAN issue on FTTH provider]] Since release 2021.8, you can select/use any VLAN from 0 to 15. (See example in above picture for 1 (Telekom ISP), now using VLAN 5 with VID 7) \\