Create GRE tunnel
Creates an ip-over-ip tunnel endpoint in the router.
gretunnel:create router:router-name gre-interface tunnel-endpoint-ip tunnel-endpoint-mask source-ip destiny-ip
Arguments
gre-interface: Name of the gre interface that will acts as the tunnel endpoint.
tunnel-endpoint-ip: IP address to be configured at the gre endpoint. (private IP address)
tunnel-endpoint-mask: Network mask of the tunnel endpoint ip address. (private IP mask)
source-ip: IP of the local interface where the tunnel traffic will be send. (public IP address)
destiny-ip: IP of the remote interface where the tunnel traffic will be send. (public IP address)
gretunnel:create router:junos20 gr-1/0/1.2 10.10.0.1 255.255.255.252 147.25.19.1 152.47.87.26
Delete GRE tunnel
Removes an existing ip-over-ip tunnel endpoint.
gretunnel:delete router:router-name gre-interface
Arguments
gre-interface: Name of the gre interface that will acts as the tunnel endpoint.
gretunnel:delete router:junos20 gr-1/0/1.2
Show GRE tunnels
List all GRE tunnel endpoints configured in the router.
gretunnel:show router:router-name