Setting up LAN-WAN Connection between Two Routers: TP-Link WR840N

Abstract: Resolve IP conflicts and double NAT issues when connecting two TP-Link WR840N routers via a LAN-WAN link.

Created: 2026-09-26 by
To establish a LAN-WAN connection between two TP-Link WR840N routers, you must configure the secondary router to act as a distinct network node rather than a simple switch. This setup allows the second router to manage its own subnet while connecting to the primary router’s internet source via an Ethernet cable plugged into the WAN port. By keeping the LAN ports isolated on the secondary device, you prevent IP conflicts and double NAT issues that often plague home networks.

Understanding the LAN-WAN Topology

A LAN-to-WAN configuration creates a hierarchical network structure. The primary router serves as the main gateway for your internet service provider (ISP) connection. It handles DHCP (Dynamic Host Configuration Protocol) for devices directly connected to it. The secondary router connects to this primary network but maintains its own separate internal network segment. This is ideal if you want to isolate specific devices, such as IoT gadgets or guest machines, from your main local area network. Unlike a LAN-to-LAN setup, which effectively merges two routers into one large switch, the WAN method preserves network boundaries. In a LAN-to-LAN scenario, both routers share the same IP range, and the secondary router’s routing features are disabled. However, for a true LAN-WAN link, the secondary router acts as a client to the primary network. This requires careful attention to IP addressing to ensure the two subnets do not overlap. If both routers use the default 192.168.0.x or 192.168.1.x ranges, they will conflict immediately upon connection. Therefore, changing the secondary router’s LAN IP address is the most critical step in this process.

Preparing the Secondary Router

Before connecting any cables, you must configure the secondary TP-Link WR840N while it is disconnected from the primary network. This prevents accidental interference with your existing internet connection. Start by connecting a computer directly to one of the LAN ports of the secondary router using an Ethernet cable. Power on the secondary router only. Open a web browser and navigate to the router’s default login page. For most TP-Link models, this is http://tplinkwifi.net or the default IP address printed on the label, typically 192.168.0.1. Log in with the admin credentials. If you have previously changed these, use the updated password; otherwise, reset the router to factory defaults if you are unsure. Once logged in, locate the Network settings. You need to change the LAN IP address of the secondary router so it does not clash with the primary router. If your primary router uses 192.168.0.1, set the secondary router’s LAN IP to 192.168.0.2 or 192.168.0.254. Ensure the Subnet Mask remains 255.255.255.0. Save the changes. The router will likely reboot, and you will lose connection temporarily. You must now access the management interface using the new IP address you just assigned. It is also wise to check the Wireless Settings on the secondary router. Assign a unique SSID (network name) and a different Wi-Fi channel than the primary router to reduce interference. While not strictly required for the wired WAN connection, distinct channels improve performance for wireless clients attached to the secondary unit.

Configuring the Primary Router

The primary router generally requires minimal configuration for this setup, provided it is already functioning correctly. Ensure that the primary router’s DHCP server is enabled. This service assigns IP addresses to devices connected to it. Since the secondary router will request an IP from the primary router via its WAN port, the primary DHCP server must be active to provide that address. Verify that the primary router’s firewall is not blocking incoming connections unnecessarily, though standard home configurations usually allow this traffic. There is no need to change the primary router’s IP address unless it conflicts with other devices on your network. Simply note down its IP address, as this will serve as the Default Gateway for the secondary router later. For those interested in expanding their network further, understanding how different devices interact is crucial. You might find relevant information in our guide on Connecting Windows, Share ChromeOS to ensure your client devices can communicate across these segments if needed.

Physical Connection and Final Steps

Now that both routers are configured, perform the physical connection. Take an Ethernet cable and plug one end into a LAN port on the primary router. Plug the other end into the WAN (Internet) port on the secondary TP-Link WR840N. Do not use a LAN port on the secondary router for this initial connection. Power on the secondary router. Wait for it to boot completely. Check the LED indicators; the Internet/WAN light should illuminate, indicating a successful link to the primary router. To verify connectivity, log into the secondary router’s management interface again using the new LAN IP address you set earlier. Navigate to the Status or Network Map section. Look for the WAN status. It should show "Connected" or display an IP address assigned by the primary router. If the WAN status shows "Disconnected" or 0.0.0.0, check the cable integrity and ensure the primary router’s DHCP is still active. Sometimes, simply restarting both routers resolves temporary handshake failures. Once connected, devices plugged into the secondary router’s LAN ports or connected via its Wi-Fi will receive IPs from the primary router’s pool, but they will be behind the secondary router’s NAT (Network Address Translation). This setup ensures that the secondary router provides internet access while maintaining a separate administrative boundary. If you encounter issues where the secondary router becomes inaccessible, refer to troubleshooting steps for unreachable secondary nodes. See our article on Devices: Secondary Router Unreachable for detailed diagnostics.

Frequently Asked Questions

Why do I need to change the secondary router's IP address?

You must change the IP to prevent subnet conflicts. If both routers share the same IP range, they will fight for control of the network traffic, causing connectivity loss for all devices.

Can I use Wi-Fi to connect the two routers in a LAN-WAN setup?

No, a standard LAN-WAN connection requires a physical Ethernet cable between the primary’s LAN port and the secondary’s WAN port. Using Wi-Fi would require a WDS or Repeater mode, which is a different topology.

Will this setup create double NAT?

Yes, a LAN-WAN connection inherently creates double NAT because each router performs its own network address translation. This may affect online gaming or port forwarding requirements.

What happens if I plug the cable into a LAN port on the secondary router?

If you plug into a LAN port on the secondary router, you are creating a LAN-to-LAN bridge, not a LAN-WAN connection. This disables the secondary router’s routing capabilities and turns it into a simple switch.

How do I access the secondary router if I forget the new IP?

You can perform a hard reset by holding the reset button on the back of the router for 10 seconds. This restores the default IP address found on the device label.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More