Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
2021-09-01 07:43:33 - last edited 2021-09-08 14:14:45
Model: SG2008P  
Hardware Version: V1
Firmware Version: 1.0.1 Build 20210407 Rel.54710

Hi all,

Is there any way I can achieve the setup below using the TL-SG2008P ?
I think I'm half way there but need help with the final hurdle.

 

I have a broadband (FTTC) modem connected to my AX wifi router on the WAN port.

Most of my devices connect directly or wirelessly to the router but I cannot use it for separate VLANs or separate DHCP pools and so I've bought the TL-SG2008P managed switch.

 

From my research over the past week, so far I think I'm looking at connecting the router (with DHCP disabled) to port 8 on the TL-SG2008P and let the switch manage the separate DHCP pools for each VLAN (though I will also need some static IPs for devices on each VLAN).


On the switch, there's the default VLAN
VLANID 1 1/0/1-8 system-vlan
......and I've setup the following 802.1Q VLANs:
VLANID 3 1/0/-8 Intranet
VLANID 4 1/0/-8 Internet Only (+ any guest wifi devices)
VLANID 5 1/0/-8 HomeAuto

 

I would prefer to use different subnets for each vlan so I've setup these 3 DHCP pools

xxx.xxx.3.0

xxx.xxx.4.0

xxx.xxx.5.0

and used manual binding for the static IP addresses for some devices in each vlan (it's annoying I can't define a text description for each MAC/IP address )

 

From here I believe I need to use DHCP Relay (because DHCP L2 relay is only when using the same subnet) but not sure how I need to setup the "DHCP Relay Config" and/or the DHCP Interface relay and/or the DHCP VLAN relay.

 

I think I may need to go to the Interface menu and setup the Routing config but not sure what the config should be.
The point of the VLANs and separate DHCP pools is to isolate devices from each other and so I don't need much comms/traffic between vlans other than the following :
- Ensure internet traffic from the router is available to all devices on each VLAN.
- manage the HASSIO on a raspberry pi on VLANID 5 , from a pc on VLANID 3 without allowing anything from VLANID 5 to see or connect to devices on VLANID 3.

 

Any help would be very much appreciated ?

 

Thanks Gav

  0      
  0      
#1
Options
1 Accepted Solution
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P-Solution
2021-09-08 06:06:14 - last edited 2021-09-08 14:14:45
The router that can allocate more than one subnet will work for your case. Like ER605, ER7206.
Recommended Solution
  1  
  1  
#7
Options
5 Reply
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
2021-09-02 06:46:21 - last edited 2021-09-02 06:51:23

I'm afraid you cannot do that without a business router. Usually, home routers like your AX wifi router cannot deal with tagged VLAN packets.

The packets coming from the AX router will be tagged by default VLAN 1 within the switch, and will go to all VLANs you set because all ports are in VLAN 1 by default. 

  1  
  1  
#2
Options
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
2021-09-02 14:55:28 - last edited 2021-09-02 14:57:22

@Somnus Thanks for the response and info. 
I only just recently bough that AX router a few weeks ago so it looks like I'm now limited to keeping everything on the 1 vlan.

How about I change up the plan a bit and using the system default vlan 1 on the switch but instead isolate traffic with multiple dhcp pools and subnets, all on the same vlan the ax router uses ?

Then use static IPs/manual binding on the switch to set IP addresses by MAC address for each subnet ?  (Is MAC spoofing an issue in this scenario ?)
 

VLAN 1: 192.168.3.1/24
VLAN 1: 192.168.4.1/24
VLAN 1: 192.168.5.1/24


then use the DHCP relay under the L3 features menu 

 

  0  
  0  
#3
Options
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
2021-09-03 07:40:03 - last edited 2021-09-03 07:47:56

Do you want to isolate each VLAN? If yes, any home router won't deal with this case. DHCP relay requires a router that supports multi-nets, or another switch that can work as DHCP Server. If it is such complicated, why not purchase a business router? It is cheaper than a switch that supports multi subnets.

 

You can read this article:

https://www.tp-link.com/en/support/faq/1630/

  0  
  0  
#5
Options
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P
2021-09-08 05:33:58

@Somnus 

I'd prefer to use VLANs but as you say, the router will not handle this.

I was hoping the TP-Link TL-SG2008P as a managed switch could take over managing the DHCP and multiple subnet pools.

I wouldn't know which business grade router to use that would fit my requirements.
 

Cheers

Gav

  0  
  0  
#6
Options
Re:Route internet traffic to Multiple VLANs with Multiple DHCP pools on a TL-SG2008P-Solution
2021-09-08 06:06:14 - last edited 2021-09-08 14:14:45
The router that can allocate more than one subnet will work for your case. Like ER605, ER7206.
Recommended Solution
  1  
  1  
#7
Options

Information

Helpful: 0

Views: 2730

Replies: 5

Related Articles