User's Manual
216
vlan
vlan-range
Creates multiple VLANs simultaneously.
no vlan
vlan-id | vlan-range
Deletes one or multiple VLANs.
You can use the GVRP protocol to dynamically add or delete the VLAN.
31.4.2 Configuring the Port of the Switch
The switch's port supports the following modes: the access mode, the relay mode, the VLAN tunnel
mode, the VLAN translating tunnel mode and the VLAN tunnel uplink mode.
1. The access mode indicates that the port belongs to just one VLAN; only the untagged Ethernet
frame can be transmitted and received.
2. The relay mode indicates that the port connects other switches and the tagged Ethernet frame
can be transmitted and received.
3. The VLAN translating tunnel mode is a sub mode based on the relay mode. The port looks up
the VLAN translation table according to the VLAN tag of received packets to obtain
corresponding SPVLAN, and then the switching chip replaces the original tag with SPVLAN or
adds the SPVLAN tag to the outside layer of the original tag. When the packets is forwarded
out of the port, the SPVLAN will be replaced by the original tag or the SPVLAN tag will be
removed mandatorily. Hence, the switch omits different VLAN partitions that access the
network, and then passes them without change to the other subnet that connects the other
port of the same client, realizing transparent transmission.
4. The VLAN tunnel uplink mode is a sub mode based on the relay mode. The SPVLAN should
be set when packets are forwarded out of the port. When the packets are received by the port,
their TPIDs will be checked. If difference occurs or they are untagged packets, the SPVLAN
tag which contains their own TPID will be added to them as their outer-layer tag.When the
packets are received by the port, their TPIDs will be checked. If difference occurs or they are
untagged packets, the SPVLAN tag which contains their own TPID will be added to them as
their outer-layer tag.
Each port has a default VLAN and PVID; all VLAN-untagged data received on the port belongs to
the packets of the VLAN.
The relay mode can group the port to multiple VLANs; at the same time, you can configure the type
of to-be-forwarded packets and the quantity of the corresponding VLANs.
Run the following commands to configure the switch’s port:
Command Purpose
switchport pvid
vlan-id
Configures PVID of the switch’s interface.
switchport mode {access | trunk
| dot1q-
translating-tunnel | dot1q-tunnel-uplink
tpid
}
Configures the interface mode of the
switch.
switchport trunk vlan-allowed
…
Configures the VLAN range of the switch’s
interface.
switchport trunk vlan-untagged
…
Configures the untagged VLAN ranges of
the switch’s port.
swithport flat-translation
To enable flat mode N:1 flat translation
function.
31.4.3 Creating/deleting the VLAN interface
To realize network management or layer-3 routing, you need create a VLAN interface which can
be used for designating the IP address and mask of the interface. Run the following command to