Switched Ports - Revision history http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&action=history Revision history for this page on the wiki en MediaWiki 1.10.1 Fri, 29 Mar 2024 02:10:22 GMT Ian5142: Changed to Red font for swconfig warning. http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=55845&oldid=prev <p>Changed to Red font for swconfig warning.</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 14:28, 25 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''NOTE: This Wiki applies to DD-WRT versions prior to r46604. DD-WRT r46604 and newer use swconfig on Broadcom.'''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;font color=red&gt;</ins>'''NOTE: This Wiki applies to DD-WRT versions prior to r46604. DD-WRT r46604 and newer use swconfig on Broadcom.'''<ins style="color: red; font-weight: bold; text-decoration: none;">&lt;/font&gt;</ins></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;">This page explains proper command line configuration of VLANs on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT ''Setup''-&gt;''Switch Config'' (formerly ''VLANs'') tab. </td><td> </td><td style="background: #eee; font-size: smaller;">This page explains proper command line configuration of VLANs on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT ''Setup''-&gt;''Switch Config'' (formerly ''VLANs'') tab. </td></tr> </table> Tue, 25 May 2021 14:28:07 GMT Ian5142 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Kernel-panic69: /* Introduction */ http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=55833&oldid=prev <p><span class="autocomment">Introduction</span></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 14:21, 14 May 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''NOTE: This Wiki applies to DD-WRT versions prior to r46604. DD-WRT r46604 and newer use swconfig on Broadcom.'''</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;">This page explains proper command line configuration of VLANs on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT ''Setup''-&gt;''Switch Config'' (formerly ''VLANs'') tab. </td><td> </td><td style="background: #eee; font-size: smaller;">This page explains proper command line configuration of VLANs on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT ''Setup''-&gt;''Switch Config'' (formerly ''VLANs'') tab. </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Fri, 14 May 2021 14:21:44 GMT Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Jeremywh7: /* Introduction */ update and add some info from BS http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=55429&oldid=prev <p><span class="autocomment">Introduction -</span> update and add some info from BS</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 18:11, 4 March 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td><td> </td><td style="background: #eee; font-size: smaller;">==Introduction==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">This page explains <del style="color: red; font-weight: bold; text-decoration: none;">how to finish </del>proper configuration of <del style="color: red; font-weight: bold; text-decoration: none;">VLAN's </del>on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT Setup-&gt;<del style="color: red; font-weight: bold; text-decoration: none;">VLANS</del>) <del style="color: red; font-weight: bold; text-decoration: none;">page</del>. </td><td>+</td><td style="background: #cfc; font-size: smaller;">This page explains proper <ins style="color: red; font-weight: bold; text-decoration: none;">command line </ins>configuration of <ins style="color: red; font-weight: bold; text-decoration: none;">VLANs </ins>on the router's internal switch (internal and external ports), usually after using the GUI (DD-WRT <ins style="color: red; font-weight: bold; text-decoration: none;">''</ins>Setup<ins style="color: red; font-weight: bold; text-decoration: none;">''</ins>-&gt;<ins style="color: red; font-weight: bold; text-decoration: none;">''Switch Config'' (formerly ''VLANs''</ins>) <ins style="color: red; font-weight: bold; text-decoration: none;">tab</ins>. </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;">These instructions are necessary:</td><td> </td><td style="background: #eee; font-size: smaller;">These instructions are necessary:</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* Only for Broadcom-based routers <del style="color: red; font-weight: bold; text-decoration: none;">(as far as we know)</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">*Only for Broadcom-based routers</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* For a variety of &quot;basic&quot; setups that are not properly handled in NVRAM by the GUI</td><td>+</td><td style="background: #cfc; font-size: smaller;">*For a variety of &quot;basic&quot; setups that are not properly handled in NVRAM by the GUI</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* For advanced setups that the GUI cannot handle at all.</td><td>+</td><td style="background: #cfc; font-size: smaller;">*For advanced setups that the GUI cannot handle at all<ins style="color: red; font-weight: bold; text-decoration: none;">.</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">*'''NOTE:''' not all Broadcom routers are capable of VLAN configuration. E.g. the WRT320N does not use VLANs for the switch, as they have two independent Ethernet phys, so the switch is non-configurable</ins>. </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;">''Important:'' Before <del style="color: red; font-weight: bold; text-decoration: none;">you follow </del>the instructions below, <del style="color: red; font-weight: bold; text-decoration: none;">DO </del>use the DD-WRT Setup-&gt;VLANs page to make your initial configuration changes.</td><td>+</td><td style="background: #cfc; font-size: smaller;">''Important:'' Before <ins style="color: red; font-weight: bold; text-decoration: none;">following </ins>the instructions below, <ins style="color: red; font-weight: bold; text-decoration: none;">'''first'' </ins>use the DD-WRT Setup-&gt;VLANs page to make your initial configuration changes<ins style="color: red; font-weight: bold; text-decoration: none;">, if possible</ins>.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* If <del style="color: red; font-weight: bold; text-decoration: none;">your </del>only changes involve the checkboxes at the bottom of the page (e.g. Auto-Negatiate...Enabled), <del style="color: red; font-weight: bold; text-decoration: none;">your job </del>is <del style="color: red; font-weight: bold; text-decoration: none;">done!</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">*If <ins style="color: red; font-weight: bold; text-decoration: none;">the </ins>only changes involve the checkboxes at the bottom of the page (e.g. Auto-Negatiate...Enabled), <ins style="color: red; font-weight: bold; text-decoration: none;">nothing else </ins>is <ins style="color: red; font-weight: bold; text-decoration: none;">needed.</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* <del style="color: red; font-weight: bold; text-decoration: none;">If you need other changes</del>, by setting it up first on the <del style="color: red; font-weight: bold; text-decoration: none;">VLANS </del>page, most of your work is already done.</td><td>+</td><td style="background: #cfc; font-size: smaller;">*<ins style="color: red; font-weight: bold; text-decoration: none;">Otherwise</ins>, by setting it up first on the <ins style="color: red; font-weight: bold; text-decoration: none;">VLANs </ins>page, most of your work is already done.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* <del style="color: red; font-weight: bold; text-decoration: none;">While some </del>changes made on the VLANs page do require additional manual configuration<del style="color: red; font-weight: bold; text-decoration: none;">, most of the time the GUI takes care of the hard part!</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">*<ins style="color: red; font-weight: bold; text-decoration: none;">Some </ins>changes made on the VLANs page do require additional manual configuration</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;">'''Note:''' The WLAN is a separate interface from the switch and it does not support VLANs, although it can create virtual interfaces which are similar in some aspects. The WLAN interface is bridged to the LAN VLAN by default. It is possible to bridge VLAN's to different physical or virtual wireless interfaces using [[Multiple WLANs]].</td><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' The WLAN is a separate interface from the switch and it does not support VLANs, although it can create virtual interfaces which are similar in some aspects. The WLAN interface is bridged to the LAN VLAN by default. It is possible to bridge VLAN's to different physical or virtual wireless interfaces using [[Multiple WLANs]].</td></tr> </table> Wed, 04 Mar 2020 18:11:47 GMT Jeremywh7 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Jeremywh7: update bcm section with quarkysg's example script and info http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54561&oldid=prev <p>update bcm section with quarkysg's example script and info</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 16:46, 27 November 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 291:</strong></td> <td colspan="2" align="left"><strong>Line 291:</strong></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;">==Broadcom VLAN limit==</td><td> </td><td style="background: #eee; font-size: smaller;">==Broadcom VLAN limit==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">The </del>15 VLAN <del style="color: red; font-weight: bold; text-decoration: none;">limit </del>for Broadcom has been [http://svn.dd-wrt.com/ticket/6130#comment:2 extended to 4096] for <del style="color: red; font-weight: bold; text-decoration: none;">k3</del>.<del style="color: red; font-weight: bold; text-decoration: none;">10+ starting </del>in <del style="color: red; font-weight: bold; text-decoration: none;">build 35244</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''Pre-k3.10 builds ''OR any'' before 35244''', a separate switch-robo.ko kernel module is required for Broadcom.</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">*Reference<del style="color: red; font-weight: bold; text-decoration: none;">, patches, and modules for older kernels</del>: [https://<del style="color: red; font-weight: bold; text-decoration: none;">www</del>.dd-wrt.com/phpBB2/viewtopic.php?<del style="color: red; font-weight: bold; text-decoration: none;">t</del>=<del style="color: red; font-weight: bold; text-decoration: none;">86919 VIDs beyond 15 possible?</del>]<del style="color: red; font-weight: bold; text-decoration: none;">.</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">*Reference: patches, and modules: [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=86919 VIDs beyond </ins>15 <ins style="color: red; font-weight: bold; text-decoration: none;">possible?], [https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=312045 </ins>VLAN <ins style="color: red; font-weight: bold; text-decoration: none;">config, Updated Guide] (search the forum </ins>for <ins style="color: red; font-weight: bold; text-decoration: none;">more).</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''For k3.10+ starting in build 35244''', the 15 VLAN </ins>Broadcom <ins style="color: red; font-weight: bold; text-decoration: none;">limit </ins>has been [http://svn.dd-wrt.com/ticket/6130#comment:2 extended to 4096]<ins style="color: red; font-weight: bold; text-decoration: none;">. Note that /sys/switch/eth0/vlan will contains 4096 (0-4095) directories instead of just 16 (0-15), which are used </ins>for <ins style="color: red; font-weight: bold; text-decoration: none;">VLAN configuration</ins>.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Example startup script to configure ''VLAN for VID 1000 and 2000'' ('''customize VLAN configuration &amp; VID(s) as needed!'''):</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Clear VLAN 0 &amp; 2</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> echo &quot;&quot; &gt; /proc/switch/eth0/vlan/0/ports</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> echo &quot;&quot; &gt; /proc/switch/eth0/vlan/2/ports</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Configure VLAN 1 with LAN port 1, 2, 3 and CPU port</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> echo &quot;0 1 2 5t*&quot; &gt; /proc/switch/eth0/vlan/1/ports</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Configure VLAN 1000 with WAN port and CPU port (both tagged)</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> echo &quot;4t 5t&quot; &gt; /proc/switch/eth0/vlan/1000/ports</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Configure VLAN 2000 with LAN port 4, WAN port (tagged) and CPU port (tagged)</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> echo &quot;3 4t 5t&quot; &gt; /proc/switch/eth0/vlan/2000/ports</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Setting up VLAN interfaces ...</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # We don't need the vlan2 interface now ...</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/ifconfig vlan2 down</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/vconfig rem vlan2</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Setup vlan1000 interface</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/vconfig add eth0 1000</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/ifconfig vlan1000 up</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/ifconfig vlan1000 txqueuelen 0</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Setup vlan2000 interface</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/vconfig add eth0 2000</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/ifconfig vlan2000 up</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /sbin/ifconfig vlan2000 txqueuelen 0</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> # Tell DD-WRT PPPoE startup code to use the new WAN interface</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> /usr/sbin/nvram set pppoe_wan_ifname=vlan1000</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">*One could instead continue to use the NVRAM method to interface with DD-WRT configuration subsystems.</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">*Avoid storing too much </ins>in <ins style="color: red; font-weight: bold; text-decoration: none;">NVRAM (i.e. scripts). '''Recommended:''' use USB or JFFS partitions if possible</ins>.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">*Reference: <ins style="color: red; font-weight: bold; text-decoration: none;">quarkysg post in </ins>[https://<ins style="color: red; font-weight: bold; text-decoration: none;">forum</ins>.dd-wrt.com/phpBB2/viewtopic.php?<ins style="color: red; font-weight: bold; text-decoration: none;">p</ins>=<ins style="color: red; font-weight: bold; text-decoration: none;">1102836#1102836 VLAN config, Updated Guide</ins>]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</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> <tr><td colspan="2" align="left"><strong>Line 302:</strong></td> <td colspan="2" align="left"><strong>Line 342:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">*[[VLAN Detached Networks (Separate Networks With Internet)|VLAN Detached Networks (Separate Networks With Internet)]]</td><td> </td><td style="background: #eee; font-size: smaller;">*[[VLAN Detached Networks (Separate Networks With Internet)|VLAN Detached Networks (Separate Networks With Internet)]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">*[[VLAN Detached Networks each with Wireless and Internet|VLAN Detached Networks each with Wireless and Internet]]</td><td> </td><td style="background: #eee; font-size: smaller;">*[[VLAN Detached Networks each with Wireless and Internet|VLAN Detached Networks each with Wireless and Internet]]</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">* Forum thread for [https://www.dd-wrt.com/phpBB2/viewtopic.php?t=312045 VLAN config, Updated Guide]</td><td colspan="2">&nbsp;</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:Switch]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Switch]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Low-level settings]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Low-level settings]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:VLANs]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:VLANs]]</td></tr> </table> Tue, 27 Nov 2018 16:46:03 GMT Jeremywh7 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports S2s2: updated link http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54470&oldid=prev <p>updated link</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 19:07, 24 October 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 15:</strong></td> <td colspan="2" align="left"><strong>Line 15:</strong></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;">==Visual mapping chart==</td><td> </td><td style="background: #eee; font-size: smaller;">==Visual mapping chart==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Default_internal_device_network<del style="color: red; font-weight: bold; text-decoration: none;">] </del>Default internal device network</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Default_internal_device_network<ins style="color: red; font-weight: bold; text-decoration: none;">|</ins>Default internal device network <ins style="color: red; font-weight: bold; text-decoration: none;">(vlan0, vlan1, eth0, eth1, eth2 etc)</ins>]<ins style="color: red; font-weight: bold; text-decoration: none;">]</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">]</td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">==Preserve Settings Before you start==</td><td> </td><td style="background: #eee; font-size: smaller;">==Preserve Settings Before you start==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH_and_the_command_line|Telnet or SSH]] to the router (do '''not''' use the ''Commands'' GUI!) and run these commands to check the nvram variables for your default vlan configuration before you start so that you know the default configuration if you need to revert your changes without hard resetting.</td><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH_and_the_command_line|Telnet or SSH]] to the router (do '''not''' use the ''Commands'' GUI!) and run these commands to check the nvram variables for your default vlan configuration before you start so that you know the default configuration if you need to revert your changes without hard resetting.</td></tr> </table> Wed, 24 Oct 2018 19:07:19 GMT S2s2 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports S2s2: added the default internal device map http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54469&oldid=prev <p>added the default internal device map</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 19:05, 24 October 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 14:</strong></td> <td colspan="2" align="left"><strong>Line 14:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' The WLAN is a separate interface from the switch and it does not support VLANs, although it can create virtual interfaces which are similar in some aspects. The WLAN interface is bridged to the LAN VLAN by default. It is possible to bridge VLAN's to different physical or virtual wireless interfaces using [[Multiple WLANs]].</td><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' The WLAN is a separate interface from the switch and it does not support VLANs, although it can create virtual interfaces which are similar in some aspects. The WLAN interface is bridged to the LAN VLAN by default. It is possible to bridge VLAN's to different physical or virtual wireless interfaces using [[Multiple WLANs]].</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 colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">==Visual mapping chart==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Default_internal_device_network] Default internal device network</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;">==Preserve Settings Before you start==</td><td> </td><td style="background: #eee; font-size: smaller;">==Preserve Settings Before you start==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH_and_the_command_line|Telnet or SSH]] to the router (do '''not''' use the ''Commands'' GUI!) and run these commands to check the nvram variables for your default vlan configuration before you start so that you know the default configuration if you need to revert your changes without hard resetting.</td><td> </td><td style="background: #eee; font-size: smaller;">[[Telnet/SSH_and_the_command_line|Telnet or SSH]] to the router (do '''not''' use the ''Commands'' GUI!) and run these commands to check the nvram variables for your default vlan configuration before you start so that you know the default configuration if you need to revert your changes without hard resetting.</td></tr> </table> Wed, 24 Oct 2018 19:05:42 GMT S2s2 http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Webbed.Pete: /* Usage examples */ cleaned up a few errors. http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54410&oldid=prev <p><span class="autocomment">Usage examples -</span> cleaned up a few errors.</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 20:26, 1 September 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 211:</strong></td> <td colspan="2" align="left"><strong>Line 211:</strong></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;">==Usage examples==</td><td> </td><td style="background: #eee; font-size: smaller;">==Usage examples==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">''<del style="color: red; font-weight: bold; text-decoration: none;">'Note</del>:''' <del style="color: red; font-weight: bold; text-decoration: none;">Only </del>VLAN's 0-15 <del style="color: red; font-weight: bold; text-decoration: none;">are usable </del>on 100mbit models and <del style="color: red; font-weight: bold; text-decoration: none;">VLAN's </del>1-15 on gigabit models.</td><td>+</td><td style="background: #cfc; font-size: smaller;">''<ins style="color: red; font-weight: bold; text-decoration: none;">Reminder</ins>:''' <ins style="color: red; font-weight: bold; text-decoration: none;">Available </ins>VLAN's <ins style="color: red; font-weight: bold; text-decoration: none;">are </ins>0-15 on 100mbit models and 1-15 on gigabit models<ins style="color: red; font-weight: bold; text-decoration: none;">, except that as noted above newer Broadcom gigabit firmware supports VLANs up to 4096</ins>.</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;">===Second WAN port===</td><td> </td><td style="background: #eee; font-size: smaller;">===Second WAN port===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">You can move ports to the WAN VLAN to make them act as WAN ports residing outside the router's NAT or to just replace a damaged WAN port. Devices attached to these ports will request their IP addresses from the ISP instead of getting a private IP address from your router. One might want to have such behavior when having unsorted firewall issues with a SIP operator. </td><td>+</td><td style="background: #cfc; font-size: smaller;">You can move ports to the WAN VLAN to make them act as WAN ports residing outside the router's NAT or to just replace a damaged WAN port. Devices attached to these ports will request their IP addresses from the ISP instead of getting a private IP address from your router. One might want to have such behavior when having unsorted firewall issues with a SIP operator. <ins style="color: red; font-weight: bold; text-decoration: none;"> This example assumes a 100mbit router withvlan0 for LAN and vlan1 for WAN, and adds internal port 4 to vlan1:</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;1 2 3 5*&quot; </td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;1 2 3 5*&quot; </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;0 '''4''' 5&quot; </td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;0 '''4''' 5&quot; </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nvram set port4vlans=&quot;4 17 18&quot;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram commit </td><td> </td><td style="background: #eee; font-size: smaller;"> nvram commit </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> reboot</td><td> </td><td style="background: #eee; font-size: smaller;"> reboot</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;">===Disable LAN ports===</td><td> </td><td style="background: #eee; font-size: smaller;">===Disable LAN ports===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Another use is to disable <del style="color: red; font-weight: bold; text-decoration: none;">all </del>LAN ports <del style="color: red; font-weight: bold; text-decoration: none;">except </del>the <del style="color: red; font-weight: bold; text-decoration: none;">one </del>that connects you to the rest of the world. You can use your router as <del style="color: red; font-weight: bold; text-decoration: none;">an </del>access point and no one can plug in a network cable to get around your Radius authentication (requested in the [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=26821 German forum]).</td><td>+</td><td style="background: #cfc; font-size: smaller;">Another use is to disable <ins style="color: red; font-weight: bold; text-decoration: none;">most of the wired </ins>LAN ports<ins style="color: red; font-weight: bold; text-decoration: none;">, leaving only </ins>the <ins style="color: red; font-weight: bold; text-decoration: none;">WAN port </ins>that connects you to the rest of the world. You can use your router as <ins style="color: red; font-weight: bold; text-decoration: none;">a WiFi </ins>access point and no one can plug in a network cable to get around your Radius authentication (requested in the [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=26821 German forum]). <ins style="color: red; font-weight: bold; text-decoration: none;">NOTE that in case of trouble you probably want to keep one LAN port available, as in this example:</ins></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;">Example to only enable LAN port 1 (tested with a WRT54Gv5):</td><td>+</td><td style="background: #cfc; font-size: smaller;">Example to only enable LAN <ins style="color: red; font-weight: bold; text-decoration: none;">external </ins>port 1 <ins style="color: red; font-weight: bold; text-decoration: none;">(internal port 3) </ins>(tested with a WRT54Gv5):</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;3 5*&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;3 5*&quot;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> nvram set vlan1ports=&quot;5&quot;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nvram set vlan1ports=&quot;<ins style="color: red; font-weight: bold; text-decoration: none;">4 </ins>5&quot;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> nvram unset port0vlans</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> nvram unset port1vlans</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> nvram unset port2vlans</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram commit</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram commit</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> reboot </td><td> </td><td style="background: #eee; font-size: smaller;"> reboot </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;">===Separate LAN ports (into another subnet)===</td><td> </td><td style="background: #eee; font-size: smaller;">===Separate LAN ports (into another subnet)===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">You can create new VLAN's to separate LAN ports into <del style="color: red; font-weight: bold; text-decoration: none;">different </del>subnets. After you have them separated you can use [[Iptables_command|iptables]] to restrict access between the VLAN's/subnets.</td><td>+</td><td style="background: #cfc; font-size: smaller;">You can create new VLAN's to separate LAN ports into <ins style="color: red; font-weight: bold; text-decoration: none;">multiple </ins>subnets. After you have them separated you can use [[Iptables_command|iptables]] to restrict access between the VLAN's/subnets. <ins style="color: red; font-weight: bold; text-decoration: none;">Here on a 100 mbit router we'll move port 4 to its own vlan3:</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;1 2 3 5*&quot; </td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan0ports=&quot;1 2 3 5*&quot; </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;0 5&quot; </td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;0 5&quot; </td></tr> <tr><td colspan="2" align="left"><strong>Line 241:</strong></td> <td colspan="2" align="left"><strong>Line 245:</strong></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;">===802.1q VLAN trunk===</td><td> </td><td style="background: #eee; font-size: smaller;">===802.1q VLAN trunk===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">VLAN trunking allows you to connect VLAN's <del style="color: red; font-weight: bold; text-decoration: none;">across multiple devices </del>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: #cfc; font-size: smaller;">VLAN trunking allows you to connect <ins style="color: red; font-weight: bold; text-decoration: none;">multiple </ins>VLAN's <ins style="color: red; font-weight: bold; text-decoration: none;">between two routers </ins>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: #eee; font-size: smaller;">'''Note:''' 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 gigabit models use VLAN 1 for their LAN and you should avoid using VLAN 0 in a trunk because of this.</td><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' 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 gigabit models use VLAN 1 for their LAN and you should avoid using VLAN 0 in a trunk because of this.</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;">For every VLAN that you want <del style="color: red; font-weight: bold; text-decoration: none;">to be </del>trunked you must put the trunk port into the VLAN and add a &quot;t&quot; after the port number to indicate that it will be tagged.</td><td>+</td><td style="background: #cfc; font-size: smaller;">For every VLAN that you want trunked you must put the trunk port into the VLAN and add a &quot;t&quot; after the port number to indicate that it will be tagged.</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;">Here is an example of how to put three LAN ports into separate VLAN's and use the fourth LAN port as a trunk on a gigabit model. The commands that are commented out should already be set by default.</td><td>+</td><td style="background: #cfc; font-size: smaller;">Here is an example of how to put three LAN ports <ins style="color: red; font-weight: bold; text-decoration: none;">(3, 2, and 1) </ins>into separate VLAN's <ins style="color: red; font-weight: bold; text-decoration: none;">(1, 3 and 4) </ins>and use the fourth LAN port <ins style="color: red; font-weight: bold; text-decoration: none;">(4) </ins>as a trunk on a gigabit model<ins style="color: red; font-weight: bold; text-decoration: none;">. VLAN 2 is still the WAN default VLAN; port 0 is the WAN port here</ins>. The commands that are commented out should already be set by default.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 '''4t''' 8*&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 '''4t''' 8*&quot;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> #nvram set vlan2ports=&quot;0 8&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> #nvram set vlan2ports=&quot;0 8&quot;</td></tr> </table> Sat, 01 Sep 2018 20:26:17 GMT Webbed.Pete http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Webbed.Pete: /* NVRAM port#vlans */ http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54409&oldid=prev <p><span class="autocomment">NVRAM port#vlans</span></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 20:09, 1 September 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 168:</strong></td> <td colspan="2" align="left"><strong>Line 168:</strong></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;">===NVRAM port#vlans===</td><td> </td><td style="background: #eee; font-size: smaller;">===NVRAM port#vlans===</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">The port'''#'''vlans variables define the vlan for each port, and other per-port attributes.</td><td>+</td><td style="background: #cfc; font-size: smaller;">The port'''#'''vlans variables define the vlan<ins style="color: red; font-weight: bold; text-decoration: none;">(s) </ins>for each port, and other per-port attributes.</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;">Note that each port <del style="color: red; font-weight: bold; text-decoration: none;">can </del>only <del style="color: red; font-weight: bold; text-decoration: none;">be </del>in one vlan, except that the CPU port is connected to all vlans. ALSO note that ''for this NVRAM variable, the CPU port is always port 5, never port 8.''</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note that each port <ins style="color: red; font-weight: bold; text-decoration: none;">is normally </ins>only in one vlan, except that the CPU port is connected to all vlans. <ins style="color: red; font-weight: bold; text-decoration: none;">(There are unusual cases where a port can be placed in multiple vlans.) </ins>ALSO note that ''for this NVRAM variable, the CPU port is always port 5, never port 8.''</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;">By default, then WAN port is connected to the default WAN VLAN (1 or 2), and all other ports are connected to the default LAN VLAN (0 or 1).</td><td> </td><td style="background: #eee; font-size: smaller;">By default, then WAN port is connected to the default WAN VLAN (1 or 2), and all other ports are connected to the default LAN VLAN (0 or 1).</td></tr> </table> Sat, 01 Sep 2018 20:09:35 GMT Webbed.Pete http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Webbed.Pete: /* Other VLAN attributes */ http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54408&oldid=prev <p><span class="autocomment">Other VLAN attributes</span></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 20:08, 1 September 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 161:</strong></td> <td colspan="2" align="left"><strong>Line 161:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">====Other VLAN attributes====</td><td> </td><td style="background: #eee; font-size: smaller;">====Other VLAN attributes====</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">These are suffixes for the final CPU port number.</td><td> </td><td style="background: #eee; font-size: smaller;">These are suffixes for the final CPU port number.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">; &quot;t&quot; : tag with 802.1q vlan header ''(e.g. for trunking). </td><td>+</td><td style="background: #cfc; font-size: smaller;">; &quot;t&quot; : tag with 802.1q vlan header ''(e.g. for trunking)<ins style="color: red; font-weight: bold; text-decoration: none;">. Can be added to one or more ports in a vlan</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">; &quot;u&quot; : used on WAN vlan, to ensure WAN traffic is ''untagged''.</td><td> </td><td style="background: #eee; font-size: smaller;">; &quot;u&quot; : used on WAN vlan, to ensure WAN traffic is ''untagged''.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">; &quot;*&quot; : used on default LAN VLAN, untagged incoming traffic goes here.</td><td> </td><td style="background: #eee; font-size: smaller;">; &quot;*&quot; : used on default LAN VLAN, untagged incoming traffic goes here.</td></tr> </table> Sat, 01 Sep 2018 20:08:12 GMT Webbed.Pete http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports Webbed.Pete: /* A few important notes */ Added 4096 port config link detail http://wiki.dd-wrt.com/wiki/index.php?title=Switched_Ports&diff=54407&oldid=prev <p><span class="autocomment">A few important notes -</span> Added 4096 port config link detail</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 20:07, 1 September 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 79:</strong></td> <td colspan="2" align="left"><strong>Line 79:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* The same is a safe assumption for the default LAN vlan (1 or 0) as well.</td><td> </td><td style="background: #eee; font-size: smaller;">* The same is a safe assumption for the default LAN vlan (1 or 0) as well.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* We've spent a lot of effort on these low-numbered vlan ID's. The DD-WRT GUI allows you to easily define much higher vlan numbers. And the newest releases support vlan id's as high as 4096, but you have to use those via direct NVRAM configuration as shown below, rather than in the GUI.</td><td> </td><td style="background: #eee; font-size: smaller;">* We've spent a lot of effort on these low-numbered vlan ID's. The DD-WRT GUI allows you to easily define much higher vlan numbers. And the newest releases support vlan id's as high as 4096, but you have to use those via direct NVRAM configuration as shown below, rather than in the GUI.</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;">NOTE: As of revs 35079-35165 (depending on the kernel), 4096 VLAN ID support is now built in, for Broadcom-based devices. [[https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1102836#1102836 This link]] is a good starting place.]]</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;">===Summary===</td><td> </td><td style="background: #eee; font-size: smaller;">===Summary===</td></tr> </table> Sat, 01 Sep 2018 20:07:19 GMT Webbed.Pete http://wiki.dd-wrt.com/wiki/index.php/Talk:Switched_Ports