Switch 7700 Command reference Guide, v2.0

Table Of Contents
56 CHAPTER 2: USING PORT COMMANDS
Example
To configure the Ethernet port Ethernet1/0/1 as a trunk port, enter the following:
[SW7700-Ethernet1/0/1]port link-type trunk
port trunk permit vlan Syntax
port trunk permit vlan {vlan_id [to last_vlan_id] | all}
undo port trunk permit vlan {vlan_id [to last_vlan_id] | all}
View
Ethernet port view
Parameter
vlan_id: Enter a VLAN ID, or more than one VLAN ID, in the range 1 to 4094.
The trunk port will be added to the specified VLANs. This can be a single VLAN, a
series of individual VLANs separated by a space, or the the first VLAN in a range of
VLANs. If this is the first VLAN in a range use the
last_ vlan_id parameter to
indicate the last VLAN in the range.
to last_vlan_id: Enter a VLAN ID in the range 1 to 4094. If you want to add
the trunk port to a range of VLANs, use this parameter to indicate the last VLAN in
the range. Optional.
You can enter up to ten vlan_id parameters at one port trunk permit vlan
command.
all: Enter to add the trunk port to all VLANs.
Description
Use the port trunk permit vlan command to add a trunk port to one VLAN,
a selection of VLANs or all VLANs.
Use the undo port trunk permit vlan command to remove a trunk port
from one VLAN, a selection of VLANs or all VLANs.
A trunk port can belong to multiple VLANs. If the port trunk permit vlan
command is used many times, then the VLAN enabled to pass on trunk port is the
set of these
vlan_id_list.
You cannot use the default VLAN with this command.
Related command: port link-type.
Example
To add the trunk port Ethernet1/0/1 to VLAN 2, VLAN 4 and all VLANs in the range
50-100, enter the following:
[SW7700-Ethernet1/0/1]port trunk permit vlan 2 4 50 to 100
port trunk pvid vlan Syntax
port trunk pvid vlan vlan_id
undo port trunk pvid