3Com S7902E Command Reference Manual - page 208
1-16
Examples
# Assign the trunk port GigabitEthernet 2/0/1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN 100.
[Sysname] interface GigabitEthernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port link-type trunk
[Sysname-GigabitEthernet2/0/1] port trunk permit vlan 2 4 50 to 100
Please wait........... Done.
# Assign the trunk Layer-2 aggregate interface
Bridge-aggregation 1
to VLAN 2, assuming that
Bridge-aggregation 1
does not have member ports.
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk permit vlan 2
Please wait... Done.
# Assign the trunk Layer-2 aggregate interface
Bridge-aggregation 1
to VLAN 13 and VLAN 15.
Among the member ports of the aggregation group corresponding to
Bridge-aggregation 1
,
GigabitEthernet 2/0/1 is an access port, and GigabitEthernet 2/0/2 is a trunk port.
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk permit vlan 13 15
Please wait... Done.
Error: Failed to configure on interface GigabitEthernet2/0/1! This port is not a Trunk port!
Configuring GigabitEthernet2/0/1... Done.
Among the output fields above, the message “Please wait... Done” indicates that the configuration on
Bridge-aggregation 1
succeeded; “Error: Failed to configure on interface GigabitEthernet2/0/1! This
port is not a Trunk port!” indicates that the configuration failed on GigabitEthernet 2/0/1 because
GigabitEthernet 2/0/1 was not a trunk port; “Configuring Ethernet GigabitEthernet 2/0/2... Done”
indicates that the configuration on GigabitEthernet 2/0/2 succeeded.
port trunk pvid vlan
Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
View
Ethernet interface view, port group view, Layer-2 aggregate interface view
Default Level
2: System level
Parameters
vlan-id
: VLAN ID, in the range of 1 to 4094
Description
Use the
port trunk pvid vlan
command to configure the default VLAN ID for the trunk port.