Creating VLANs and configuring access ports
Sign in to read this lesson
By default every port is in VLAN 1. A VLAN is created with "vlan 50" and "name Computers", and a port is moved into it with "switchport mode access" and "switchport access vlan 50". VLAN information is stored not in the running-config but in vlan.dat on flash. You verify with show vlan (brief) and show interfaces switchport. Frames leave an access port towards the computer untagged.
What you will learn
- By default every port is in VLAN 1 (the default VLAN). VLAN 1 and 1002–1005 cannot be deleted.
- Creating a VLAN:
vlan 50→name Computers. The name is optional but very useful for documentation. - Moving a port into a VLAN:
switchport mode access→switchport access vlan 50. If you assign a port to a VLAN that does not exist, the switch creates it automatically. - VLAN information is stored not in the running-config but in the vlan.dat file on flash. To erase VLANs:
delete flash:vlan.dat. - Verification:
show vlan brief(which port is in which VLAN),show interfaces fa0/1 switchport(Operational Mode: static access, Access Mode VLAN: 50).
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.