VPN Networking (net to net)

Scenario Description

Using net to net networking mode, you can realize mutual access and resource sharing between two different subnets.

Topology Diagram

! Untitled

Configuration Steps

The following configuration is deployed according to the topology diagram above, based on the WIREGUARD implementation.

Configuration on Device A

  1. Configure device A as a wireguard server, please refer to other documents for basic wireguard server configuration.
  2. Configure the WIREGUARD server option as follows

! Untitled

  1. Add the following static routing rules

    Add the following static routing rules ! Untitled

  2. Start the wireguard server

  3. Export the exported client configuration to device B as a backup

Configuration on device B

  1. VPN clinet working in customized route mode

! Untitled

  1. Add the configuration file exported from device A to the list of wireguard clients, see other documents for details.
  2. Configure the WIREGUARD client options to the following state

! Untitled

  1. Add the following static routing rules

Add the following static routing rules ! Untitled

  1. Enable the wireguard client and connect to the

Translated with DeepL Translate: The world's most accurate translator (free version)