GRE tunneling

Last Updated : Aug 25, 2023 |
Table 1: GRE tunneling CLI commands

Root level command

First level command

Description

interface tunnel

Enter interface tunnel configuration mode, create an interface tunnel if it does not exist, or delete an interface tunnel or sub-interface.

keepalive (GRE tunnel)

Enable the tunnel keepalive feature.

tunnel checksum

Add a checksum to the GRE header of packets traveling through the tunnel.

tunnel destination

Set the destination address of the tunnel.

tunnel dscp

Assign a DSCP value to packets traveling through the tunnel.

tunnel key

Enable and set an ID key for the tunnel.

tunnel mode

Specify the encapsulation method of the tunnel. This command is only included for future development, and for conformity with other systems. Currently, the tunnel can only perform GRE encapsulation.

tunnel path-mtu-discovery

Enable dynamic MTU discovery by the tunnel.

tunnel source

Set the source address of the tunnel.

tunnel ttl

Assign a TTL value to packets traveling through the tunnel.

show interfaces

Show interface configuration and statistics for a particular tunnel or all GRE tunnels.