Answers: VLAN Basics 3

By certskills March 19, 2016 12:05

Today’s lab may be simple – but that is part of the point. All these short labs should be automatic by the time you finish your final CCENT and or CCNA exam prep. Check out the lab requirements here, write down your answer, and then check it here. (You know the drill.)


Example 2: SW1 Config


Creating VLANs on a switch is as simple as typing vlan vlan-id, where vlan-id is a number of your choice. Once the vlan vlan-id command is entered, the switch will immediately create the VLAN and move you to VLAN configuration mode. The name subcommand in VLAN configuration mode can then be used to give the VLAN any name that you would like. This example shows the two VLANs being created with two vlan global commands, each followed by a command to name the VLANs.

Each port needs to be assigned to the correct VLAN per the requirements and figure. The switchport access vlan vlan-id command makes that assignment.

Finally, this configuration does not include the switchport mode access command, but if you included it on each interface, your configuration would be reasonable. The lab did not comment about whether the configuration should make sure each port acts as an access port. As shown here, each port could negotiate VLAN trunking. With the switchport mode access command on a port, it would operate only as an access port, and would use the VLAN as defined in the switchport access vlan command.

VLAN Basics 3
IP Addresses 2
By certskills March 19, 2016 12:05
Write a comment


  1. ekowdavid March 21, 09:42

    fairly simple…

    Reply to this comment
  2. Supriyo July 10, 04:17

    Interface Range command will be more efficient i this case.
    interface rance GigabitEthernet0/1 -2
    interface rance GigabitEthernet0/3 -4

    Reply to this comment
View comments

Write a comment

Comment; Identify w/ Social Media or Email


Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.