WNDR3300 Simple VLAN Config Guide (Help needed)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
agapecpus
DD-WRT Novice


Joined: 18 Jan 2008
Posts: 4

PostPosted: Mon Nov 07, 2011 19:10    Post subject: WNDR3300 Simple VLAN Config Guide (Help needed) Reply with quote
Hi everyone;
The goal of this thread is to provide a simple straight forward guide to setting up a VLAN on a WNDR3300. I have dug through the post that would seem to lay everything out however I still have some conflicting info. I will do my best to lay this out so anyone can understand what the commands are and simply what you need to enter. I will combine everything into a single post. Credit will be given to all who help. In advance a big thank you to all who can help sort this out.

_________________
WNDR3300
DD-WRT v24-sp2 build 17201 - mini
Sponsor
agapecpus
DD-WRT Novice


Joined: 18 Jan 2008
Posts: 4

PostPosted: Mon Nov 07, 2011 19:44    Post subject: Reply with quote
Router: Netgear WNDR3300
Build: 17201 - mini
Goal: VLAN1 = Ports 1,2,3 and WiFi - DHCP enabled + access to WAN only
VLAN2 = Port 4 - DHCP enabled + access to WAN only
References: linksysinfo - Post 62
Geek Pages

Please keep in mind I have not tried this yet as I don't know have to remove these settings. Likewise I have two different firewall settings and I am not sure which is correct. Also I have no access to a VLAN GUI page.

1. Telnet into the router - run these commands

2. Setup VLAN2
Code:
nvram set vlan0ports="3 2 1 5*"
nvram set vlan2hwname=et0
nvram set vlan2ports="0 5"


3. Assign IP to VLAN2
Code:
[url]nvram set ifconfig vlan2 192.168.0.1 netmask 255.255.255.0
nvram set ifconfig vlan2 up[/url]


4. Setup firewall so VLAN1 and VLAN2 can access the internet yet are separate
NOTE: I have two configurations between the two listed references and I am not sure which to use. I need clarification on this.

Code:
nvram set rc_firewall="

iptables -I INPUT -i vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o vlan1 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i vlan2 -o ppp0 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i br0 -o vlan2 -j logdrop
"

OR
Code:
nvram set rc_firewall="

iptables -t nat -I PREROUTING -i vlan2 -d 192.168.1.0/24 -j DROP
iptables -t nat -I PREROUTING -i br0 -d 192.168.0.0/24 -j DROP
iptables -I FORWARD -i ppp0 -o vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o ppp0 -j ACCEPT
"


5. Enable DHCP on VLAN2 - NOTE Conflicting info again; please clarify
a. In the Setup>Networking page, in the Ports section, select "Unbridged" for VLAN2 and supply the following settings: IP Address - 192.168.0.1, Subnet Mask - 255.255.255.0.
b. In the Setup>Networking page, in the DHCPD section, under Multiple DHCP Server, click Add and select "VLAN2" as the interface. (Once the page refreshes, it should also show the IP address of the interface. i.e. - "Interface vlan2: IP 192.168.0.1/255.255.255.0"

OR

a. Services Tab
DNSMasq->Enable
Local DNS->Enable
Additional DNS Options: interface=vlan2
dhcp-range=192.168.0.100,192.168.0.149,1440m

_________________
WNDR3300
DD-WRT v24-sp2 build 17201 - mini
agapecpus
DD-WRT Novice


Joined: 18 Jan 2008
Posts: 4

PostPosted: Mon Nov 07, 2011 19:48    Post subject: Reserved for Solution Reply with quote
Future Post
_________________
WNDR3300
DD-WRT v24-sp2 build 17201 - mini
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum