Which of the following commands configures a port with a VLAN?

Last Updated on August 1, 2021 by Admin 2

Which of the following commands configures a port with a VLAN?

  • vlan
  • vlan database
  • switchport access vlan
  • switchport mode access
Explanation:

The switchport access vlan command configures a port with a virtual local area network (VLAN). The syntax for the switchport access vlan command is as follows:

switchport access vlan {vlan-id | dynamic}

If the vlan-id parameter is specified, then a static VLAN will be configured. If the dynamic keyword is specified, then dynamic VLAN assignment by a VLAN Membership Policy Server (VMPS) will occur. Static VLAN configuration is easy to configure, secure and works well in networks where moves, additions, and changes are rare. In environments where this not the case, dynamic VLANs may be preferable.

The vlan command is used to add VLANs to the VLAN database and to configure VLAN settings.

  • The vlan database command is issued to enter VLAN configuration mode. The following commands can be issued from VLAN configuration mode:
  • abort – exits without applying changes
  • apply – applies changes and bumps the revision number
  • exit – applies changes, bumps the revision number and exits VLAN configuration mode
  • no – negates a command
  • reset – discards changes and rereads the VLAN database
  • show – displays information
  • vlan – configures the VLAN database
  • vtp – configures VLAN Trunking Protocol (VTP) settings

The switchport mode access command disables trunking for a port. The syntax for the switchport mode command is as follows:

switchport mode {access | trunk | dynamicdesirable | dynamicauto}

Objective:
Layer 2 Technologies
Sub-Objective:
Configure and verify VLANs

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments