3com 5500-ei pwr Guia De Referência

Página de 1314
 
1-8 
Parameters 
interface-list: List of Ethernet ports to be added to or removed from a VLAN. Provide this argument in 
the form of interface-list  = { interface-type interface-number [ to  interface-type interface-number ] } 
&<1-10>, where: 
interface-type is port type and interface-number is port number. 
The port number to the right of the to keyword must be larger than or equal to the one to the left of 
the keyword. 
&<1-10> means that you can provide up to 10 port lists. 
Description 
Use the port command to assign one or multiple ports to a VLAN. 
Use the undo port command to remove the specified ports from a VLAN. 
Related command: display vlan.  
Examples 
# Assign GigabitEthernet1/0/2 through GigabitEthernet1/0/4 to VLAN 2. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] vlan 2 
[Sysname-vlan2] port GigabitEthernet 1/0/2 to GigabitEthernet 1/0/4 
port access vlan 
Syntax 
port access vlan vlan-id 
undo port access vlan 
View 
Ethernet port view 
Parameters 
vlan-id: VLAN ID defined in IEEE802.1Q, in the range of 1 to 4094.  
Description 
Use the port access vlan command to assign the current access port to the specified VLAN. 
Use the undo port access vlan command to remove the access port from the specified VLAN.  
The VLAN specified by the vlan-id argument must already exist. 
 
All access ports belong to VLAN 1, the system default VLAN. You cannot assign an access port to or 
remove an access port from VLAN 1. If you do that, you can see the message “Can't delete ports from 
or add ports to the default VLAN!”