3
NOTE:
•
The Ethernet II encapsulation format is used here. Besides the Ethernet II encapsulation format, other
encapsulation formats, including 802.2 LLC, 802.2 SNAP, and 802.3 raw, are also supported by
Ethernet. The VLAN tag fields are also added to frames encapsulated in these formats for VLAN
identification.
•
For a frame with multiple VLAN tags, the network device handles it according to its outer-most VLAN
tag, and transmits its inner VLAN tags as payload.
•
VLAN 4094 is not available when different types of service cards are intermixed.
VLAN types
You can implement VLANs based on the following criteria:
•
Port
•
MAC address
Protocols and standards
•
IEEE 802.1Q,
IEEE Standards for Local and Metropolitan Area Networks: Virtual Bridged Local
Area Networks
Configuring basic VLAN settings
To configure basic VLAN settings:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create VLANs.
vlan
{
vlan-id1
[
to
vlan-id2
]
|
all
}
Optional.
Use this command to create VLANs in bulk.
3.
Enter VLAN view.
vlan
vlan-id
By default, only the default VLAN (that is,
VLAN 1) exists in the system.
If the specified VLAN does not exist, this
command creates the VLAN first.
4.
Configure the VLAN
name.
name
text
Optional.
By default, the VLAN ID is used as the name
of a VLAN. For example,
VLAN 0001
.
5.
Specify a descriptive
string for the VLAN.
description
text
Optional.
By default, the VLAN ID is used as the
description. For example,
VLAN 0001
.
NOTE:
The router does not support VLAN 4094 when it works in hybrid mode. For more information about
system working modes, see
Fundamentals Configuration Guide.