Create different subnet

Hi, first of all let me tell you that i'm a noob with networks and also that English is not my first language. I'll try to explain it with words, but I also have some images

Gallery --> https://imgur.com/a/52aHo

Until now, I've used an old router as a switch (i think) to plug different devices in my room, and then I use a PLC to connect this router to the ISP's in the living room.

To do this, I changed the ISPs router IP from 192.168.0.1 to 192.168.1.1 and my other router to 192.168.1.2
I also opened some ports in the ISP router to my devices and assigned some manual DHCP leases.

This works well, but the ISPs router web interface is crappy and limited and sometimes doesn't work, so I want to restore it to .0.1 and make my router .0.2 on one end ant 1.1 on the other and then put all my devices in .1.0/24

Right now in the LEDE router I have this (just restored it)

https://imgur.com/Psh2Kyc

Do I have to add another interface or it's ok to just change some parameters in this one?

On the ISP router i have this

(pics 3 and 4, once I can put more than 2 links and 1 image, I'll edit the post)

Could anyone guide, preferably with the web interface?

Thank you!

Hello,

I am unsure why you have configured your network as you have, because a router acting as a switch is essentially useless.

However, to make your router act as a router, you will need:

  1. Reset it to default settings, so that you have a green LAN zone and a red WAN zone (you can set this up manually but if something will be wrong, there will be too many things to check)
  2. Set WAN interface to protocol DHCP (this should be set by default)
  3. Set LAN interface IP address to 192.168.1.1 and turn on DHCP server on it (this should also be set by default)
  4. Connect your ISP router to your router's WAN port (associated with red WAN zone; this I assume is what you did not do last time)
  5. Connect your computers to the LAN ports (associated with green LAN zone; this should be by default)

Might also pick up a good book on networking and check what a router is for while you're at it.

LP,
Jure

As I've said I have a PLC going from the ISPs router in the living room to my bedroom. It only has 1 port, so I used a refurbished DSL router as a switch to have 3 more.

That's my problem. My router doesn't have the WAN interface (it's an AR-5381u). The physical ones are the ADSL line and 4 LAN.

So I need instructions how to create the WAN interface

imagen

In your new scenario, each router does its own NAT by default, and the devices behind your LEDE router will get double NAT for their internet access. It mostly works, but is undesirable.

Would it be an option for you to replace the ISP's router with another LEDE router? This is the place where you can see the largest improvement by switching to LEDE. The device in your room could then stay in switch mode (access point), and double NAT is avoided.

Can set up your ISP's router as a pass-through modem and turn off its wireless? Run everything on your OpenWRT box...

I can't change the ISP router as it's a fiber one.
Also can't disable/bridge it because flatmates have to use it's wifi.

OK, combining the suggested solutions by @jeff and myself:
Can you set your ISP router to bridge mode and put another LEDE router next to it?

1 Like

For most "popular" OpenWRT devices, you can configure multiple APs with different SSIDs and different passwords. That might simplify things somewhat.

@jeff, since @LoLo2207 is using a powerline link between the rooms, I assumed there is considerable wifi signal attenuation between them, and it is not possible to provide wifi coverage in the living room from the LEDE access point in the bedroom.

The device wiki page explains how to configure the switch to change one of the Ethernet ports into a WAN port.
https://openwrt.org/toh/comtrend/ar5381u
If there is signal at the router location, it may also be possible to make the device a wifi client of the main router, achieving the WAN link over wifi.

Thanks for that! I totally missed it.

And about the WiFi things, I know. I just want to learn to do it like this because I move a lot so I want to have this router with my own subnet.

You can configure Lede router as is nonNAT router. NAT just are on ISP router.

It requires a static route to the LEDE network on the ISP router. And it also needs to NAT traffic from the LEDE router with a destination on the internet. Unfortunately these features aren't available on all routers.

There's a nice explanation of how the switch can be used to create a WAN port where the device has none. The link you have previously already contains the steps how to do it, this article just contains a nicer explanation:
https://wiki.openwrt.org/doc/uci/network/switch

Just add static route on both router & most ISP router have both NAT & static route features.