Routing assistance

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

Routing assistance

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Routing assistance
Routing assistance
2023-11-15 11:15:47
Model: TL-SG3428  
Hardware Version: V2
Firmware Version: 2.0.11

Hi,

Just installed this switch and wanted to move DHCP to it. DHCP is currently handled by the modem. I also want internal traffic that doesn't need to go out of the network to be routed by this switch, instead of reaching the modem.

So current setup is:
Modem (DHCP and all) > clients

New setup:
Modem (minimal roles) > Switch (most roles) > clients

Modem is in the 192.168.1.0/24 network, with an IP of 192.168.1.254
Switch is in the same network with an IP of 192.168.1.110, but this will change.

So these are the first few things I did:
1. Created a DHCP pool for 192.168.2.0/24 network
2. Modified the interface's IP to 192.168.2.1
3. Ensured default route is present: dst 0.0.0.0/0 to next hop 192.168.1.254 (modem)
4. Added a static route: dst 192.168.2.0/24 to next hop 192.168.2.1 (which is the new switch's interface)

All ports are on default VLAN still, didn't change anything there.

With the new setup, the DHCP is working, PC gets the lease just fine. But no one in this network is able to reach anything from the modem and beyond (so basically no modem management, and no internet). So if I ping or traceroute the modem's IP, both from the PC and form the switch, the host is unreachable. Everything works fine as soon as I change the switch's interface back to 192.168.1.110.

I am not a network guy, so I'm hoping that this is just a basic configuration issue :) What am I missing? :)

  0      
  0      
#1
Options
14 Reply
Re:Routing assistance
2023-11-15 19:04:06

  @DanFMT 
OK, so you're trying to use the layer 3 features of your switch, as a minirouter? For dividing up a network like that you should probably just use VLANs. TP-Link has a fairly long example article on setting up that kind of network, "Divide the Network and Ensure BYOD Security with Omada SDN Solution" that you could read through for terminology and example ideas. But more simply check out this related post "Configuring a Layer 3 Switch in Omada SDN" and how they solved it, which is basically what you want to do. I don't use the L3 switching features myself outside a few high speed niches, at smaller scale I prefer to just push it all through a dedicated router of my own, and just have any ISP links (be it a modem/direct GPON/satellite/wisp) be pure bridges that plug into that. More powerful features that way as well. So another option albeit one that costs money would be to get a basic dedicated router, keep the switching layer 2, and cut your ISP out of the equation entirely putting the modem into bridge mode. Good luck.

  0  
  0  
#2
Options
Re:Routing assistance
2023-11-15 19:30:35

  @sonaric 

Yes, trying to use the layer 3 features, and the more I work on it, the more I think that I should have simply gotten a L2 switch and installed a dedicated firewall (thinking of pfSense) then bridged the ISPs modem/router/AP box.

The point I am at is I have 2 VLANs:

VLAN 1 : 192.168.1.0/24 (DHCP via modem)
VLAN 2 : 192.168.2.0/24 (DHCP via switch)

Ports assigned to VLAN 1 work fine, ports assigned to VLAN 2 get a IP lease but no internet access (i.e. cannot ping or reach anything from the modem onwards).

Now I'm not doing this via an Omada controller, I'm doing this directly from the switch. I'll check the documentation you shared and try Omada controller.

Seems like this L3 switch is going to be used just like a cheapo switch, with only one VLAN able to access the internet, which basically defeats the purpose of multiple VLANs.



 

  0  
  0  
#3
Options
Re:Routing assistance
2023-11-16 02:06:48

  @DanFMT 

I use OPNsense myself, which predates my experiments with Omada. I'd definitely suggest that or VyOS over pfSense when it comes to x86 based dedicated routers. Of course TP-Link themselves have 3 levels of native router too which blend into the overall system. Depending on your needs and what you already have they may be plenty and offer decent value bang for the buck, $60 isn't much as an entry price to play with. Not as powerful and you're somewhat more tied in then an open source router, but on the other hand you get the full single pane of glass.

 

Anyway it definitely can work and Omada Switches/WAPs have performed fine for me overall with dozens of VLANs as advertised. As you say you are missing out a bit if you're not really able to leverage all the separation on offer, PPSK in the WAPs also works very nicely to segregate and control IOT stuff.

  1  
  1  
#4
Options
Re:Routing assistance
2023-11-16 02:09:04

Hi @DanFMT 

Thanks for posting in our business forum.

Not sure what you want to set up. So, the switch is not capable of doing the NAT. You probably will never get Internet because of the lack of NAT.

Consider getting a router instead.

ISP---Modem+Router/Router---Switch---AP/Clients.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting Manual ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. Don't be a lazy asker. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  0  
  0  
#5
Options
Re:Routing assistance
2023-11-16 08:49:54

Thank you both for the input.

In this case, I guess I should be fine if I get something like the ER605 to start with? 

If yes, then do you recommend / do I need to bridge the ISPs modem/router or is it not necessary?

  0  
  0  
#6
Options
Re:Routing assistance
2023-11-16 15:35:00

  @DanFMT 

Yes, ER605 will be plenty fine to get started with. Make sure you get the current v2 version, it's the same price as the old but has a few upgrades. You can easily upgrade down the road if you need more power, for the price it's a good way to start working with it. I would suggest using the controller, it'll make it a lot easier to keep everything straight as you get multiple devices. Runs fine in a VM which is how I do it, or there are a few standalones. They also now make an AIO (router+switch+controller) called the ER7212PC, though if you already have a switch I don't think it's a good value. If you don't already have an Omada WAP for WiFi, I'd suggest that as well since it'll again make it easier to manage and also to take full advantage of all the features available for splitting clients amongst various VLANs etc.

| If yes, then do you recommend / do I need to bridge the ISPs modem/router or is it not necessary?

It's always a good idea when possible to just have a single layer of routing/NAT, double NAT is a pain. So yes, once you get the ER605, switch the ISP CPE to bridge mode so that it's acting as a pure modem/gateway and that's it. Have the ER take care of all the routing functions, DHCP etc.

 

Also to be clear, here I'm assuming that you really do have a "modem" or CPE translator, so cable/DSL/or the like. If you get a clean ethernet connection from the ISP and their "modem" gateway is just acting as a router/switch/WiFi AIO, then you probably don't need it at all and can connect the ER directly.

  0  
  0  
#7
Options
Re:Routing assistance
2023-11-16 16:24:42

  @sonaric, thanks for the information. 

Not sure about the modem or how to check. I have an ONT device for fiber, which goes into a Technicolor modem/AIO device.

  0  
  0  
#8
Options
Re:Routing assistance
2023-11-16 19:17:52

  @DanFMT 

 

It looks like your “modem” is a modem/router combo, not just a modem.

 

Anyways, you have a choice to either learn the networking or learn the Omaha 😊

 

If you decide to learn the networking after all, try to follow these steps.

 

  1. Set up a static route to the 192.168.2.0/24 network on the “modem” like dst 192.168.2.0/24, next hop 192.168.1.1, LAN. Note that, if your “modem” does not support static routes (most do), it cannot be used in this setup.
  2. Reset the switch to its factory defaults.
  3. Set the switch’s IP address to 192.168.1.1/24. That’s in the default VLAN 1.
  4. Enable routing on the switch.
  5. Create VLAN 2.
  6. Set up an IP interface of 192.168.2.1/24 in VLAN 2.
  7. Enable the DHCP server in VLAN 2 and create in it an IP pool with the gateway of 192.168.2.1. Start the IP pool with a higher IP address, say 192.168.2.10.
  8. Enable the DHCP server in VLAN 1 and create in it an IP pool with the gateway of 192.168.1.1. Start the IP pool with a higher IP address, say 192.168.1.10, and end with an IP address lower than 192.168.1.254.
  9. Disable the DHCP server on the “modem.”
  10. Set up the default route on the switch like dst 0.0.0.0/0, next hop 192.168.1.254, VLAN 1.

 

You can use any VLAN 1 port on the switch to connect to the “modem.” Do not try to set up a “trunk” port for that connection.

Kris K
  1  
  1  
#9
Options
Re:Routing assistance
2023-11-16 19:24:31

  @KJK, unfortunately does not support static routing. The only things you can do is Port Forwarding and Firewall rules. No VLAN or Routing options.

  0  
  0  
#10
Options
Re:Routing assistance
2023-11-16 22:02:52 - last edited 2023-11-16 22:05:06

  @DanFMT 

 

You need a new router in that case. ER605 seems to be a popular choice and you can use it with Omada and without. Buy it from a seller that has at least 1 month no-question-asked refund policy so you can return the router if it does not work for you.

 

As for your modem, I think you should post its make and model. Maybe somebody who reads your posts is familiar with it and will answer your question.

 

Good luck!  

Kris K
  0  
  0  
#11
Options

Information

Helpful: 0

Views: 968

Replies: 14

Related Articles