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   

Second Step - Setting up Network B and establishing the trunk on port 4

1)  Back to the telnet window. Copy the following script and paste on the command line.  

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

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

nvram set vlan3ports="4t 5t"

nvram commit

echo '

#!/bin/ash

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

iptables -I FORWARD -i br0 -o vlan3 -j ACCEPT

iptables -I FORWARD -i vlan3 -o br0 -j ACCEPT

iptables -I FORWARD -i vlan3 -o vlan1 -j ACCEPT

iptables -I INPUT -i vlan3 -j ACCEPT 

ip addr add 192.168.2.1/24 brd + dev vlan3 

ifconfig vlan3 up

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

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

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

2)  On port 4 select the tagged checkbox and then select VLAN 3.

 DD-WRT Vlan3 setupi

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

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

Your WRT should be configured and port 4 is a 802.1q trunk with both VLAN 2 and 3 present and tagged. (Network A and B)