Hi all!

I have 2 ISPs with their own routers.

Router A: 192.168.0.1/24

Router B: 192.168.20.1/24

I have my servers plugged into Router A and all my endpoint and users’ devices connected to Router B.

I want users connected to Router B (192.168.20.1/24) to have access to server 192.168.0.90

I thought plugging a LAN cable and connecting Router A and Router B and then defining static routes in both routers would solve the issue.

However, at the first step itself I have an issue. When connecting the routers via a LAN cable, both routers dont get any IP.

I was also referring to this post on superuser. Though Router B is capable of creating subnet and static route, I am not sure if Router A (Archer XR500v) is capable of creating a subnet and/or a static route.

https://superuser.com/questions/1667068/connect-two-routers-with-different-subnet

  • olosta@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 months ago

    I’m not sure about the point of your setup but let’s ignore that :

    • Create a vlan “servers” on router B, assign a port (WITHOUT vlan tagging) to this vlan, patch a cable between this port and any port on rouer A
    • Put a static IP address 0.x on router B in this vlan
    • Enable routing between the default vlan and vlan “servers” on router B .
    • Configure router A to not distribute this IP address (by setting up a permanent DHCP lease for example)
    • On all your servers put a static route that says : “192.168.20.0/24 via 192.168.0.x”
    • If you can setup this route on A, things connected to A will work whether they have the route or not (it’s not a big deal but the routing would be assymetrical)

    If you can create a VLAN and a route on A, you can create a distinct “interconnect” VLAN and make all of that nice and clean without the extra static routes on the servers.