mode gre ip

Enables generic routing encapsulation (GRE) over a tunnel interface and specifies that the tunneling protocol is IPv4.

Syntax

mode gre ip
no mode

Command Default

GRE is disabled.

Modes

Interface tunnel configuration mode

Usage Guidelines

Use the no mode gre ip command to disable the GRE IP tunnel encapsulation method for the tunnel interface.

Examples

This example enables GRE IP encapsulation on a tunnel interface.

device# configure terminal
device(config)# interface tunnel 5
device(config-intf-tunnel-5)# mode gre ip