interface tunnel

Syntax

interface tunnel <TUNNEL-NUMBER> mode gre ipv4

interface tunnel <EXISTING-TUNNEL-NUMBER>

no interface tunnel <EXISTING-TUNNEL-NUMBER>

Description

Creates a new IPv4 GRE tunnel and switches to the config-gre-if context for the tunnel.

If the specified GRE tunnel already exists, this command switches to the config-gre-if context for the tunnel.

The no form of this command deletes an existing GRE tunnel.

Command context

config

Parameters

<TUNNEL-NUMBER>

Specifies the number for a new GRE tunnel. Range: 1 to 127.

<EXISTING-TUNNEL-NUMBER>

Specifies the number for an existing GRE tunnel. Range: 1 to 127.

Command context

config-gre-if

Examples

This example defines a new GRE tunnel with number 27.

switch(config)# interface tunnel 27 mode gre ipv4
switch(config-gre-if)# 

This example switches to the config-gre-if context for existing tunnel 27.

switch(config)# interface tunnel 27

This example deletes GRE tunnel 27.

switch(config)# no interface tunnel 27