Chapter 7 Service Configuration
Basic Configuration of VLAN
The VLAN configuration on the switch includes the following con-
tents:
Command
Function
zte(cfg)#
clear vlan
<
vlanlist
>
name
This removes a VLAN
name.
zte(cfg)#
create vlan
<
1 4094
>
name
<
name
>
This creates a VLAN
description name.
<
string
>: The name of
VLAN can not be only a
number , and should be
less than 64 characters.
zte(cfg)#
set port
<
portlist
>
pvid
<
14094
>
This sets PVID on port.
zte(cfg)#
set trunk
<
trunklist
>
pvid
<
1 4094
>
This sets PVID of trunk.
zte(cfg)#
set vlan
<
vlanlist
>{
enable
|
disa
ble
}
This enables or disables
VLAN. By default, VLAN
1 is enabled, other
VLANs are disabled.
zte(cfg)#
set vlan
<
vlanlist
>
add port
<
portlist
>[
tag
|
untag
]
This adds a specified
port to VLAN.
zte(cfg)#
set vlan
<
vlanlist
>
delete port
<
portlist
>
This deletes a specified
port from VLAN.
zte(cfg)#
set vlan
<
vlanlist
>
add trunk
<
trunklist
>[
tag
|
untag
]
This adds a specified
trunk to VLAN.
zte(cfg)#
set vlan
<
vlanlist
>
delete trunk
<
trunklist
>
This deletes a specified
trunk from VLAN.
zte(cfg)#
set vlan
<
vlanlist
>
forbid port
<
portlist
>
This forbids learning
port on VLAN.
It is mainly used with
GVRP.
zte(cfg)#
set vlan
<
vlanlist
>
permit port
<
portlist
>
This permits learning
port on VLAN.
It is mainly used with
GVRP.
zte(cfg)#
set vlan
<
vlanlist
>
forbid trunk
<
trunklist
>
This forbids learning
trunk on VLAN.
It is mainly used with
GVRP.
zte(cfg)#
set vlan
<
vlanlist
>
permit trunk
<
trunklist
>
This permits learning
trunk on VLAN.
It is mainly used with
GVRP.
Confidential and Proprietary Information of ZTE CORPORATION
79