3com 4500 PWR 26-PORT User Manual

Page of 466
VLAN Configuration Commands
79
View
System View
Parameter
vlan_id: 
Enter the ID of the VLAN interface you want to configure, in the range 
1 to 4094. Note that VLAN1 is the default VLAN and cannot be deleted. 
Description
Use the 
interface vlan-interface
 command to enter a VLAN interface view 
and use the related configuration commands. Use the 
undo interface 
vlan-interface
 command to exit the current VLAN interface. 
Related command: 
display interface vlan-interface
.
Example
To enter the interface view of VLAN1, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500] interface vlan-interface 1
[4500-Vlan-interface1]
port
Syntax
port interface_list
undo port interface_list
View
VLAN view
Parameter
interface_list
: list of Ethernet ports to be added to or deleted from a certain 
VLAN, expressed as 
interface_list
{{ 
interface_type interface_num
 | 
interface_name
 } [ 
to
 { 
interface_type interface_num
 | 
interface_name
 } ] 
}
&<1-10>
 
interface_type
 is the interface type, 
interface_num 
is the interface number 
and interface_name is the interface name. For their meanings and value range, see 
the parameter of 
Port
 in this document. The interface number after keyword 
to
 
must be larger than or equal to the port number before 
to
&<1-10>
: Represents the repeatable times of parameters, 1 is the minimal and 10 
is the maximal.
Description
Using the 
port
 command, you can add one port or one group of ports to a VLAN. 
Using the 
undo port 
command, you can cancel one port or one group of ports 
from a VLAN.
You can add/delete trunk port and hybrid ports to/from a VLAN by 
port
 and 
undo 
port
 commands in Ethernet Port View, but not in VLAN View.
For the related command, see
 display vlan
.