WAN over switch

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2, 3  Next
Author Message
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Sat Sep 10, 2016 20:59    Post subject: WAN over switch Reply with quote
Hi everyone,
Let me explain you what I want to try to achieve :

ISP Router (internet connection) ----- switch ------ DD WRT WAN port

My DD WRT router is configured in AP.

It works fine (with or without the switch), but I would like now to connect other devices to that switch (the one that connects to the WAN port of my DD WRT router).

I cannot managed to have both my internet connection and connected devices at the same time through the WAN port, I can have either the internet connection, or access to the devices (by changing settings in DD WRT), but not both.

Is possible to achieve that?
Thank you very much


EDIT : let me rephrase, I think it's quite confusing ^^

So, I have my WNDR4500v2 with DD WRT as the main entry point of my home network (all my devices connect to it, via eth or wifi).

I have another router (not DD WRT), the one of my ISP, with the internet connection. This one is connected to a simple switch, and this switch is connected to my WNDR4500v2 via its WAN port.

My WNDR is configured as follow:
- Wan connection type: Automatic Configuration - DHCP
- Wireless Mode: AP

It works all fine, meaning that my devices connected to my WNDR can access internet.

BUT, if I connect any device to the switch (the one between the ISP and WNDR), I cannot access to them, and this is what I would like to achieve.


Last edited by igoooor on Sun Sep 11, 2016 12:56; edited 2 times in total
Sponsor
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Sun Sep 11, 2016 6:44    Post subject: Reply with quote
Here is more detail about my DD WRT configuration.
So first, my DD WRT is my main entry point for my home (meaning, all devices connect to it).

Wan connection type: Automatic Configuration - DHCP
Wireless Mode: AP

the routeur is a WNDR4500.


And I'm only using my ISP routeur to have internet access on my DD WRT, I deactivated its Wifi, and no devices are connected to it (except the DD WRT)
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sun Sep 11, 2016 8:46    Post subject: Reply with quote
Is your switch a manageable smart switch?

If your switch cannot handle vlan, connect the dd-wrt router's wan port directly to the isp router and the switch to a lan port.
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Sun Sep 11, 2016 10:16    Post subject: Reply with quote
Per Yngve Berg wrote:
Is your switch a manageable smart switch?

If your switch cannot handle vlan, connect the dd-wrt router's wan port directly to the isp router and the switch to a lan port.


I can't connect the switch to the lan port, only to the WAN port, that's the problem (too long to explain why, but it's because of the configuration of my house).

I currently have an unmanaged switch, do you think the problem comes from that?
Tuesday I'll have a managed one, I will try with it
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sun Sep 11, 2016 11:29    Post subject: Reply with quote
We will get back when you get the managed switch.

What version of WNDR4500? There is V1, V2 and V3

https://wikidevi.com/wiki/Netgear_WNDR4500v1

V1 and V2 is a Broadcom, but V3 is an Atheros.
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Sun Sep 11, 2016 12:56    Post subject: Reply with quote
Per Yngve Berg wrote:
We will get back when you get the managed switch.

What version of WNDR4500? There is V1, V2 and V3

https://wikidevi.com/wiki/Netgear_WNDR4500v1

V1 and V2 is a Broadcom, but V3 is an Atheros.


Ok thank you Smile
It's a V2 (updated the first post)
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Tue Sep 13, 2016 15:37    Post subject: Reply with quote
Ok, I now have this switch http://www.tp-link.com/en/download/TL-SG105E_V1.html
and to be honest, I don't really know what to do and how to configure it, I never had a managed switch :S
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Tue Sep 13, 2016 16:43    Post subject: Reply with quote
http://www.tp-link.com/en/faq-788.html

What ports are connected together?

On the router do a "nvram show | grep vlan\.ports"
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Tue Sep 13, 2016 17:38    Post subject: Reply with quote
Per Yngve Berg wrote:
http://www.tp-link.com/en/faq-788.html

What ports are connected together?

On the router do a "nvram show | grep vlan\.ports"


Currently on my router, here is the result:
Code:
vlan2ports=4 8
vlan1ports=0 1 2 3 8*


on the link you provided me, I until the first Step 5 (so configuring only one switch, since I only have one). And I only created 1 extra VLAN (VLAN ID 101) which I gave ID 2 for now.

But now I don't know how to configure my DD WRT since it's not the same GUI of course
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Tue Sep 13, 2016 18:01    Post subject: Reply with quote
To tag both vlan1+vlan2 to the wan port:

Code:
nvram set vlan2ports="4t 8"
nvram set vlan1ports="0 1 2 3 4t 8*"
nvram commit


Connect the dd-wrt router to Port1
Internet line to port 2
LAN devices on port 3-5

You only need vlan 1 and vlan 2

Port1: Tagged VLAN1 and VLAN2
Port2: Untagged VLAN2
Port 3-5: Untagged VLAN1

I'm new to this switch, so the GUI is a little bit different than my Netgear.
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Tue Sep 13, 2016 18:26    Post subject: Reply with quote
it did not work.. I even lost access to the switch afterwards
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Tue Sep 13, 2016 18:42    Post subject: Reply with quote
What ip addresses do you use?

Do the switch have an ip address from the LAN?
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Tue Sep 13, 2016 18:44    Post subject: Reply with quote
Per Yngve Berg wrote:
What ip addresses do you use?

Do the switch have an ip address from the LAN?


the switch has IP address 192.168.0.1
my router has 192.168.2.1

Now I managed to make the configuration as you did, and I have internet acces (like with a regular switch), but I still don't see devices connected to the switch
igoooor
DD-WRT Novice


Joined: 10 Sep 2016
Posts: 18

PostPosted: Tue Sep 13, 2016 18:45    Post subject: Reply with quote
Also, the switch is connected to the WAN port of the router.

EDIT: and also, I can't access the switch while it is connected to WAN port of the router (but I have internet).
And I can access it while it's connected to another port of the router, but then I don't have internet
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Tue Sep 13, 2016 18:48    Post subject: Reply with quote
I presume vlan1 is the management vlan of the switch. You have to give it an ip of 192.168.2.2
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum