Practice Q's - VLANs Flashcards

1
Q

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

A. vlan

B. vlan database

C. switchport access vlan

D. switchport mode access

A

Answer: C 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:

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}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which IOS commands should you enter in interface configuration mode to configure a switch port as an access port and assign it to VLAN 25? (Choose two.)

A. trunk on

B. switchport mode access

C. vlan-membership static 25

D. switchport access vlan 25

A

Answer: B,D

Explanation:

Use the following steps to assign ports to a VLAN:

Enter the interface to be added to the VLAN. switch(config)# interface interface-id

Configure the port as a Layer 2 access port. switch(config-if)# switchport mode access

Assign the port to a VLAN.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What IOS VLAN commands would create a new VLAN and assign it to a port? (Choose two.)

A. switch(config)# vlan 10

B. switch(config-if)# switchport access vlan 10

C. switch(config)# vlan database 10

D. switch(config-if)# switchport vlan 10 enable

A

Answer: A,B

Explanation:

The commands necessary to create a VLAN and assign it to a port are switch(config)# vlan 10 and switch(config-if)# switchport access vlan 10. The global configuration mode is used to create VLANs with the command vlan {vlan_id}. VLANs can be removed with the no form of the command.

Ports are assigned as members of VLANs in the interface configuration mode with the command switchport access vlan {vlan_id}. At this point, if the port is in access mode, it will participate as a member of the VLAN. The mode of the port can be forced to be access in the interface configuration mode with the command switchport mode access.

The command vlan database 10 is not a valid command, but it is similar to a valid command. An optional, but not recommended, way to create a VLAN is in VLAN database mode. This is accessed from global configuration mode with the command vlan database. The prompt would be switch(vlan)#. At this prompt, a VLAN can be created with the command vlan 10. The problem with VLAN database mode is that the configurations issued here have to be applied with either the apply or exit commands. Using CTRL-Z to exit would cancel the changes made in this mode.

The command switchport vlan 10 enable is not correct due to invalid syntax.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

By default, which VLAN is the Cisco management VLAN?

A. 1

B. 0

C. 1001

D. 1005

A

Answer: A

Explanation:

Cisco uses VLAN1 as the default management VLAN.

All ports are automatically assigned to VLAN1. Cisco Discovery Protocol (CDP) and VLAN Trunking Protocol (VTP) advertisements are transmitted on VLAN1. VLAN1 is the management VLAN and is used for administration. It cannot be deleted or pruned from a trunk line.

VLAN Ids that are implemented can vary based on whether the trunk implementation is Cisco’s Inter-Switch Link (ISL) or the IEEE 802.1Q standard.

The following is a summary of the VLAN IDs:

and 4095 - Reserved

  • Cisco default management

2-1001 - Available for Ethernet VLANs

1002-1005 - Defaults for FDDI and Token Ring VLANs

1006-4094 - Extended range available for Ethernet VLANs (802.1Q only)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly