Cisco Systems 10000 Network Router User Manual


 
6-17
Cisco 10000 Series Router Software Configuration Guide
OL-2226-23
Chapter 6 Configuring PPPoE over Ethernet and IEEE 802.1Q VLAN
VLAN Range
Configuration Examples for VLAN Range
Example 6-6 configures the Fast Ethernet subinterfaces with the range 5/1.1 to 5/1.4 and applies the
following VLAN IDs to the subinterfaces:
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)
Example 6-6 Configuring a Range of VLAN Subinterfaces
Router(config)# interface range fastethernet5/1.1 - fastethernet5/1.4
Router(config-if-range)# encapsulation dot1q 301
Router(config-if-range)# no shutdown
Step 2
Router(config-int-range)# encapsulation dot1q
vlan-id [native]
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.
Note VLAN ID 0 is a valid ID, but is not a valid
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.
Note The VLAN ID is applied to the first subinterface in
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
Command Purpose