DD-WRT 320N How Do i set up a vlan

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
rcmpayne
DD-WRT Novice


Joined: 15 Aug 2007
Posts: 45

PostPosted: Wed Jul 11, 2012 1:54    Post subject: DD-WRT 320N How Do i set up a vlan Reply with quote
Hello All,

I need to set up a VLAN (vlan35) so i can bypass my ISP's router. i see that my router does not support Vlan gui so i need to do this over ssh.

can some one lend me a hand on getting a port on my router set for vlan35? the only other requirement is to set the wrt320n to the same MAC of the router i am replacing.

as per http://www.dd-wrt.com/wiki/index.php/Switched_Ports, i have my current settings

root@WRT320N:~# nvram show | grep vlan.*ports
vlan2ports=0 8
vlan1ports=4 3 2 1 8*
size: 22562 bytes (10206 left)
root@WRT320N:~#


root@WRT320N:~# nvram show | grep port.*vlans
port5vlans=1 2 16
port3vlans=1
port1vlans=1
port4vlans=1
port2vlans=1
port0vlans=2
size: 22562 bytes (10206 left)
root@WRT320N:~#


root@WRT320N:~# nvram show | grep vlan.*hwname
vlan2hwname=et0
vlan1hwname=et0
size: 22562 bytes (10206 left)
root@WRT320N:~#
Sponsor
rcmpayne
DD-WRT Novice


Joined: 15 Aug 2007
Posts: 45

PostPosted: Wed Jul 11, 2012 2:03    Post subject: Reply with quote
ok so please confirm my findings please

so this would be the commands that i need to run to create a Vlan, lets forget about the vlan number for now just to configm i have the settings right

--create the vlan 35
nvram set vlan35hwname=et0

Results:
# nvram show | grep vlan.*hwname
vlan2hwname=et0
vlan1hwname=et0
vlan35hwname=et0


--change the current vlan1 to release the port xx (in my case i want to unassign port 4)
nvram set vlan1ports="3 2 1 8*"

Results:
# nvram show | grep vlan.*ports
vlan2ports=0 8
vlan1ports=3 2 1 8*

--Add port 4 to the vlan 35
nvram set vlan35ports="4 8"

Results:
vlan2ports=0 8
vlan1ports=3 2 1 8*
vlan35ports=4 8

--changed port4vlan from 1 to 35
nvram set port4vlans=35

Results
port5vlans=1 2 16
port3vlans=1
port1vlans=1
port4vlans=35
port2vlans=1
port0vlans=2



Commands to run
nvram set vlan35hwname=et0
nvram set vlan1ports="3 2 1 8*"
nvram set vlan35ports="4 8"
nvram set port4vlans=35
nvram commit
reboot
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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