3Com S7902E Command Reference Manual - page 202
1-10
[Sysname-vlan2] port GigabitEthernet 2/0/1 to GigabitEthernet 2/0/3
# Assign Layer-2 aggregate interface
Bridge-aggregation 1
to VLAN 2.
[Sysname] vlan 2
[Sysname-vlan2] port bridge-aggregation 1
port access vlan
Syntax
port access vlan vlan-id
undo
port
access vlan
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. Be sure that the VLAN specified by the VLAN ID already
exists.
Description
Use the
port access vlan
command to assign the current access port(s) to the specified VLAN.
Use the
undo port access vlan
command to restore the default.
By default, all access ports belong to VLAN 1.
You can assign an access port to only one VLAN. When doing that, note the following:
z
In Ethernet interface view, this command only applies to the current port.
z
In port group view, this command applies to all ports in the port group. For information about port
groups, refer to
Ethernet Interface Configuration
in the
Access Volume
.
z
In Layer-2 aggregate interface view, this command applies to the Layer-2 aggregate interface and
all its member ports. After you perform the configuration, the system starts applying the
configuration to the aggregate interface and its aggregation member ports. If the system fails to do
that on the aggregate interface, it stops applying the configuration to the aggregation member ports.
If it fails to do that on an aggregation member port, it simply skips the port and moves to the next
port. For information about Layer-2 aggregate interfaces, refer to
Link Aggregation Configuration
in
the
Access Volume
.
Examples
# Assign GigabitEthernet 2/0/1 to VLAN 3.
[Sysname] vlan 3
[Sysname-vlan3] quit
[Sysname] interface GigabitEthernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port access vlan 3