set encap

Sets tunnel encapsulation for an egress.

Syntax

set encap name
no set encap name

Parameters

name
Specifies the configured encap to be bound to the egress ro tunnel termination.

Modes

Config mode

Usage Guidelines

Tunnel encap must be configured before binding an encap with an egress.

Examples

The following example configures encap en1 to be used by egress_1 for encapsulation and uses the show command to verify the setting.

device# configure terminal
device(config)# egress egress_1 
device(config-egress)# set encap en1
device(config-egress)# end

device# show egress all
egress egress_1 
  set encap en1 

The following example unbinds the encap en1 from egress_1.

device# configure terminal
device(config)# egress egress_1 
device(config-egress)# no set encap en1