2 routers, 1 switch configuration

Itertep

Junior Member
Feb 17, 2018
4
0
1
Hello everyone,

I have a question about configuration. I have two routers, the first router is connected to switch with LAN interface. Second also goes to switch but through WAN interface. First's router LAN IP is 192.168.1.1, second's LAN: 192.168.4.1 and WAN IP: 192.168.1.10.
Router (1) should give the Internet to Router (2). What I need to configure and how? Is it routing configurations or something else? Im asking because I know about routers almost nothing.
Thx for help.
 

mv2devnull

Golden Member
Apr 13, 2010
1,519
154
106
The WAN-port is usually a DHCP-client that gets configuration from a DHCP server. That server (for home users) is usually at the ISP. It is for your first router.

A router acts as a DHCP server for devices that connect to the LAN-ports. In other words, your second router should get an IP address from the DHCP server of the first router.

If you have manually set the WAN port to 192.168.1.10, then you don't get the settings from the DHCP.


You do have an additional "issue". You have two distinct LANs. Is that intentional? What is the real purpose of the second router?
 

Itertep

Junior Member
Feb 17, 2018
4
0
1
The WAN-port is usually a DHCP-client that gets configuration from a DHCP server. That server (for home users) is usually at the ISP. It is for your first router.

A router acts as a DHCP server for devices that connect to the LAN-ports. In other words, your second router should get an IP address from the DHCP server of the first router.

If you have manually set the WAN port to 192.168.1.10, then you don't get the settings from the DHCP.


You do have an additional "issue". You have two distinct LANs. Is that intentional? What is the real purpose of the second router?
Thank you for your answer.

1. The real purpose of the second router is just to provide the Internet to clients from router (1). Router (1) gets access to Internet from LTE network or wired interface (I can choose between them) but I guess it's not very important.
2. Yes, two distinct LANs is intentionally selected.
3. Router (1) DHCP server from 100 to 200

So what kind of configurations should I do to router (1) and router (2) to make this network work. This is just task from my school.
 

Itertep

Junior Member
Feb 17, 2018
4
0
1
Im 15 years old and I am only beginner with networking. I searched a lot about this task but could not find information that could help me or let let me understand more about it. Please admin, delete this thread because I see too much negative emotions from users about that.
 

ch33zw1z

Lifer
Nov 4, 2004
39,045
19,742
146
Lol, how about a starting point. This is not something just tossed at beginners.

So what have you learned so far?

Have you reviewed and can under the OSI 7 Layer model?

Are you skilled enough at the CLI to config stuff like this?

I don't mind helping, nobody really does, just not going to do it for you....because you won't learn that way

A good starting point is a Network+ guide.

Basically, you have two routers. Pretend you have hosts on either side, you want traffic to flow between them, and just put aside that one is providing internet, as all that really means is that you're connected to a much larger collection of small networks.

On one side of one router you'll have a lan subnet which is a specific subnet, a specific lan subnet between the routers, and on the other side of that router, the WAN (aka another lan subnet) which is a specific subnet.

Again, don't get hung up on it being "internet", you just want traffic to flow from one side of a router, all the way to the other.

Yes, you would do this with static routes
 
Last edited:
  • Like
Reactions: Itertep