beautypg.com

Protocols and standards, Configuring basic vlan settings – H3C Technologies H3C S10500 Series Switches User Manual

Page 126

background image

115

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 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-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

Follow these steps to configure basic VLAN settings:

To do…

Use the command…

Remarks

Enter system view

system-view

Create VLANs

vlan { vlan-id1 [ to vlan-id2 ] |

all }

Optional
Use this command to create VLANs in bulk.

Enter VLAN view

vlan vlan-id

Required
By default, only the default VLAN (VLAN 1)
exists in the system.
If the specified VLAN does not exist, this

command creates the VLAN first.

Configure a name for the
VLAN

name text

Optional
By default, the name of a VLAN is its VLAN
ID (VLAN 0001, for example).

Configure the description of
the VLAN

description text

Optional
VLAN ID is used by default (VLAN 0001,
for example).

NOTE:

As the default VLAN, VLAN 1 cannot be created or removed.

You cannot manually create or remove VLANs reserved for special purposes.

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, or remote

probe VLAN for remote port mirroring, remove the configuration from the VLAN first, and execute the
undo vlan command.