ip encapsulation

Changes the IP encapsulation type.
Syntax
ip encapsulation { ethernet-2 | snap }
no ip encapsulation { ethernet-2 | snap }
Command Default

Layer 3 switches use Ethernet II by default.

Parameters
ethernet-2
Configures the IP encapsulation type as Ethernet II.
snap
Configures the IP encapsulation type as Ethernet SNAP (also called IEEE 802.3).
Modes

Interface configuration mode

Usage Guidelines

The Layer 3 switch encapsulates IP packets into Layer 2 packets, to send the IP packets on the network.

All IP devices on an Ethernet network must use the same format. Layer 3 switches use Ethernet II by default. All devices connected to the Layer 3 switch port must use the same encapsulation type.

The no form of the command resets the encapsulation type as Ethernet II.

Examples

The following example configures the IP encapsulation type as Ethernet SNAP.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ip encapsulation snap