Complex VLAN and WLAN + VPN Client on just one VLAN

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


Joined: 09 Apr 2014
Posts: 20

PostPosted: Wed Apr 09, 2014 21:25    Post subject: Complex VLAN and WLAN + VPN Client on just one VLAN Reply with quote
I have a Linksys E3200 gigabit router with DD-WRT v24-sp2 (03/25/13) mega on it.

I'd like to separate all physical ports in different Vlans as above:

Port 1 as VLAN 11 / 192.168.11.1/24 with internet access
Port 2 as VLAN 12 / 192.168.12.1/24 with internet access
Port 3 as VLAN 13 / 192.168.13.1/24 with internet access
Port 4 as VLAN 14 / 192.168.14.1/24 with internet access
WLAN1 as 192.168.15.1/24 with internet access
WLAN2 as 192.168.16.1/24 with internet access

All VLANs separated from each other.

To be a bit more complex I'd like to setup a OpenVPN Client on just VLAN 4 (all other VLANs have direct internet access with no VPN). Is this setup possible?



Can anybody help me on how to do that?

My config above:

root@E3200:~# nvram show | grep vlan.*ports
vlan2ports=4 8
vlan0ports=1 2 3 4 5*
vlan1ports=0 1 2 3 8*
size: 27357 bytes (34083 left)

root@E3200:~# nvram show | grep port.*vlans
port5vlans=0 1 16
port3vlans=0
port1vlans=0
port4vlans=0
port2vlans=0
port0vlans=1
size: 27357 bytes (34083 left)

root@E3200:~# nvram show | grep vlan.*hwname
vlan2hwname=et0
vlan1hwname=et0
vlan0hwname=et0
size: 27357 bytes (34083 left)

kind regards
Gustavo
Sponsor
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Thu Apr 10, 2014 12:50    Post subject: Reply with quote
Any ideas, please?


kind regards
Gustavo
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Tue Apr 15, 2014 13:28    Post subject: Reply with quote
Any ideas please?? I'm stucked in here...

Help is appreciated even for just setting the vlans....
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Tue Apr 15, 2014 19:14    Post subject: Reply with quote
http://www.vspecialist.co.uk/creating-vlans-in-dd-wrt-part-1/
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Thu Apr 24, 2014 14:03    Post subject: Reply with quote
Thanks for the advise but according to this article when I try nvram show | grep vlan.*ports my router I should get:

vlan2ports=0 8
vlan1ports=4 3 2 1 8*

but I get:

vlan2ports=4 8
vlan0ports=1 2 3 4 5*
vlan1ports=0 1 2 3 8*

when I try nvram show | grep port.*vlans

I get:
port5vlans=0 1 16
port3vlans=0
port1vlans=0
port4vlans=0
port2vlans=0
port0vlans=1

should I set the ports as the article tells or should I make any different setup?

What´s port 5 I get after nvram show | grep vlan.*ports command? It´s different from the tutorial ...


kind regards
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Thu Apr 24, 2014 14:13    Post subject: Reply with quote
I friend of mine just told me that first thing I should do is to set vlan1 as default and not vlan0 as my router setup... any ideias on how to start from here?

kind regards
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Fri Apr 25, 2014 10:48    Post subject: Reply with quote
any thoughts, please?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Fri Apr 25, 2014 11:29    Post subject: Reply with quote
vlan2ports=8*
vlan0ports=8*
vlan1ports=8*
vlan11ports=4 8*
vlan12ports=3 8*
vlan13ports=2 8*
vlan14ports=1 8
vlan11hwname=et0
vlan12hwname=et0
vlan13hwname=et0
vlan14hwname=et0


Last edited by Per Yngve Berg on Fri Apr 25, 2014 13:32; edited 2 times in total
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Fri Apr 25, 2014 12:51    Post subject: Reply with quote
I should ignore port 5 and port 0? I believe port 0 is WAN or am I mistaken?

gelcom wrote:
vlan2ports=4 8
vlan0ports=1 2 3 4 5*
vlan1ports=0 1 2 3 8*



What's port 6 you mention in the first line?

Per Yngve Berg wrote:
vlan2ports=8*6



In this line there is no '*' as the others?

Per Yngve Berg wrote:
vlan14ports=1 8


thanks for the support!!

Smile
kind regards
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Fri Apr 25, 2014 13:31    Post subject: Reply with quote
Yes, port 0 is the wan. There is no port 5 on giabit devices. The processor is on port 8.

The "6" was just a stray character.
gelcom
DD-WRT Novice


Joined: 09 Apr 2014
Posts: 20

PostPosted: Fri Apr 25, 2014 13:38    Post subject: Reply with quote
Why do I get port 5 on my gigabit router?

nvram show | grep vlan.*ports

vlan2ports=4 8
vlan0ports=1 2 3 4 5*
vlan1ports=0 1 2 3 8*

if port 0 is WAN shouldn't that port be assigned to the VLANs too?

no ports should be tagged (16) as my actual config?

gelcom wrote:
when I try nvram show | grep port.*vlans

I get:
port5vlans=0 1 16
port3vlans=0
port1vlans=0
port4vlans=0
port2vlans=0
port0vlans=1



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