Hello Jean,
Below static route is created towards the ISP router from R1 in your picture, same static created from the R2 ruoter as well.
set routing-options static route 192.168.2.1/32 next-hop 172.18.1.1
But you need to have a public ip to transport you GRE packet in a real time scenario.
Below is a operation happens during the GRE tunneling.
Encapsulation—A router operating as a tunnel source router encapsulates and forwards GRE packets as follows:
- When a router receives a data packet (payload) to be tunneled, it sends the packet to the tunnel interface.
- The tunnel interface encapsulates the data in a GRE packet and adds an outer IP header.
- The IP packet is forwarded on the basis of the destination address in the outer IP header.
De-encapsulation—A router operating as a tunnel remote router handles GRE packets as follows:
- When the destination router receives the IP packet from the tunnel interface, the outer IP header and GRE header are removed.
- The packet is routed based on the inner IP header.
Regards,
Akash
'Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!'