DGS-6604
m
trunk allowed-vlan
CLI Reference Guide
912
trunk allowed-vlan
Use the
trunk allowed-VLAN
configuration command to set the VLAN
characteristic. It sets the allowable VLANs that can receive and send traffic on
the interface in tagged format. Use the
no trunk allowed-VLAN
command to
remove a tagged member port from a specified VLAN.
trunk allowed-vlan
VLAN-ID
[ , | - ]
no trunk allowed-vlan [
VLAN-ID
[ , | - ]]
Default
Not configured
Command Mode
interface configuration
Usage Guideline
The valid interfaces for this command can be either physical ports or port-
channels.
By setting the
trunk allowed-vlan
command multiple times, a port can become a
tagged member port of multiple VLANs.
If the VLAN does not exist, an error message will return to indicate it.
When this command is applied, the port will change to trunk mode. If the mode is
changed, the setting for the previous mode will disappear.
When using the
no trunk allowed-vlan
command without specifying a VLAN-ID,
then the port will have its tagging memberships removed from all VLANs.
Example
This example shows how to set an interface eth3.1 to a tagged member of VLAN
1000.
Verify the settings with the
show vlan interface
command.
Syntax Description
VLAN-ID
Specifies the VLAN to add or remove tagging members to/from it.
,
(Optional) Specifies a series of VLANs, or separate a range of VLANs from a
previous range. No space before and after the comma.
-
(Optional) Specifies a range of VLANs. No space before and after the hyphen.
Switch(config)# interface eth3.1
Switch(config-if)# trunk allowed-vlan 1000