2. By default, all ports on a switch are in the VLAN 1. We can
verify that by typing the show vlan command from the IOS
enable mode of a switch:
3. In the previous slide, you can see that all of the 24 ports
of the switch are in the same VLAN, namely VLAN 1.
Two steps are required to create a VLAN and assign
a switch port to the VLAN:
1. create a vlan using the vlan NUMBER global mode
command
2. assign a port to the VLAN by using two interface sub
commands. The first command is the switch port mode
access command. This command specifies that the
interface is an access interface. The second command is
the switch port access vlan NUMBER command. This
command assigns the interface to a VLAN.
4. Here is an example of assigning the VLAN 2 to the
interface:
• In the picture above, you can see that the VLAN 2 was
created and that Fa0/1 port on the switch was moved to
this VLAN