To set the encapsulation method used by the interface, use the encapsulation interface configuration command.
encapsulation encapsulation-type
Syntax Description
encapsulation-type Encapsulation type; one of the following keywords: · atm-dxi--Asynchronous Transfer Mode-Data Exchange Interface.
· bstun--Block Serial Tunnel.
· frame-relay--Frame Relay (for serial interface).
· hdlc--High-Level Data Link Control (HDLC) protocol for serial interface. This encapsulation method provides the synchronous framing and error detection functions of HDLC without windowing or retransmission.
· isl -- Inter-Switch Link (ISL) (for virtual LANs)
· lapb--X.25 LAPB DTE operation (for serial interface).
· ppp--Point-to-Point Protocol (PPP) (for serial interface).
· sde--IEEE 802.10 Security Data Exchange.
· sdlc--IBM serial SNA.
· sdlc-primary--IBM serial SNA (for primary serial interface).
· sdlc-secondary--IBM serial SNA (for secondary serial interface).
· smds--Switched Multimegabit Data Services (SMDS) (for serial interface).
Default
The default depends on the type of interface. For example, a synchronous serial interface defaults to HDLC.
Command Mode
Interface configuration
Usage Guidelines
This command first appeared in Cisco IOS Release 10.0.
To use SLIP or PPP, the router or access server must be configured with an IP routing protocol or with the ip host-routing command. This configuration is done automatically if you are using old-style slip address commands. However, you must configure it manually if you configure SLIP or PPP via the interface async command.
Examples
The following example resets HDLC serial encapsulation on serial interface 1:
interface serial 1 encapsulation hdlcThe following example enables PPP encapsulation on serial interface 0:
interface serial 0 encapsulation pppRelated Commands
You can use the master indexes or search online to find documentation of related commands.
keepalive
ppp
ppp authentication
slip