3com 4500 PWR 26-PORT User Manual

Page of 466
Ethernet Port Configuration Commands
59
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]
port trunk permit vlan
Syntax
port trunk permit vlan {vlan_id
_list | all}
undo port trunk permit vlan {vlan_id
_list| all}
View
Ethernet port view
Parameter
vlan_id: 
Enter a VLAN ID, or more than one VLAN ID,  in the range 2 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 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 (
vlan_id to last_vlan_id
). 
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
.
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:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]port trunk permit vlan 2 4 50 to 100
Please wait... Done.
[4500-Ethernet1/0/1]
port trunk pvid vlan
Syntax
port trunk pvid vlan vlan_id
undo port trunk pvid