Reconfigure VLANs for 802.1q Compatibility - Revision history http://wiki.dd-wrt.com/wiki/index.php?title=Reconfigure_VLANs_for_802.1q_Compatibility&action=history Revision history for this page on the wiki en MediaWiki 1.10.1 Fri, 29 Mar 2024 07:01:01 GMT Phuzi0n: /* Introduction */ - further clarification about VLAN 0 http://wiki.dd-wrt.com/wiki/index.php?title=Reconfigure_VLANs_for_802.1q_Compatibility&diff=43770&oldid=prev <p><span class="autocomment">Introduction -</span> - further clarification about VLAN 0</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 17:41, 13 September 2012</td> </tr> <tr><td colspan="2" align="left"><strong>Line 2:</strong></td> <td colspan="2" align="left"><strong>Line 2:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">VLAN trunking allows you to connect VLAN's across multiple devices without having to use a cable for each VLAN. For instance, if you had VLAN 1 and VLAN 3 on two different devices then you can create a trunk port on both devices to tag the Ethernet frames with an [http://en.wikipedia.org/wiki/IEEE_802.1Q 802.1q] header. Then devices in VLAN 1 on router 1 can communicate with devices in VLAN 1 on router 2 and devices in VLAN 3 on router 1 can communicate with devices in VLAN 3 on router 2.</td><td> </td><td style="background: #eee; font-size: smaller;">VLAN trunking allows you to connect VLAN's across multiple devices without having to use a cable for each VLAN. For instance, if you had VLAN 1 and VLAN 3 on two different devices then you can create a trunk port on both devices to tag the Ethernet frames with an [http://en.wikipedia.org/wiki/IEEE_802.1Q 802.1q] header. Then devices in VLAN 1 on router 1 can communicate with devices in VLAN 1 on router 2 and devices in VLAN 3 on router 1 can communicate with devices in VLAN 3 on router 2.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Broadcom's 100mbit switches use VLAN 0 as the default LAN VLAN but 802.1q specifies that a tag of &quot;0&quot; means that the frame doesn't belong to any VLAN. This is the reason Broadcom's gigabit switches use VLAN 1 for their LAN and you should avoid using VLAN 0 in a 802.1q trunk to be compatible with others devices. This guide will explain how to reconfigure a device with a Broadcom 100mbit switch to use VLAN 1 for the LAN ports and VLAN 2 for the WAN port to lay the foundation for further configuration of 802.1q tagged ports.</td><td>+</td><td style="background: #cfc; font-size: smaller;">Broadcom's 100mbit switches use VLAN 0 as the default LAN VLAN but 802.1q specifies that a tag of &quot;0&quot; means that the frame doesn't belong to any VLAN<ins style="color: red; font-weight: bold; text-decoration: none;">. ie. the sending device is using the 802.1q header to indicate a priority for QoS but does not know which VLAN it belongs to and the switch should put it in the default VLAN for that port</ins>. This is the reason Broadcom's gigabit switches use VLAN 1 for their LAN and you should avoid using VLAN 0 in a 802.1q trunk to be compatible with others devices. This guide will explain how to reconfigure a device with a Broadcom 100mbit switch to use VLAN 1 for the LAN ports and VLAN 2 for the WAN port to lay the foundation for further configuration of 802.1q tagged ports.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Configuration==</td><td> </td><td style="background: #eee; font-size: smaller;">==Configuration==</td></tr> </table> Thu, 13 Sep 2012 17:41:42 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Reconfigure_VLANs_for_802.1q_Compatibility Phuzi0n: /* Finishing Up */ add workaround for when wan port reverts http://wiki.dd-wrt.com/wiki/index.php?title=Reconfigure_VLANs_for_802.1q_Compatibility&diff=39750&oldid=prev <p><span class="autocomment">Finishing Up -</span> add workaround for when wan port reverts</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 00:54, 26 February 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 23:</strong></td> <td colspan="2" align="left"><strong>Line 23:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Finishing Up===</td><td> </td><td style="background: #eee; font-size: smaller;">===Finishing Up===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Before you go running off thinking that your configuration is fine, reboot the router to ensure that the settings all persist through a reboot. The DD-WRT firmware has some 'sanity checks' to restore VLAN settings to their default values when they are configured certain ways.</td><td> </td><td style="background: #eee; font-size: smaller;">Before you go running off thinking that your configuration is fine, reboot the router to ensure that the settings all persist through a reboot. The DD-WRT firmware has some 'sanity checks' to restore VLAN settings to their default values when they are configured certain ways.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">In my experience, DD-WRT will revert the WAN Port Assignment on some hardware. I've worked around this problem by navigating to the '''Administration -&gt; Commands''' page and saving the script below to the '''Startup Script'''.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nvram set wan_ifname=vlan2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> startservice wan</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==References==</td><td> </td><td style="background: #eee; font-size: smaller;">==References==</td></tr> </table> Sat, 26 Feb 2011 00:54:13 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Reconfigure_VLANs_for_802.1q_Compatibility Phuzi0n at 07:16, 18 December 2010 http://wiki.dd-wrt.com/wiki/index.php?title=Reconfigure_VLANs_for_802.1q_Compatibility&diff=37576&oldid=prev <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 07:16, 18 December 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 23:</strong></td> <td colspan="2" align="left"><strong>Line 23:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Finishing Up===</td><td> </td><td style="background: #eee; font-size: smaller;">===Finishing Up===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Before you go running off thinking that your configuration is fine, reboot the router to ensure that the settings all persist through a reboot. The DD-WRT firmware has some 'sanity checks' to restore VLAN settings to their default values when they are configured certain ways.</td><td> </td><td style="background: #eee; font-size: smaller;">Before you go running off thinking that your configuration is fine, reboot the router to ensure that the settings all persist through a reboot. The DD-WRT firmware has some 'sanity checks' to restore VLAN settings to their default values when they are configured certain ways.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">==References==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">* [[VLAN Support]] - List of devices tested for VLAN support.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">* [[Enabling VLAN Support for BCM4704]] - Explains how to enable VLAN support on BCM4704 based devices.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">* [[Switched Ports]] - Explains how to configure VLAN's using NVRAM variables.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Basic tutorials]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Basic tutorials]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Switch]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Switch]]</td></tr> </table> Sat, 18 Dec 2010 07:16:58 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Reconfigure_VLANs_for_802.1q_Compatibility Phuzi0n: guide to change VLAN's from vlan0+1 to vlan1+2 http://wiki.dd-wrt.com/wiki/index.php?title=Reconfigure_VLANs_for_802.1q_Compatibility&diff=37575&oldid=prev <p>guide to change VLAN's from vlan0+1 to vlan1+2</p> <p><b>New page</b></p><div>==Introduction==<br /> VLAN trunking allows you to connect VLAN's across multiple devices without having to use a cable for each VLAN. For instance, if you had VLAN 1 and VLAN 3 on two different devices then you can create a trunk port on both devices to tag the Ethernet frames with an [http://en.wikipedia.org/wiki/IEEE_802.1Q 802.1q] header. Then devices in VLAN 1 on router 1 can communicate with devices in VLAN 1 on router 2 and devices in VLAN 3 on router 1 can communicate with devices in VLAN 3 on router 2.<br /> <br /> Broadcom's 100mbit switches use VLAN 0 as the default LAN VLAN but 802.1q specifies that a tag of &quot;0&quot; means that the frame doesn't belong to any VLAN. This is the reason Broadcom's gigabit switches use VLAN 1 for their LAN and you should avoid using VLAN 0 in a 802.1q trunk to be compatible with others devices. This guide will explain how to reconfigure a device with a Broadcom 100mbit switch to use VLAN 1 for the LAN ports and VLAN 2 for the WAN port to lay the foundation for further configuration of 802.1q tagged ports.<br /> <br /> ==Configuration==<br /> ===Reassign the WAN Port===<br /> '''Note:''' If you have a BCM4704 based device which have a separate internal interface for the WAN port ('''eth1''' instead of '''vlan1''') then you can skip this section.<br /> <br /> # Open the [[Web Interface]] in a web browser.<br /> # Navigate to the '''Setup -&gt; VLAN''' page and move the WAN port (W) to VLAN 2. [[Image:Reconfigure VLANs 1.png]]<br /> # Press the '''Apply''' button and wait one minute before continuing.<br /> # Navigate to the '''Setup -&gt; Networking''' page and change the '''WAN Port Assignment''' from 'vlan1' to ''''vlan2''''. If there is no 'vlan2' in the list then reboot the router and try again.<br /> # Press the '''Apply''' button.<br /> <br /> ===Reassign the LAN Ports===<br /> # Navigate to the '''Setup -&gt; VLAN''' page and move each of the LAN ports (1-4) from VLAN 0 to VLAN 1.<br /> # Change the '''Assigned To Bridge''' setting for VLAN 0 to ''''none'''' to remove it from the LAN bridge (br0).<br /> # Change the '''Assigned To Bridge''' setting for VLAN 1 to ''''LAN'''' to add it to the LAN bridge (br0). [[Image:Reconfigure VLANs 2.png]]<br /> # Press the '''Apply''' button and wait one minute before continuing.<br /> # Navigate to the '''Setup -&gt; Networking''' page and verify that the '''vlan1''' interface is assigned to the '''br0''' bridge. [[Image:Reconfigure VLANs 3.png]]<br /> <br /> ===Finishing Up===<br /> Before you go running off thinking that your configuration is fine, reboot the router to ensure that the settings all persist through a reboot. The DD-WRT firmware has some 'sanity checks' to restore VLAN settings to their default values when they are configured certain ways.<br /> <br /> [[Category:Basic tutorials]]<br /> [[Category:Switch]]</div> Sat, 18 Dec 2010 07:02:25 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Reconfigure_VLANs_for_802.1q_Compatibility