Networking w/ 2 routers....HELP

Networking, Wireless Routers (802.11 a/b/g/n/ac/ax WiFi), NAT, LAN configuration, equipment, cabling, hubs, switches, and general network discussion
Post Reply
Soar

Networking w/ 2 routers....HELP

Post by Soar »

I have ATT Broadband and currently has the following configuration: A cable modem connected to a Netgear wireless router (w/ 4 port switch). 2 machines, all have static LAN IP, are connected to the wireless router (2 ports are taken now) while a laptop is connected wirelessly to this router. All machines are able to connect to the net and talk to each other. Now, if I want to add another router, this time, a wired 4-port router to connect to the wireless router. If I set this wired router to 'obtain the WAN IP automatically', it's able to get a WAN (now this is the IP given by the wireless router) IP and subnet mask. This IP is the internal IP (192.168.1.4) which is not used by any other machines on the network. The LAN IP for this wired router is manually set at 192.168.1.9 so that I can use a machine to configure it (notice that I can only configure this wired router if the machine is physically connected to it, but cannot talk to it if the machine is conencted to the wireless router. Ok now, say if a machine is connected to the wired router, and it's able to ping the wired router, how come if cannot ping the wireless router or any other machines that is connected 'outside' of this wired router? Did I do anything wrong? One question I might think of is the subnet mask. The wireless router has a subnet mask of 255.255.255.0 . I tried configure the wired router w/ subnet mask of 255.255.255.0 and 255.255.255.128, both didn't work.

Please help anyone?
User avatar
BDillon21
Regular Member
Posts: 197
Joined: Mon Mar 19, 2001 12:00 am

Post by BDillon21 »

Routers are made to segment a network, meaning they break it in to smaller, more managable segments. They also reduce the amount of broadcast traffic in a large LAN. The most important thing for the home user is they use NAT.

Anyway, ALL routers behind a gateway (the one connected to the Internet) shold have a static WAN IP as well as a LAN IP.

In order to make this work you could do a few things:

Segmenting can be cool, and a great way to get an advanced knowledge of how a network actually works. I would:
Assign the 4 port a static WAN IP and LAN IP.

For example:
Wireless router
WAN IP : Obtain automatically
LAN IP: 192.168.0.1
Subnet: 255.255.255.0
Enable DHCP
All Clients connected to this router will get a 192.168.0.x IP

Wired Router
WAN IP : 192.168.0.254
LAN IP : 192.168.1.1
Subnet: 255.255.255.0
Default Gateway : 192.168.0.1
DNS: 192.168.0.1
Enable DHCP
All clients connected to this router will get a 192.168.1.x IP

Then add a static route in the wired to the wireless and vice versa.

This lets each router know of each other. If one router can't find the info it needs in it's routing table it will forward the request on to the second router, where is should find the info it needs.

This method can also be a little more difficult to do things like run servers and forward ports because now you are dealing with 2 devices instead of one.

The easiest way would be to ditch the second router and use a switch instead. No other configuration is necessary. Simply run one of the ports on the router to the uplink on the switch and you're done.
Post Reply