HomeLab Environment Setup

Background and Purpose

Home network configuration typically involves an optical modem as the entry point for the ISP connection, an R4S soft router (NanoPi R4S based on OpenWrt), and a Linksys hardware router for managing the internal network. The goal of this article is to optimize network performance through bridge mode, reduce NAT conflicts, and use the R4S and Linksys to achieve efficient network management and wireless coverage.

Topology Diagram

Home Network Topology Diagram
Home Network Topology Diagram

The optical modem in bridge mode connects to the R4S WAN port. The R4S serves as the main router and handles PPPoE. The Linksys connects its WAN port to the R4S LAN port and is set to bridge mode as a wireless access point.

Optical Modem Bridge Configuration

Reasons for Bridging

Specific Configuration Steps

Hangzhou Unicom Optical Modem

Hangzhou Mobile Optical Modem

Using PPPOE in Bridge Mode

After bridging, the R4S or Linksys needs to dial up using the PPPoE account and password to ensure the Internet connection works properly.


Linksys Bridge Mode

Initial Configuration

Regardless of whether you later want to change it to “Bridge Mode” or “Automatic Configuration - DHCP”, you first need to perform the initial setup. Follow the “Configuration Wizard” to set the router password normally and configure the WiFi password. Without any additional configuration, and as long as the network cable is fine, you should be able to access the Internet normally.

Advanced Settings

Bridge Mode

  1. Connection: Connect the R4S LAN port to the Linksys WAN port (Internet port).
  2. Login interface: Access the Linksys web interface (default 192.168.1.1) and skip the initial setup prompts.
  3. Set bridge mode:
    • Go to Configuration > Connectivity > WAN Setup.
    • Select Bridge Mode to use the router as a wireless access point.
    • Select “Obtain an IP address automatically” or manually specify an IP (such as 192.168.31.2, with the default gateway as 192.168.31.1).
    • Save and reboot the router.

After setup is complete, click “Save” to reboot the router.

Additional Optimizations

Summary

This article provides detailed steps for optical modem bridge mode, R4S PPPOE configuration, and Linksys bridge mode to ensure efficient operation of the home network.