IP subnet
•
•
Policy
Other criteria
•
This chapter covers port-based VLAN, MAC-based VLAN, protocol-based VLAN, and IP subnet-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 all these types of VLANs on a port at the same time. When the switch is determining
which VLAN a packet that passes through the port should be assigned to, it looks up the VLANs in the
default order of MAC-based VLAN, IP sub-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.
•
To delete 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,
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 batches.
3.
Enter VLAN view.
4.
Configure a name for
the VLAN.
5.
Configure a description
for the VLAN.
Command
system-view
vlan { vlan-id1 [ to vlan-id2 ] |
all }
vlan vlan-id
name text
description text
119
Remarks
N/A
Optional.
By default, only the default VLAN (VLAN 1)
exists in the system.
Required only when you create VLANs in
batches.
Optional.
By default, the name of a VLAN is its VLAN
ID (VLAN 0001, for example).
Optional.
The default description is VLAN vlan-id,
which is the ID of the VLAN. For example,
the description of VLAN 100 is VLAN 0100
by default.