How to Connect Multiple Subnets With Static Routing
Subnets are used to create more lanes for incoming and outgoing traffic on a local area network. The traffic negotiated between your network and remote network devices can be managed by multiple routers, instead of one device bearing the task of managing your network's traffic. With the help of a static routing path, you can combine multiple subnets in your network.
Instructions
-
-
1
Connect your primary router to your modem via Ethernet cable. Plug one end of the cable into the "WAN" port on the back of the router, and plug the other end of the cable into the Ethernet port on your modem. Connect the "WAN" port on each of your secondary routers to the "LAN" ports on your primary router, using Ethernet cable.
-
2
Connect your primary router to your computer via an Ethernet cable. Plug one end of the cable into one of the router's "LAN" ports and plug the opposite end of the cable into the Ethernet port on your computer's network card.
-
-
3
Log into your primary router from your computer. Launch a web browser on your computer, and then type the router's interface address into the browser's address bar. The address is normally printed on the bottom of the router.
-
4
Enter your router's "Setup" or "Configuration" menu, and then select the "Advanced Routing" option. Set your router's "Operating Mode" or "Routing Mode" to "Gateway." You should set configuration options for each of the attached routers.
-
5
Set each router's subnet mask to "255.255.255.0." Set each router's IP address in sequence, based on the primary's router's address. The address will be printed on the bottom of the router. The last digit in the address should increase by one, with each subsequent router. The second router's last digit should be "2," and the next router's last digit should be "3," e.g., 192.161.254.1, 192.161.254.2, 192.161.254.3.
-
6
Open the "Network Administrator" or "Administration" option in the router, and then select the "Commands" or "Scripts" option. Type "# Allow the entire 192.168.0.0/16 block to be forwarded through the router iptables -I FORWARD -s 192.168.0.0/16 -j ACCEPT" into the "Scripts" or "Commands" field, and then save your changes.
-
7
Log into each of your secondary routers, using the IP addresses you assigned them in Step 5. Enter each router's "Advanced" routing menu, and then set their "Routing Modes" to "Router." Save your changes to complete your network's configuration.
-
1