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
- Configure device A as a wireguard server, please refer to other documents for basic wireguard server configuration.
- Configure the WIREGUARD server option as follows
! Untitled
-
Add the following static routing rules
Add the following static routing rules ! Untitled
-
Start the wireguard server
-
Export the exported client configuration to device B as a backup
Configuration on device B
- VPN clinet working in customized route mode
! Untitled
- Add the configuration file exported from device A to the list of wireguard clients, see other documents for details.
- Configure the WIREGUARD client options to the following state
! Untitled
- Add the following static routing rules
Add the following static routing rules ! Untitled
- Enable the wireguard client and connect to the
Translated with DeepL Translate: The world's most accurate translator (free version)