Configuration manual

VLAN configuration 27
Configuration — Command Line Interface
3 Assign the ports to the vlan:
ports <interface-type> <tagged-port(s)> untagged
<interface-type> <untagged-port(s)> name <vlan-name>
4 Exit from vlan configuration mode:
exit
The system is now in global configuration mode.
5 For each one of the interface ports in the ports command, do steps 6 through
8.
6 Enter interface configuration mode on the interface port.
interface fastethernet <port>
7 For this interface, assign the specified port to the VLAN:
switchport pvid <vlan-id-number>
8 Exit the interface configuration mode:
exit
The system is now in global configuration mode.
9 After configuring all ports, exit all levels of configuration mode:
end
End
Variable definitions
The following table describes the variables and values for creating a VLAN.
Variable Value
vlan-id-number
A unique VLAN ID that you want to configure as a static VLAN.
interface-type
The type of port. Valid values are fastethernet and
gigbitethernet
tagged-port(s)
The member port number list for a VLAN.
Member ports represent the set of ports permanently assigned to the
VLAN egress list. Frames that belong to the specified VLAN are forwarded
on the ports in the egress list.
Enter a comma separated list of ports or port ranges. For example, 0/1-6,
0/11.
Valid values for
fastethernet are 0/1 to 0/6
Valid values for gigabitethernet are 0/7 to 0/8
untagged-port(s)
The untagged port number list for a VLAN.
Enter a comma separated list of ports or port ranges. For example, 0/1-6,
0/11.
The Untagged Ports list must be a subset of the Member Ports.
Valid values for
fastethernet are 0/1 to 0/6
Valid values for gigabitethernet are 0/7 to 0/8