Hello,

I want to have two networks that will connect to the internet through my DSL modem.

I hooked a switch into the modem and two linksys WRT54G wireless routers into the switch. One of these routers connects by PPPoE to the internet through the modem (which is set in bridging mode). This works fine. (The PPPoE connection has a static IP.)

The modem connects to the uplink connector on the switch, and the two routers are connected to standard connectors on the switch via their uplink connectors.

The first or gateway router uses local IP net of 192.168.1.0 and the second router uses 192.168.2.0. I configured the second router as a static IP on the first network, IP 192.168.1.210, with a local IP of 192.168.2.1.

I can't get routing from one network to the other. From the .2 network, I can ping the external IP of the router (192.168.1.210) and that's it.

These Linksys routers have the capability to have routes manually set, but I lack the proper knowledge to make it work.

Routing Table on gateway router (.1 network):

Destination LAN IP	Subnet Mask	Gateway	        Interface
204.60.4.194	      255.255.255.255	0.0.0.0	       WAN (Internet)
192.168.2.0	      255.255.255.0	192.168.1.210  LAN & Wireless
192.168.1.0	      255.255.255.0	0.0.0.0	       LAN & Wireless
0.0.0.0	               0.0.0.0	        204.60.4.194   WAN (Internet)

Routing Table on second router (.2 network):

Destination LAN IP	Subnet Mask	Gateway	         Interface
0.0.0.0	                0.0.0.0	      192.168.1.200	WAN (Internet)
192.168.1.0	      255.255.255.0   192.168.1.210	WAN (Internet)
192.168.2.0	      255.255.255.0   192.168.2.1	LAN & Wireless
204.60.4.194          255.255.255.255 192.168.1.210	WAN (Internet)

Any help with getting this routing properly configured would be much appreciated.

Thanks.

mp

Ok here is the way I would set your routers based on your configuration

Router1
WAN: <DHCP from Modem>


LAN:
IP: 192.168.1.1
NM:255.255.255.0


Router2
WAN:
IP: 192.168.1.210
NM:255.255.255.0


LAN:
IP: 192.168.2.1
NM: 255.255.255.0

You have to think of it as a separate network. Treat the second router as if you were connecting straight to the modem without the PPOe login. You could (if you have DHCP for the local network set up on the first router) set the second router to Obtain address DHCP for the WAN and then 192.168.2.1 for the LAN.
I take it the first router is able to connect to the internet OK?
If so try a traceroute from router 2 to the modem and see what you get.

Ok here is the way I would set your routers based on your configuration

Router1
WAN: <DHCP from Modem>


LAN:
IP: 192.168.1.1
NM:255.255.255.0


Router2
WAN:
IP: 192.168.1.210
NM:255.255.255.0


LAN:
IP: 192.168.2.1
NM: 255.255.255.0

Hello,

Thanks for the reply. You are describing what I have set up already, except that the external IP address for the internet is static. The problem is that the routers don't "route" between the two networks. Unfortunately, traceroute does nothing. Because there is no route to trace. I just get rows of stars.

If I compare the routing tables for the two routers, I notice this:

Router 1: 192.168.1.0	      255.255.255.0	0.0.0.0	       LAN & Wireless
Router 2: 192.168.2.0	      255.255.255.0   192.168.2.1      LAN & Wireless

I don't know if that matters or not. And I don't see why that would prevent a data connection from the .2.0 network to the .1.0 network. Right now, I can ping the external IP address of the second router from inside the .2.0 network and that's it.

Thanks.

mp

Hello,

Thanks for the reply. You are describing what I have set up already, except that the external IP address for the internet is static. The problem is that the routers don't "route" between the two networks. Unfortunately, traceroute does nothing. Because there is no route to trace. I just get rows of stars.

If I compare the routing tables for the two routers, I notice this:

Router 1: 192.168.1.0	      255.255.255.0	0.0.0.0	       LAN & Wireless
Router 2: 192.168.2.0	      255.255.255.0   192.168.2.1      LAN & Wireless

I don't know if that matters or not. And I don't see why that would prevent a data connection from the .2.0 network to the .1.0 network. Right now, I can ping the external IP address of the second router from inside the .2.0 network and that's it.

Thanks.

mp

Hello,

It's the switch. This morning, I tried setting the second router to DHCP for the external address, and it would not pick up an address. I then hooked the cable from the second router directly into a port on the first router. It immediately picked up an address and now the second network has proper routing and can hit the internet.

Why? It is not something like a bad port on the switch because I moved the connections around earlier, to eliminate that possibility.

Perhaps, I'm misunderstanding how switches work, but shouldn't I be able to connect two different networks through the same switch? Isn't it supposed to look at the frames and determine which network to send them to?

Thanks.

mp

NB Wiring up the two routers directly works in the short term because they're in the same room. But the long-term plan, they will not be adjacent. I need to be able to connect through the switch or something like.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.