Hi there!
This time, I will share with you about the application of VPN in GPON by GRE.
GRE Introduction
Generic Routing Encapsulation (GRE) is a common routing encapsulation protocol that can encapsulate network layer protocols, such as IPX, ATM, IPv6/IPv4, and AppleTalk, inside virtual point-to-point links over an Internet Protocol network.
GRE provides a transmission channel in which one network layer protocol is encapsulated in another network layer protocol. This channel is called a GRE tunnel.
GRE Applications
Workaround for networks that support a limited number of hops

Setting up a VPN across physically separate networks
With GRE tunnels, you can set up a VPN across networks physically separated by a WAN.

Communication across a WAN
Static routes can be used to connect a private network to a public network or another physically separate private network. This configuration applies to only IPv4 networks.

GRE Configuration
Example for Configuring a Static Route for GRE
This section describes how to configure a static route for generic routing encapsulation (GRE) to transmit user traffic over the GRE tunnel. A static route is required between the device and its connected client.
Context
As shown in the following figure, device A (OLT), device B (OLT), and device C (router) belong to the backbone VPN and Open Shortest Path First (OSPF) runs between them.
A direct link is required between device A and device C. To meet such a requirement, configure a GRE tunnel between device A and device C, create a static route, and specify the tunnel interface as the outgoing interface of the static route so that PC1 and PC2 can communicate with each other.
PC1 and PC2 use device A and device C respectively as their default gateways.

Procedure
1. Configure the interfaces and routes.
2. Configure OSPF by referring to Configuration Example of OSPF to ensure connectivity between NEs.
3. Configure a GRE tunnel on device A and device C.
4. Configure GRE binding and paths.
The above contents are from the ma5800 product manual. For more details, please visit the GRE. If you can't open this link, please refer to this post to upgrade your permissions: How do we upgrade our account.
Thank you!
