You are visiting:Home arrow Articles for Geeks arrow Latest arrow 802.1q trunking on the Linksys WRT54G/S/L with DD-WRT Tuesday, 09 March 2010
Google
Support Geek-Pages.com in making a small donation:
Main Menu
Home
Articles for Geeks
FAQs for Non-Geeks
Links
Kevan's Blog
Contact Us
Search
Login Form





Lost Password?
No account yet? Register
Submit article to:
802.1q trunking on the Linksys WRT54G/S/L with DD-WRT PDF Print E-mail
Written by Kevan   
 

First Step - Changing Network A's VLAN

 First we will move the default internal LAN network (Network A) from VLAN 0 to VLAN 2

1)  Install the v.23 dd-wrt final or SP1 beta version of firmware available HERE -- Instructions for installing DD-WRT are available HERE

2)  Logon to the web management interface in DD-WRT.  Select the Administration tab.  Scroll down until you find the JFFS2 Support information.  JFFS2 must be enabled.  If you have never enabled JFFS2 before you will also need to select the Clean JFFS2 enable button to initialize the file system.  Scroll to the bottom and select Save Settings

 DD-WRT JFFS Image


3)  Telnet to your router and enter the username of root and your administrative password.

4)  Copy the following script and paste on the command line.  

 ------------------- Copy starting below this line. -------------------         

mkdir /jffs/etc

mkdir /jffs/etc/config 

nvram set vlan0ports="5*"

nvram set vlan2ports="1 2 3 4 5t"

nvram commit

echo '

#!/bin/ash

PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"

ifconfig vlan2 up

' > /jffs/etc/config/vlan2.startup  

chmod 750 /jffs/etc/config/vlan2.startup 

--------------- Stop here when selecting text to copy -------------------------- 

5) Back to the web management interface in DD-WRT.  Select the Setup tab and the select the VLAN sub-tab.

6)  For ports 1 through 4 de-select VLAN 0 and select VLAN 2.  Then move VLAN 0's bridge from LAN to None and VLAN 2's bridge from None to LAN.

 DD-WRT Vlan2 setup

7)  Click the Save Settings button at the bottom of the page.

8)  Back to the telnet window.  At the prompt type reboot and hit <enter>

Your router is running with your default VLAN on VLAN 2.  Network A is now configured to run on VLAN2.  Verify that connectivity to internal hosts and the internet is working correctly.