Configuration Examples For Vlan Range - Cisco 10000-2P2-2DC Software Configuration Manual

10000 series
Table of Contents

Advertisement

Chapter 6
Configuring PPPoE over Ethernet and IEEE 802.1Q VLAN
Command
Step 2
Router(config-int-range)# encapsulation dot1q
vlan-id [native]

Configuration Examples for VLAN Range

Example 6-6
following VLAN IDs to the subinterfaces:
Example 6-6
Router(config)# interface range fastethernet5/1.1 - fastethernet5/1.4
Router(config-if-range)# encapsulation dot1q 301
Router(config-if-range)# no shutdown
OL-2226-23
configures the Fast Ethernet subinterfaces with the range 5/1.1 to 5/1.4 and applies the
Fast Ethernet5/1.1 = VLAN ID 301 (vlan-id)
Fast Ethernet5/1.2 = VLAN ID 302 (vlan-id = 301 + 2 - 1 = 302)
Fast Ethernet5/1.3 = VLAN ID 303 (vlan-id = 301 + 3 - 1 = 303)
Fast Ethernet5/1.4 = VLAN ID 304 (vlan-id = 301 + 4 - 1 = 304)
Configuring a Range of VLAN Subinterfaces
Purpose
Enables IEEE 802.1Q encapsulation of traffic and applies
a unique VLAN ID to each subinterface within the range.
The vlan-id argument is the virtual LAN identifier. You
must enter a value from 1 to 4095.
VLAN ID 0 is a valid ID, but is not a valid
Note
designation of a VLAN. VLAN ID 0 is used
primarily to convey class of service (CoS)
information on packets that would otherwise be
untagged.
(Optional) The native argument sets the VLAN ID value of
the port to the vlan-id value.
The VLAN ID is applied to the first subinterface in
Note
the range. Each subsequent interface is assigned a
VLAN ID, which is the specified vlan-id plus the
subinterface number, minus the first subinterface
number:
VLAN ID + subinterface number - first
subinterface number
Cisco 10000 Series Router Software Configuration Guide
VLAN Range
6-17

Advertisement

Table of Contents
loading

This manual is also suitable for:

1000510008

Table of Contents