Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Enable traffic flow identification by configuring a GRE key that will be used to identify an individual traffic flow in a GRE tunnel. RFC2890 describes the enhancements to the GRE header that includes the key field and its use in identifying individual traffic flow in a tunnel. The encapsulating router uses the GRE key to encapsulate the packets for a particular traffic flow. The decapsulating router uses the GRE key to identify and decapsulate those packets for that traffic flow.

The key must be configured on the routers on both endpoints of a tunnel and a policy must be created and exported to populate the key in the forwarding table.



An identifier for a individual traffic flow within a GRE tunnel.

  • Range: 1 through 4,294,967,295.

Required Privilege Level


Release Information

Statement introduced in Junos OS Release 20.1R1