VLAN types
You can implement VLANs based on the following criteria:
•
Port
MAC address
•
Protocol
•
IP subnet
•
Policy
•
•
Other criteria
This chapter covers port-based VLAN, MAC-based VLAN, protocol-based VLAN, and IP-based VLAN.
The port-based VLAN implementation is the basis of all other VLAN implementations. To use any other
VLAN implementations, you must configure port-based VLAN settings.
You can configure these types of VLANs on a port at the same time. When the device is determining
which VLAN a packet that passes through the port should be assigned to, it looks up VLANs in the default
order of MAC-based VLAN, IP-based VLAN, protocol-based VLAN, and port-based VLAN.
Protocols and standards
IEEE 802.1Q, IEEE Standards for Local and Metropolitan Area Networks: Virtual Bridged Local
•
Area Networks
Configuring basic VLAN settings
Configuration restrictions and guidelines
•
As the default VLAN, VLAN 1 cannot be created or removed.
You cannot manually create or remove VLANs reserved for special purposes.
•
•
You cannot use the undo vlan command to remove dynamically learned VLANs.
To remove a protocol reserved VLAN, voice VLAN, management VLAN, dynamic VLAN, VLAN
•
with a QoS policy applied, control VLAN for a smart link group, control VLAN for an RRPP domain,
source VLAN for port mirroring, or remote probe VLAN for remote port mirroring, remove the
configuration from the VLAN first, and execute the undo vlan command.
Configuration procedure
To configure basic VLAN settings:
Step
1.
Enter system view.
2.
Create a VLAN and
enter its view, or create
VLANs in batch.
Command
Remarks
system-view
N/A
Optional.
vlan { vlan-id1 [ to
By default, only the default VLAN (VLAN 1) exists in
vlan-id2 ] | all }
the system.
90