How to Configure Static Routes on a Peplink Router

Introduction

Peplink static routes tell your router where to send traffic when a specific network is located behind another router or gateway.

A Peplink automatically knows how to reach networks that are directly connected to it. However, if another subnet exists behind a different router or firewall, the Peplink needs to know which gateway can reach that network.

A static route provides this information.

Why Would You Use a Static Route?

Imagine a company where the Peplink is the main router, but a second router provides access to a separate server network.

The setup looks like this:

Office PC → Peplink Router → Second Router → Server Network

For example, the Peplink LAN is 192.168.1.0/24, the Peplink IP is 192.168.1.1, and the second router has the IP address 192.168.1.2.

Behind that second router is another network, 10.20.0.0/24, containing a server with the IP address 10.20.0.10.

Without a static route, the Peplink does not know that 10.20.0.0/24 can be reached through the second router.

The static route tells the Peplink:

To reach 10.20.0.0/24, send the traffic to 192.168.1.2.

The traffic can then follow the correct path:

Office PC → Peplink → Second Router → Server

This is useful whenever another router, firewall, MPLS router or Layer 3 device provides access to networks that are not directly connected to the Peplink.

How Does a Peplink Static Route Work?

A static route requires three important values.

Destination Network

The Destination Network is the network you want to reach.

Example: 10.20.0.0

Subnet Mask

The Subnet Mask defines the size of the destination network.

Example: 255.255.255.0

Together, these represent the network 10.20.0.0/24.

Gateway

The Gateway is the IP address of the next router that knows how to reach the destination network.

Example: 192.168.1.2

The gateway itself must be reachable from the Peplink.

The complete static route is therefore:

Destination Network: 10.20.0.0
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.2

When the Peplink receives traffic for 10.20.0.0/24, it forwards that traffic to 192.168.1.2. The second router then forwards it towards the destination network.

How to Configure Peplink Static Routes

Step 1: Gather the Required Information

Before creating the route, determine which network you want to reach and which router can reach it.

Example destination network: 10.20.0.0/24

Example gateway: 192.168.1.2

The gateway must already be reachable from the Peplink.

Step 2: Open the LAN Network Settings

Log in to the Peplink Web Admin interface and navigate to:

Network > LAN > Network Settings

Locate the Static Route Settings section.

Step 3: Add the Static Route

Create a new static route using:

Destination Network: 10.20.0.0
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.2

Save and apply the configuration.

The Peplink now knows that traffic for 10.20.0.0/24 should be sent to 192.168.1.2.

Step 4: Check the Return Route

Routing needs to work in both directions.

The Peplink now knows how to reach 10.20.0.0/24, but the remote network must also know how to send traffic back towards the Peplink network 192.168.1.0/24.

Without a valid return route, traffic may reach the destination but replies will not return correctly.

For example:

Forward: 192.168.1.100 → Peplink → 192.168.1.2 → 10.20.0.10

Return: 10.20.0.10 → Second Router → 192.168.1.100

Verification

After creating the static route, test connectivity to a device on the remote network, for example 10.20.0.10.

Confirm that:

  1. The gateway 192.168.1.2 is reachable
  2. The remote network can be reached
  3. A valid return route exists
  4. Firewalls allow the required traffic
  5. The correct destination network and subnet mask are configured

Troubleshooting

The Gateway Cannot Be Reached

Confirm that the gateway IP is correct and reachable from the Peplink. Also check the subnet and VLAN configuration.

The Gateway Works but the Remote Network Does Not

Check whether the second router has a valid route towards the destination network.

Traffic Reaches the Destination but There Is No Reply

Check the return route. The remote side must know how to reach the Peplink LAN network.

The Wrong Destination Was Entered

When routing an entire subnet, use the network address.

Example: 10.20.0.0/24

Do not use an individual client address such as 10.20.0.10 when you want to route the complete subnet.

Routing Is Correct but Traffic Is Still Blocked

Check the firewall rules on the Peplink, the second router and any other firewall in the traffic path.

Previous Article

Peplink IP Passthrough: How It Works and How to Configure It

Next Article

Peplink Port Forwarding and NAT Mapping

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *