3com 9100 User Manual

Page of 184
Configuring VLANs on the Switch
77
VLAN Configuration
Examples
The following Switch 9100 example creates a port-based VLAN named 
accounting, assigns the IP address 132.15.121.1, and assigns ports 1, 2, 
3, and 6 to it:
create vlan accounting
config accounting ipaddress 132.15.121.1
config default delete port 1-3,6
config accounting add port 1-3,6
Because VLAN names are unique, you do not need to enter the keyword 
vlan 
after you have created the unique VLAN name. You can use the 
VLAN name alone.
The following Switch 9100 example creates a tag-based VLAN named 
video. It assigns the VLANid 1000. Ports 4 through 8 are added as tagged 
ports to the VLAN.
create vlan video
config video tag 1000
config video add port 4-8 tagged
config vlan <name> add port 
<portlist> {tagged | untagged}
Adds one or more ports to a VLAN. You can 
specify tagged port(s), untagged port(s). By 
default, ports are untagged.
config vlan <name> delete port 
<portlist> {tagged | untagged}
Deletes one or more ports from a VLAN.
config vlan <name> protocol 
[<protocol_name> | any]
Configures a protocol-based VLAN. If the keyword 
any
 is specified, then it becomes the default 
VLAN. All packets that cannot be classified into 
other protocol-based VLANs are assigned to the 
default VLAN of that port.
config vlan <name> qosprofile 
<qosname>
Configures a VLAN to use a particular QoS profile. 
Dynamic FDB entries associated with the VLAN are 
flushed once the change is committed.
config vlan <name> tag <vlanid>
Assigns a numerical VLANid. The valid range is 
from 1 to 4095.
Table 19   VLAN Configuration Commands (continued)
Command
Description