Skip to Content
Cisco IOS in a Nutshell, 2nd Edition
book

Cisco IOS in a Nutshell, 2nd Edition

by James Boney
August 2005
Intermediate to advanced
798 pages
31h 12m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS in a Nutshell, 2nd Edition

Name

encapsulation (interface) — interface

Synopsis

encapsulation type
encapsulation dot1q vlan-id [native]
encapsulation isl vlan-id
no encapsulation

Configures

Encapsulation method used by the interface

Default

Depends on interface

Description

This command sets the encapsulation method for this interface. Possible values for the encapsulation type are atm-dxi, bstun (block serial tunnel), dot1q, frame-relay (see Chapter 6), hdlc, isl, lapb, ppp, sde, dlc, and smds.

For Frame Relay interfaces, the options are cisco and ietf. The default is cisco, which is Cisco’s proprietary encapsulation method. ietf sets the encapsulation method to the IETF standard, which is used when connecting to another vendor’s Frame Relay router or switch.

For interfaces that are compatible, such as Fast Ethernet interfaces, you can enable dot1q to apply a VLAN ID to the interface. native is an optional keyword that sets the VLAN ID value of the port to the value specified by vlan-id. To enable ISL encapsulation on an interface, use the isl keyword followed by the VLAN ID you wish to use. For more information on dot1q and ISL encapsulation, see Chapter 14.

Example

The following code uses hdlc encapsulation on a serial line:

interface serial0
  encapsulation hdlc

This code uses PPP on an ISDN line:

interface bri0
  encapsulation ppp

This code sets vlan 101 to a subinterface:

interface fastethernet0/1.101
  encapsulation dot1q 101
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

CISCO IOS in a Nutshell

CISCO IOS in a Nutshell

James Boney
Cisco IOS Cookbook, 2nd Edition

Cisco IOS Cookbook, 2nd Edition

Kevin Dooley, Ian Brown

Publisher Resources

ISBN: 0596008694Errata