Enabling VLAN Support for BCM4704 - Revision history http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&action=history Revision history for this page on the wiki en MediaWiki 1.10.1 Thu, 28 Mar 2024 15:42:03 GMT Ian5142: Added VLANs Category. Removed Basic Tutorial Category. http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=54062&oldid=prev <p>Added VLANs Category. Removed Basic Tutorial Category.</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:21, 21 March 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 76:</strong></td> <td colspan="2" align="left"><strong>Line 76:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">After it has rebooted you should find a new page in the [[Web Interface]] at '''Setup -&gt; VLANs''' which will allow you to reconfigure the VLAN's of the LAN ports.</td><td> </td><td style="background: #eee; font-size: smaller;">After it has rebooted you should find a new page in the [[Web Interface]] at '''Setup -&gt; VLANs''' which will allow you to reconfigure the VLAN's of the LAN 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: #ffa; font-size: smaller;">[[Category:<del style="color: red; font-weight: bold; text-decoration: none;">Basic tutorials</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">VLANs</ins>]]</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> </table> Wed, 21 Mar 2018 18:21:12 GMT Ian5142 http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n at 17:10, 10 March 2011 http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=40139&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 17:10, 10 March 2011</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: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>=Introduction<del style="color: red; font-weight: bold; text-decoration: none;">=</del>=</td><td>+</td><td style="background: #cfc; font-size: smaller;">=Introduction=</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this page will explain how to enable it.</td><td> </td><td style="background: #eee; font-size: smaller;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this page will explain how to enable it.</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" align="left"><strong>Line 6:</strong></td> <td colspan="2" align="left"><strong>Line 6:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''If you do not know what CPU your router has then you probably don't belong on this page. Check the [[Supported Devices]] page or the [http://www.dd-wrt.com/site/support/router-database Router Database] to find out what CPU your router has.'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''If you do not know what CPU your router has then you probably don't belong on this page. Check the [[Supported Devices]] page or the [http://www.dd-wrt.com/site/support/router-database Router Database] to find out what CPU your router has.'''</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;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>=Enabling Support<del style="color: red; font-weight: bold; text-decoration: none;">=</del>=</td><td>+</td><td style="background: #cfc; font-size: smaller;">=Enabling Support=</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>==Hidden Support<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;">There are two different methods for enabling VLAN support on BCM4704 models. The first method is pretty easy but only works if it has been coded into the firmware. The second method is more difficult because it does everything that the firmware would do to enable VLAN support.</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;">==Hidden Support==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Eko has been kind enough to add hidden support for some BCM4704 models which can be enabled by setting an nvram variable via [[Telnet/SSH]] like so:</td><td> </td><td style="background: #eee; font-size: smaller;">Eko has been kind enough to add hidden support for some BCM4704 models which can be enabled by setting an nvram variable via [[Telnet/SSH]] like so:</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" align="left"><strong>Line 28:</strong></td> <td colspan="2" align="left"><strong>Line 30:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">If you model supports this method then you do not need to use the methods explained in the Very Hidden Support section below and should skip to the Finish Configuration section.</td><td> </td><td style="background: #eee; font-size: smaller;">If you model supports this method then you do not need to use the methods explained in the Very Hidden Support section below and should skip to the Finish Configuration section.</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;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>==Very Hidden Support<del style="color: red; font-weight: bold; text-decoration: none;">=</del>==</td><td>+</td><td style="background: #cfc; font-size: smaller;">==Very Hidden Support==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support. The commands in this section are more prone to user error so I'm compelled to warn you that you may lose connectivity if you set them incorrectly. If this occurs then you may need to use wireless to correct your settings or [[Hard Reset]] the router and start over.</td><td> </td><td style="background: #eee; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support. The commands in this section are more prone to user error so I'm compelled to warn you that you may lose connectivity if you set them incorrectly. If this occurs then you may need to use wireless to correct your settings or [[Hard Reset]] the router and start over.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>===Configure Boardflags<del style="color: red; font-weight: bold; text-decoration: none;">=</del>===</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;">===Configure Boardflags===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</td><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</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" align="left"><strong>Line 45:</strong></td> <td colspan="2" align="left"><strong>Line 48:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set boardflags=0x110</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set boardflags=0x110</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;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>===Configure VLAN's<del style="color: red; font-weight: bold; text-decoration: none;">=</del>===</td><td>+</td><td style="background: #cfc; font-size: smaller;">===Configure VLAN's===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">As explained more in depth on the [[Switched Ports]] page, nvram variables controlling which ports belong to which VLAN's need to be set. Run this to put all the LAN ports in VLAN 1 and clear out anything in VLAN 0 just in case the firmware set it. The firmware would normally use VLAN 0 but you should avoid VLAN 0 when possible due to the problem with trunking explained on the switched ports page.</td><td> </td><td style="background: #eee; font-size: smaller;">As explained more in depth on the [[Switched Ports]] page, nvram variables controlling which ports belong to which VLAN's need to be set. Run this to put all the LAN ports in VLAN 1 and clear out anything in VLAN 0 just in case the firmware set it. The firmware would normally use VLAN 0 but you should avoid VLAN 0 when possible due to the problem with trunking explained on the switched ports page.</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" align="left"><strong>Line 56:</strong></td> <td colspan="2" align="left"><strong>Line 59:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 2 1 0 5*&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 2 1 0 5*&quot;</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;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>===Configure the LAN Bridge<del style="color: red; font-weight: bold; text-decoration: none;">=</del>===</td><td>+</td><td style="background: #cfc; font-size: smaller;">===Configure the LAN Bridge===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">By default the LAN switch interface is '''eth0''' on BCM4704 based devices. DD-WRT puts the LAN switch interface in a bridge with the wireless interface(s). After VLAN's are enabled this interface won't be usable anymore and the VLAN interfaces will need to be put in the bridge instead. To do so you must first check what interfaces are in the LAN bridge using this command.</td><td> </td><td style="background: #eee; font-size: smaller;">By default the LAN switch interface is '''eth0''' on BCM4704 based devices. DD-WRT puts the LAN switch interface in a bridge with the wireless interface(s). After VLAN's are enabled this interface won't be usable anymore and the VLAN interfaces will need to be put in the bridge instead. To do so you must first check what interfaces are in the LAN bridge using this command.</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" align="left"><strong>Line 65:</strong></td> <td colspan="2" align="left"><strong>Line 68:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set lan_ifnames=&quot;vlan1 eth2 wl0.1&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set lan_ifnames=&quot;vlan1 eth2 wl0.1&quot;</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;"><del style="color: red; font-weight: bold; text-decoration: none;">=</del>=Finish Configuration<del style="color: red; font-weight: bold; text-decoration: none;">=</del>=</td><td>+</td><td style="background: #cfc; font-size: smaller;">=Finish Configuration=</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">After you've set all your nvram variables you need to commit them to the flash chip so that they will be saved and then reboot for it all to take effect.</td><td> </td><td style="background: #eee; font-size: smaller;">After you've set all your nvram variables you need to commit them to the flash chip so that they will be saved and then reboot for it all to take effect.</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> Thu, 10 Mar 2011 17:10:41 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n at 17:05, 10 March 2011 http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=40138&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 17:05, 10 March 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 6:</strong></td> <td colspan="2" align="left"><strong>Line 6:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''If you do not know what CPU your router has then you probably don't belong on this page. Check the [[Supported Devices]] page or the [http://www.dd-wrt.com/site/support/router-database Router Database] to find out what CPU your router has.'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''If you do not know what CPU your router has then you probably don't belong on this page. Check the [[Supported Devices]] page or the [http://www.dd-wrt.com/site/support/router-database Router Database] to find out what CPU your router has.'''</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;">==Hidden Support==</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">==Enabling Support==</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>==Hidden Support<ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Eko has been kind enough to add hidden support for some BCM4704 models which can be enabled by setting an nvram variable via [[Telnet/SSH]] like so:</td><td> </td><td style="background: #eee; font-size: smaller;">Eko has been kind enough to add hidden support for some BCM4704 models which can be enabled by setting an nvram variable via [[Telnet/SSH]] like so:</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" align="left"><strong>Line 25:</strong></td> <td colspan="2" align="left"><strong>Line 26:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</td><td> </td><td style="background: #eee; font-size: smaller;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</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;">If you <del style="color: red; font-weight: bold; text-decoration: none;">have VLAN interfaces listed on the Networking page of the GUI after enabling </del>this then you do not need to <del style="color: red; font-weight: bold; text-decoration: none;">do anything else </del>to <del style="color: red; font-weight: bold; text-decoration: none;">enable VLAN's</del>.</td><td>+</td><td style="background: #cfc; font-size: smaller;">If you <ins style="color: red; font-weight: bold; text-decoration: none;">model supports </ins>this <ins style="color: red; font-weight: bold; text-decoration: none;">method </ins>then you do not need to <ins style="color: red; font-weight: bold; text-decoration: none;">use the methods explained in the Very Hidden Support section below and should skip </ins>to <ins style="color: red; font-weight: bold; text-decoration: none;">the Finish Configuration section</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;">==Very Hidden Support==</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>==Very Hidden Support<ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support. The commands in this section are more prone to user error so I'm compelled to warn you that you may lose connectivity if you set them incorrectly. If this occurs then you may need to use wireless to correct your settings or [[Hard Reset]] the router and start over.</td><td> </td><td style="background: #eee; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support. The commands in this section are more prone to user error so I'm compelled to warn you that you may lose connectivity if you set them incorrectly. If this occurs then you may need to use wireless to correct your settings or [[Hard Reset]] the router and start over.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">===Configure Boardflags===</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===Configure Boardflags<ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</td><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</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" align="left"><strong>Line 44:</strong></td> <td colspan="2" align="left"><strong>Line 45:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set boardflags=0x110</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set boardflags=0x110</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;">===Configure VLAN's===</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===Configure VLAN's<ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">As explained more in depth on the [[Switched Ports]] page, nvram variables controlling which ports belong to which VLAN's need to be set. Run this to put all the LAN ports in VLAN 1 and clear out anything in VLAN 0 just in case the firmware set it. The firmware would normally use VLAN 0 but you should avoid VLAN 0 when possible due to the problem with trunking explained on the switched ports page.</td><td> </td><td style="background: #eee; font-size: smaller;">As explained more in depth on the [[Switched Ports]] page, nvram variables controlling which ports belong to which VLAN's need to be set. Run this to put all the LAN ports in VLAN 1 and clear out anything in VLAN 0 just in case the firmware set it. The firmware would normally use VLAN 0 but you should avoid VLAN 0 when possible due to the problem with trunking explained on the switched ports page.</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" align="left"><strong>Line 55:</strong></td> <td colspan="2" align="left"><strong>Line 56:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 2 1 0 5*&quot;</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set vlan1ports=&quot;3 2 1 0 5*&quot;</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;">===Configure the LAN Bridge===</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===Configure the LAN Bridge<ins style="color: red; font-weight: bold; text-decoration: none;">=</ins>===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">By default the LAN switch interface is '''eth0''' on BCM4704 based devices. DD-WRT puts the LAN switch interface in a bridge with the wireless interface(s). After VLAN's are enabled this interface won't be usable anymore and the VLAN interfaces will need to be put in the bridge instead. To do so you must first check what interfaces are in the LAN bridge using this command.</td><td> </td><td style="background: #eee; font-size: smaller;">By default the LAN switch interface is '''eth0''' on BCM4704 based devices. DD-WRT puts the LAN switch interface in a bridge with the wireless interface(s). After VLAN's are enabled this interface won't be usable anymore and the VLAN interfaces will need to be put in the bridge instead. To do so you must first check what interfaces are in the LAN bridge using this command.</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> Thu, 10 Mar 2011 17:05:53 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Hidden Support */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=40137&oldid=prev <p><span class="autocomment">Hidden Support</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 17:00, 10 March 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</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 set force_vlan_supp=enabled</td><td> </td><td style="background: #eee; font-size: smaller;"> nvram set force_vlan_supp=enabled</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nvram commit</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; 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;">As of revision 15925 the following BCM4704 models may use this method:</td><td> </td><td style="background: #eee; font-size: smaller;">As of revision 15925 the following BCM4704 models may use this method:</td></tr> <tr><td colspan="2" align="left"><strong>Line 22:</strong></td> <td colspan="2" align="left"><strong>Line 24:</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;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</td><td> </td><td style="background: #eee; font-size: smaller;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</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;">If you have VLAN interfaces listed on the Networking page of the GUI after enabling this then you do not need to do anything else to enable VLAN's.</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;">==Very Hidden Support==</td><td> </td><td style="background: #eee; font-size: smaller;">==Very Hidden Support==</td></tr> </table> Thu, 10 Mar 2011 17:00:33 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Introduction */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=39850&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 13:51, 2 March 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 3:</strong></td> <td colspan="2" align="left"><strong>Line 3:</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;">'''Note:''' Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</td><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</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;">'''If you do not know what CPU your router has then you probably don't belong on this page. Check the [[Supported Devices]] page or the [http://www.dd-wrt.com/site/support/router-database Router Database] to find out what CPU your router has.'''</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;">==Hidden Support==</td><td> </td><td style="background: #eee; font-size: smaller;">==Hidden Support==</td></tr> </table> Wed, 02 Mar 2011 13:51:07 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Hidden Support */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=39650&oldid=prev <p><span class="autocomment">Hidden Support</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 23:33, 20 February 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 19:</strong></td> <td colspan="2" align="left"><strong>Line 19:</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;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000<del style="color: red; font-weight: bold; text-decoration: none;">/dd-wrt</del>/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</td><td>+</td><td style="background: #cfc; font-size: smaller;">For reference, you can check which models support this method by looking at the source code [http://svn.dd-wrt.com:8000/browser/src/router/services/sysinit/sysinit-broadcom.c in this file] for two CASE statements that match your model name and have &quot;force_vlan_supp&quot; statements. One CASE configures the interfaces and the other CASE sets boardflags.</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;">==Very Hidden Support==</td><td> </td><td style="background: #eee; font-size: smaller;">==Very Hidden Support==</td></tr> </table> Sun, 20 Feb 2011 23:33:49 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Finish Configuration */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=37574&oldid=prev <p><span class="autocomment">Finish Configuration</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 07:01, 18 December 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 63:</strong></td> <td colspan="2" align="left"><strong>Line 63:</strong></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 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;">After it has rebooted you should find a new page in the [[Web Interface]] at '''Setup -&gt; VLANs''' which will allow you to reconfigure the VLAN's of the LAN 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;">[[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> <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> </table> Sat, 18 Dec 2010 07:01:01 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Introduction */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=37569&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 05:26, 18 December 2010</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;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this will explain how to enable it.</td><td>+</td><td style="background: #cfc; font-size: smaller;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this <ins style="color: red; font-weight: bold; text-decoration: none;">page </ins>will explain how to enable it.</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:''' Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</td><td> </td><td style="background: #eee; font-size: smaller;">'''Note:''' Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</td></tr> </table> Sat, 18 Dec 2010 05:26:11 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n: /* Very Hidden Support */ http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=37568&oldid=prev <p><span class="autocomment">Very Hidden Support</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 05:22, 18 December 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 22:</strong></td> <td colspan="2" align="left"><strong>Line 22:</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;">==Very Hidden Support==</td><td> </td><td style="background: #eee; font-size: smaller;">==Very Hidden Support==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support. </td><td>+</td><td style="background: #cfc; font-size: smaller;">The force_vlan_supp nvram variable just tells the firmware to change a few other nvram variables which you can do manually on any Broadcom based hardware to enable VLAN support<ins style="color: red; font-weight: bold; text-decoration: none;">. The commands in this section are more prone to user error so I'm compelled to warn you that you may lose connectivity if you set them incorrectly. If this occurs then you may need to use wireless to correct your settings or [[Hard Reset]] the router and start over</ins>.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Configure Boardflags===</td><td> </td><td style="background: #eee; font-size: smaller;">===Configure Boardflags===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</td><td> </td><td style="background: #eee; font-size: smaller;">The [[Hardware#Boardflags| boardflags]] nvram variables contains a hexadecimal number which tells what features the hardware is capable of based on which bits are set. If the 0x'''0100''' bit is set then the hardware is capable of VLAN's. By default this bit is not set on BCM4704 devices so you must set it to enable VLAN support.</td></tr> </table> Sat, 18 Dec 2010 05:22:48 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704 Phuzi0n at 03:27, 18 December 2010 http://wiki.dd-wrt.com/wiki/index.php?title=Enabling_VLAN_Support_for_BCM4704&diff=37565&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 03:27, 18 December 2010</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;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this will explain how to enable it.</td><td> </td><td style="background: #eee; font-size: smaller;">BCM4704 is a rather unique chipset compared to most Broadcom based hardware. It has separate internal interfaces for the WAN port and LAN switch whereas most other Broadcom hardware has a single interface which is then split into VLAN's. Hardware VLAN support can be enabled for the LAN switch of BCM4704 based devices. For whatever reason the devs don't enable VLAN support for BCM4704 based devices by default so this will explain how to enable it.</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: Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>Note:<ins style="color: red; font-weight: bold; text-decoration: none;">''' </ins>Since the WAN port is a separate interface it will not be affected by this. The WAN port column will still show up on the VLAN GUI page simply because the GUI isn't coded to know any better. If you want to use the WAN port with VLAN's then you can use the Linux kernel's software VLAN tagging and bridging on the networking page but that's another topic.</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;">==Hidden Support==</td><td> </td><td style="background: #eee; font-size: smaller;">==Hidden Support==</td></tr> <tr><td colspan="2" align="left"><strong>Line 59:</strong></td> <td colspan="2" align="left"><strong>Line 59:</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;">==Finish Configuration==</td><td> </td><td style="background: #eee; font-size: smaller;">==Finish Configuration==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">After you've set all your nvram variables you need to commit them to the flash chip and reboot for it all to take effect.</td><td>+</td><td style="background: #cfc; font-size: smaller;">After you've set all your nvram variables you need to commit them to the flash chip <ins style="color: red; font-weight: bold; text-decoration: none;">so that they will be saved </ins>and <ins style="color: red; font-weight: bold; text-decoration: none;">then </ins>reboot for it all to take effect.</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 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 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;">[[Category:Basic tutorials]]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Switch]]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Low-level settings]]</td></tr> </table> Sat, 18 Dec 2010 03:27:10 GMT Phuzi0n http://wiki.dd-wrt.com/wiki/index.php/Talk:Enabling_VLAN_Support_for_BCM4704