7-3
Cisco ONS 15454 SONET/SDH ML-Series Multilayer Ethernet Card Software Feature and Configuration Guide, R4.0
78-15224-02
Chapter 7      Configuring VLANs
IEEE 802.1Q VLAN Configuration Example
To configure VLANs using IEEE 802.1Q VLAN encapsulation, perform the following procedure, 
beginning in global configuration mode:
Note In a bridge group on the ML-Series card, the VLAN ID does not have to be uniform across interfaces 
that belong to that bridge group. For example, a bridge-group can connect from a VLAN ID subinterface 
to a subinterface with a different VLAN ID, and then frames entering with one VLAN ID can be changed 
to exit with a different VLAN ID. This is know as VLAN translation.
Note IP routing is enabled by default. To enable bridging, enter the no ip routing or bridge IRB command.
Note Native VLAN frames transmitted on the interface are normally untagged. All untagged frames received 
on the interface are associated with the native VLAN, which is always VLAN 1. Use the command 
encapsulation dot1q 1 native.
IEEE 802.1Q VLAN Configuration Example
The VLAN configuration example for the ML100T-12 shown in Figure 7-2 on page 7-4 depicts the 
following:
• Fast Ethernet subinterface 0.1 is in the IEEE 802.1Q native VLAN 1.
• Fast Ethernet subinterface 0.2 is in the IEEE 802.1Q VLAN 2. 
• Fast Ethernet subinterface 0.3 is in the IEEE 802.1Q VLAN 3. 
• Fast Ethernet subinterface 0.4 is in the IEEE 802.1Q VLAN 4. 
Command Purpose
Step 1
Router(config)# bridge 
bridge-group
-
number 
protocol 
type
Assigns a bridge group (VLAN) number and 
define the appropriate spanning tree type. See 
Chapter 5, “Configuring Bridging.”
Step 2
Router(config)# interface 
type number
Enters interface configuration mode to configure 
the interface.
Step 3
Router(config-if)#no ip address
Disables IP processing.
Step 4
Router(config)# interface 
type 
number.subinterface-number
Enters subinterface configuration mode to 
configure the subinterface.
Step 5
Router(config-subif)# encap dot1q 
vlan-number
Sets the encapsulation format on the VLAN to 
IEEE 802.1Q.
Step 6
Router(config-subif)# bridge-group
 
bridge-group
-
number
Assigns a network interface to a bridge group.
Step 7
Router(config-subif)# end
Returns to privileged EXEC mode.
Step 8
Router# copy running-config startup-config
(Optional) Saves your configuration changes to 
NVRAM.