200-301 Question 184
Select 2A network administrator has configured two VLANs (VLAN 10 and VLAN 20) on a Layer 2 switch. Hosts in both VLANs need to communicate with each other. To achieve this, a Layer 3 device is required. Which of the following configurations would allow interVLAN communication?
- A
Configure a router with sub-interfaces for each VLAN and connect it to a trunk port on the switch.
- B
Enable routing on a Layer 3 switch and configure VLAN interfaces (SVIs) for each VLAN.
- C
Assign IP addresses directly to the Layer 2 switch ports belonging to VLAN 10 and VLAN 20.
- D
Use a Layer 2 switch and configure a trunk port between the two VLANs.
- E
Deploy a Layer 3 switch and configure static routes between the VLANs.
Show answer and explanation
Correct answers: A, B
Explanation
InterVLAN communication requires a Layer 3 device to route traffic between VLANs. This can be achieved by using a router with sub-interfaces or a Layer 3 switch with VLAN interfaces (SVIs). Both methods enable routing between VLANs, while Layer 2 switches alone cannot perform this function.
- A. Correct.
Correct: Configuring a router with sub-interfaces for each VLAN and connecting it to a trunk port on the switch enables the router to route traffic between VLANs using interVLAN routing.
- B. Correct.
Correct: A Layer 3 switch with VLAN interfaces (SVIs) can perform routing between VLANs without requiring an external router.
- C. Incorrect.
Incorrect: Layer 2 switches do not support assigning IP addresses to ports directly. They are limited to switching traffic within VLANs and cannot route between them.
- D. Incorrect.
Incorrect: Configuring a trunk port between VLANs on a Layer 2 switch only allows the switch to carry traffic for multiple VLANs. It does not enable interVLAN routing.
- E. Incorrect.
Incorrect: While a Layer 3 switch can route between VLANs, static routes are not required since routing within the same device is automatically handled using VLAN interfaces (SVIs).