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
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