Last Updated on August 1, 2021 by Admin 2
A company has a following network infrastructure. Refer to the exhibit:
To enable inter-VLAN routing on the distribution layer switch, which of the following commands should be used?
dlswitch# switchport mode access
dlswitch (config) # switchport mode trunk
dlswitch(config-if) # switchport mode trunk
dlswitch(config-if) # switchport mode access
You should use switchport mode trunk command at the interface configuration prompt to enable inter-VLAN routing. This command sets the port as a trunk port. Trunks carry traffic from all VLANs to and from the switch by default, and can be configured to carry specific VLAN traffic as well.
A port on a Cisco switch is either an access port or a trunk port. An access port only carries traffic for the VLAN of which it is a member and does not tag or mark the frame with a VLAN ID. A trunk port carries traffic from multiple VLANs and tags or marks each frame with a VLAN ID so it can be determined where it goes when it gets to the other switch.
You can enable inter-VLAN routing by enabling trunking using the following command:
switchport mode trunk
You would not use the dlswitch# switchport mode access command to enable inter-VLAN routing. This command sets the port as an access port, which is capable of carrying only the traffic a single VLAN. Moreover, even if that were the intent, the command must be executed in interface mode and not global configuration mode.
You would not use the dlswitch (config) # switchport mode trunk command to enable inter-VLAN routing. This is the correct command, but is shown being executed in global configuration mode instead of interface mode.
You would not use the dlswitch(config-if)# switchport mode access command to enable inter-VLAN routing. This is both the wrong command and is being executed at an incorrect prompt.
Layer 2 Technologies
Configure and verify trunking