User Interface Menu
[M] Menus
[K] Command Line
[I] IP Configuration
Enter Selection: K
Once a CLI session on the switch is open, you must create a VLAN number and name. The command used to
do this is as follows:
vlan [vlan#] name [vlan name] command
To use this command, you must be in Global Configuration mode on the switch. To enter Global
Configuration mode and create VLANs, take a look at the following example:
>enable
#config terminal
Enter configuration commands, one per line. End with CNTL/Z
1912EN(config)#vlan 2 name sales
1912EN(config)#vlan 3 name marketing
1912EN(config)#exit
Warning A created VLAN is unused until it is assigned to a switch port or ports. By default, all ports remain
in VLAN 1 until the port is assigned to another VLAN.
Assigning a Static VLAN to an Interface on a 1900EN Series
You can assign each port on an interface to a VLAN by using the vlan−membership command. Unlike the
Set/Clear interface, which allows you to assign and configure a VLAN to multiple ports with one command,
you must configure VLANs port by port on the 1900EN series. To configure VLANs on the 1900EN series,
follow these steps:
First you need to enter Interface Configuration mode, as shown here:
1912EN#config terminal
Enter configuration commands, one per line. End with CNTL/Z
1912EN(config)#interface e0/2
1.
Next, you need to issue the vlan−membership command. There are two options for this command:
dynamic—Allows the port to be set to a specific MAC address based on the MAC address of
the end user.
♦
static—The port number you as the administrator selects will remain the same regardless of
the MAC address used by the end user of that port.
♦
2.
In the following examples we will be using static VLANs. To see how many VLANs are available to
assign to an interface, use the following command:
1912EN(config−if)#vlan−membership static ?
<1−1005> ISL VLAN index
3.
Next, take the VLANs created in the previous two steps and assign them to Ethernet ports 4 and 5.
You can only assign one VLAN per port, as shown here:
4.
1912EN(config−if)#vlan−membership static 2
1912EN(config−if)#interface e0/4
1912EN(config−if)#vlan−membership static 3
1912EN(config−if)#interface e0/5
104
Summary of Contents for Catalyst 1900 Series
Page 1: ......