PDA

View Full Version : Need Help Wtih VLAN WRT54GL and DDWRT


Frumpco_
09-19-07, 09:10 AM
Hey

I am trying to setup a Vlan on port 4 of my router. I have tried a few things like SSH into the router typing the following

"nvram set vlan0ports="0 1 2 3 4*"

nvram set vlan2ports="3 4*"

nvram set rc_startup='

#!/bin/ash

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

ifconfig vlan2 192.168.2.1 netmask 255.255.255.0

ifconfig vlan2 up

'

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 br0 -o vlan2 -j logdrop

'

nvram commit

"

and then it craps out and I have to rest the router if anyone can give me a hand that would be great Lan ports are 0-3 Wan port is 4 as far as I know

Jon
09-19-07, 11:24 AM
This may help. (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=1160)

Frumpco_
09-19-07, 11:33 AM
Thanks for that Link Jon... It seems to be dead at the moment their site seems to have issues now and then... I am pretty sure I tried their Wiki b4 with no luck but once that site coems back I will try it again

Frumpco_
09-19-07, 05:25 PM
I got it to work the info I was missing was this

"nvram set vlan0ports="3 2 1 5*"
nvram set vlan2hwname=et0
nvram set vlan2ports="0 5""